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

changing IP routing table



I have potato running with two interfaces and the IP routing table looks like this when it boots up:

Dest.        Gateway  Genmask       Flags  Met.  Iface
192.168.60.0 *        255.255.255.0 U      0     eth0 
192.168.61.0 *        255.255.255.0 U      0     eth1
default      WAN      0.0.0.0       UG     0     eth1
default      192.168.60.1 0.0.0.0   UG     0     eth0


I know this is incorrect, so /sbin/route del -net 0.0.0.0 gw 192.168.60.1 dev eth0 and that allows the WAN side to act as the default. I then add a static route to the routing table to make it look like this:

Dest.        Gateway  Genmask       Flags  Met.  Iface
192.168.20.0 192.168.60.1 255.255.255.0 UG       eth0
192.168.60.0 *        255.255.255.0 U      0     eth0 
192.168.61.0 *        255.255.255.0 U      0     eth1
default      WAN      0.0.0.0       UG     0     eth1

Here is my /etc/network/interfaces:

auto eth0
iface eth0 inet static
  address 192.168.60.31
  netmask 255.255.255.0
  broadcast 192.168.60.255
  gateway 192.168.60.1

auto eth1
iface eth1 inet static
      address 192.168.61.50
      netmask 255.255.255.0
      broadcast 192.168.61.255
      gateway 192.168.61.1

My question is why does the routing table return to the incorrect routes when I reboot and how do I resolve this?

TIA,
Nole Realm 



-- 
_______________________________________________
Download the free Opera browser at http://www.opera.com/

Powered by Outblaze


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: