[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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.


Reply to: