general networking question
Thomas Geenen
mol-general@lists.maconlinux.org
Tue, 18 Jun 2002 22:33:17 -0400
oke this looked primising
http://www.maconlinux.org/lists/mol-general/february00/0103.html
For all of you (like me) who haven't been able to get IP masq to work with
MOL -
I stumbled across a way to allow access to the linux side from MOL without
it,
using the tap device. Here's how:
1) compile a kernel with ethertap support, i.e. set
CONFIG_DUMMY=y
CONFIG_ETHERTAP=y
No IP masq stuff needs to be turned on.
2) create the ethertap device (/dev/tap0), as root
cd /dev; /bin/mknod tap0 c 36 16
3) in /etc/rc.d/rc.local, add these lines to the end:
/sbin/ifconfig tap0 192.168.0.1 netmask 255.255.255.0 up arp
/sbin/route add -host 192.168.0.1 tap0
4) in MacOS, set up TCP/IP as usual, with a separate IP address on the same
subnet as your linux address. You should now be able to ftp or telnet to
192.168.0.1 to access the linux side. Sometimes networking will die without
warning in MOL. To resurrect it I just open the TCP/IP control panel, change
the network configuration, close it, then open it and change it back.
thats what i did i added
netdev: tap0 -tap
to my molrc
started mol
but..... when i start explorer i get the message that another device on my
TCP/IP network with the physical adresss FE:FD:00:00:00:00 is using the same
ip adress.
it does not matter what ip adres i use in macos it still gives this error
message
configuration:
ifconfig
eth0 Link encap:Ethernet HWaddr 00:00:B7:94:02:DD
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3017 errors:0 dropped:0 overruns:0 frame:0
TX packets:3881 errors:185 dropped:0 overruns:0 carrier:370
collisions:0 txqueuelen:100
RX bytes:475890 (464.7 Kb) TX bytes:1895476 (1.8 Mb)
Interrupt:25 Base address:0x400
eth1 Link encap:Ethernet HWaddr 00:05:02:A9:04:DC
inet addr:146.50.172.187 Bcast:146.50.175.255 Mask:255.255.240.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:40286 errors:0 dropped:0 overruns:0 frame:0
TX packets:46893 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:11552148 (11.0 Mb) TX bytes:14477569 (13.8 Mb)
Interrupt:42 Base address:0x6000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:51252 errors:0 dropped:0 overruns:0 frame:0
TX packets:51252 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:14695560 (14.0 Mb) TX bytes:14695560 (14.0 Mb)
tap0 Link encap:Ethernet HWaddr FE:FD:00:00:00:00
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:71 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:3820 (3.7 Kb)
Interrupt:5
netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.0.2 0.0.0.0 255.255.255.255 UH 40 0 0 tap0
192.168.0.0 0.0.0.0 255.255.255.0 U 40 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 40 0 0 tap0
146.50.160.0 0.0.0.0 255.255.240.0 U 40 0 0 eth1
127.0.0.0 0.0.0.0 255.0.0.0 U 40 0 0 lo
On Sunday 16 June 2002 18:48, you wrote:
> hi all
> i have installed mol 0.9.63 on my grey g3 ppc mandrake_ppc_8.2
> kernel version /2.4.18-6.1mdk/
> network is there but it is very slow and mol reports that packets are being
> dropped. i assume that this has sommething to do with the fact that linux
> and mac os are sharing the same ip. i looked in the mailing archives and
> found that there are a lot of fixes depending on version of mol and type of
> network connection i have a dns connection >> dhcp i found that i do not
> have a tunconfig script (the latest fix for network configuration??)
> so the basic question is how to setup network for this configuration.
> thanks in advance
> Thomas Geenen
> _______________________________________________
> mol-general mailing list
> mol-general@lists.maconlinux.org
> http://lists.maconlinux.org/mailman/listinfo/mol-general