Results 1 to 4 of 4

Thread: Network Settings adds several default routes?

  1. #1
    Join Date
    Nov 2005
    Location
    Uppsala, Sweden
    Beans
    218
    Distro
    Hardy Heron (Ubuntu Development)

    Exclamation Network Settings adds several default routes?

    Hi,

    Network Settings is messing up my routing table

    I have a computer connected to several networks and I am trying to use network manager to handle the network configurations.

    right now I have it like this:
    eth0 - dhcp
    eth1 - static/24 (no gateway)
    eth2 - static/8 + gateway

    With this configuration I get 2 default routes?

    What I want is the default route from the DHCP and just a gateway for the eth2 - static/8 network, how can I get this result using ubuntus "Network Settings"-tool?

    heres the results from route (A.B.C.* is just my DHCP:d ip adress)

    Code:
    route
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    192.168.1.0     *               255.255.255.0   U     0      0        0 eth1
    A.B.C.0    *               255.255.255.0   U     0      0        0 eth0
    link-local      *               255.255.0.0     U     1000   0        0 eth2
    10.0.0.0        *               255.0.0.0       U     0      0        0 eth2
    default         10.20.0.1       0.0.0.0         UG    100    0        0 eth2
    default         A.B.C.1    0.0.0.0         UG    100    0        0 eth0
    (\ /)
    (O.o)
    (> <)

  2. #2
    Join Date
    Oct 2006
    Beans
    155

    Re: Network Settings adds several default routes?

    Can you post the contents of this file.

    /etc/network/interfaces

  3. #3
    Join Date
    Nov 2005
    Location
    Uppsala, Sweden
    Beans
    218
    Distro
    Hardy Heron (Ubuntu Development)

    Re: Network Settings adds several default routes?

    Code:
    cat /etc/network/interfaces 
    auto lo
    iface lo inet loopback
    
    
    iface eth0 inet dhcp
    
    auto eth0
    
    iface eth2 inet static
    address 10.20.0.81
    netmask 255.0.0.0
    gateway 10.20.0.1
    
    
    
    iface eth1 inet static
    address 192.168.1.2
    netmask 255.255.255.0
    
    auto eth1
    
    auto eth2
    (\ /)
    (O.o)
    (> <)

  4. #4
    Join Date
    Oct 2006
    Beans
    155

    Re: Network Settings adds several default routes?

    iface eth2 inet static
    address 10.20.0.81
    netmask 255.0.0.0
    gateway 10.20.0.1 <---- take this out


    sudo /etc/init.d/networking restart

    Test if you can still get to those hosts via you eth2. If not, then add a specific route for it specifically by not putting a gateway entry in the /etc/network/interfaces file.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •