Subject: Re: Running two LANS: one for MOL, one for home network?
From: Mark Wolff (wolffm0@hartwick.edu)
Date: Fri Jun 30 2000 - 21:41:11 MDT
I managed to get MOL networked, but I had to use tap0 and a second
subnet (my first subnet is a home LAN for connecting my laptop). For
the most part I followed the instructions at Brad Midgley's FAQ
(http://www.turbolinux.com/~brad/mol/#net) with a few modifications.
Here's what I did:
1) Build a kernel with IP masquerading and ethertap. Set up subnet
192.168.0. for home LAN.
2) Creat /dev/tap0: # cd /dev; /bin/mknod tap0 c 36 16
3) Added these lines to the end of my /etc/rc.d/rc.firewall script
(seemed as good a place as any):
# Now we create ANOTHER LAN for MOL
# First, load the ethertap module
/sbin/modprobe ethertap.o
# Configure tap0
/sbin/ifconfig tap0 192.168.1.1 netmask 255.255.255.0 up arp
/sbin/route add -host 192.168.1.1 tap0
echo "1" > /proc/sys/net/ipv4/conf/tap0/proxy_arp
/sbin/arp -s 192.168.1.2 FE:FD:00:00:00:00 pub
#Finally, IP masquerade on the subnet 192.168.1.
/sbin/ipchains -A forward -s 192.168.1.0/24 -j MASQ
Notice that the MOL subnet is 192.168.1.
For some reason I have to re-execute the /etc/rc.d/rc.firewall script
after booting, but other than that it works like a charm.
Hope someone finds this helpful.
mw
-- Mark B. Wolff Modern and Classical Languages Center for Learning and Teaching with Technology Hartwick College Oneonta, NY 13820 (607) 431-4615
This archive was generated by hypermail 2a24 : Fri Jun 30 2000 - 21:46:40 MDT