Re: Problems with gateway on LAN
On Wed, Jan 26, 2000 at 11:40:50AM +1100, Andrew wrote: > I have a network of 4 machines. Two running Debian, one Win98 and one > WinNT. I have been trying to setup one of the Linux machines as a > masqurading gateway with aliased interfaces. Currently all 4 machines > are on the same segment of ethernet. > > The problem is that with my current configuration, none of the machines > can talk to each other. > > The gateway /etc/init.d/network config is: > > [snip lo config] > > ifconfig eth0 down > ifconfig eth0 192.168.1.1 broadcast 192.168.1.63 netmask > 255.255.255.192 > ifconfig eth0:64 192.168.1.65 broadcast 192.168.1.127 netmask > 255.255.255.192 > ifconfig eth0:128 192.168.1.129 broadcast 192.168.1.191 netmask > 255.255.255.192 > ifconfig eth0:192 192.168.1.193 broadcast 192.168.1.255 netmask > 255.255.255.192 I think you should have only one ifconfig in here, like ifconfig eth0 192.168.1.1 broadcast 192.168.1.255 netmask 255.255.255.0 > > > route add -net 192.168.1.0 netmask 255.255.255.192 dev eth0 > route add -net 192.168.1.64 netmask 255.255.255.192 dev eth0:64 > route add -net 192.168.1.128 netmask 255.255.255.192 dev eth0:128 > route add -net 192.168.1.192 netmask 255.255.255.192 dev eth0:192 > and only one route command, none if you run linux 2.2 j.
Problems with gateway on LAN
I have a network of 4 machines. Two running Debian, one Win98 and one WinNT. I have been trying to setup one of the Linux machines as a masqurading gateway with aliased interfaces. Currently all 4 machines are on the same segment of ethernet. The problem is that with my current configuration, none of the machines can talk to each other. The gateway /etc/init.d/network config is: [snip lo config] ifconfig eth0 down ifconfig eth0 192.168.1.1 broadcast 192.168.1.63 netmask 255.255.255.192 ifconfig eth0:64 192.168.1.65 broadcast 192.168.1.127 netmask 255.255.255.192 ifconfig eth0:128 192.168.1.129 broadcast 192.168.1.191 netmask 255.255.255.192 ifconfig eth0:192 192.168.1.193 broadcast 192.168.1.255 netmask 255.255.255.192 route add -net 192.168.1.0 netmask 255.255.255.192 dev eth0 route add -net 192.168.1.64 netmask 255.255.255.192 dev eth0:64 route add -net 192.168.1.128 netmask 255.255.255.192 dev eth0:128 route add -net 192.168.1.192 netmask 255.255.255.192 dev eth0:192 The /etc/init.d/network off the other linux machine is ifconfig eth0 down ifconfig eth0 192.168.1.72 broadcast 192.168.1.127 netmask 255.255.255.192 route add -net 192.168.1.64 netmask 255.255.255.192 dev eth0 route add default gw 192.168.1.65 metric 1 I figure if I can get the two Linux boxes talking the others wil work too, but they can't talk to each other at all ATM. Is what I'm trying to do possible (with kernel 2.0.36 BTW)? Is the some problem with aliased interfaces and IP masq? Would it work if I had 4 network cards and properly segmented the physical network rather than just the addresses? -- Regards, Andrew Clark CC of replies to mailing list posts requested as this address isn't subscribed.