Re: ethernet dhcp, mol ethertap, doesn't work


Subject: Re: ethernet dhcp, mol ethertap, doesn't work
From: Samuel Rydh (samuel@waltari.theophys.kth.se)
Date: Wed Oct 18 2000 - 10:10:18 MDT


>I followed the instructions I found in the archive:
>
> - created ethertap dev node
> crw-r--r-- 1 root root 36, 16 Oct 17 19:26 /dev/tap0
This is not necessary (the /dev/tap0 interface is obsolete, the
tap device is accessed through netlink).

> - enabled packet forwarding, ip_dynaddr and ip defrag (the new way,
> in /etc/sysctl.conf)
I'm not sure about ip_dynaddr and defrag, but I think this is correct.

> - configured ethertap device
>
> /sbin/depmod -a
> /sbin/modprobe ethertap
> /sbin/modprobe ip_masq_ftp
> /sbin/ifconfig tap0 192.168.1.1 netmask 255.255.255.0 up arp
> /sbin/route add -host 192.168.1.1 tap0
OK.

> echo "1" > /proc/sys/net/ipv4/conf/tap0/proxy_arp
> /sbin/arp -s 192.168.1.2 FE:FD:00:00:00:00 pub
Since 0.9.50, this should *not* be done. MOL handles ARP
requests automatically (addig an explicit ARP entry might
break networking).

> According to ifconfig, the ethertap device is as it should be.
>
> - Enabled masquerading with a trivial forwarding rule
>
> ipchains -M -S 7200 10 160
> ipchains -A forward -s 192.168.1.0/24 -j MASQ
OK.

> - Set netdev to tap0 in molrc
OK.

>I did nothing specific to the MacOS tcp/ip control panel, since this
>was never mentioned in the articles I read (seems weird).
OK (assuming you have set IP 192.168.1.2 and netmask 255.255.255.0
and gateway 192.168.1.1).

Regards,

/Samuel



This archive was generated by hypermail 2a24 : Wed Oct 18 2000 - 10:22:06 MDT