Results 1 to 3 of 3

Thread: routing table problems

  1. #1
    Join Date
    May 2007
    Location
    Stockholm, Sweden
    Beans
    112
    Distro
    Xubuntu 14.04 Trusty Tahr

    routing table problems

    Hi there,

    I had The Perfect test setup running, using a laptop with the Ethernet connection to a test board using a manually set ip adrdress, while at the same time the WiFi connection was using DHCP for internet, Dropbox.

    After i reinstall I could not go back to this ideal situation, because the default ip is directed to the wired connection.

    Here's the route table with wifi only:
    Code:
    anders@anders-HP-635-Notebook-PC ~/Desktop $ route
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    default         192.168.0.1     0.0.0.0         UG    0      0        0 wlan0
    link-local      *               255.255.0.0     U     1000   0        0 wlan0
    192.168.0.0     *               255.255.255.0   U     2      0        0 wlan0
    And here is the same with wired connectio also:
    Code:
    anders@anders-HP-635-Notebook-PC ~/Desktop $ route
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    default         172.16.0.1      0.0.0.0         UG    0      0        0 eth0
    link-local      *               255.255.0.0     U     1000   0        0 wlan0
    172.16.0.0      *               255.255.0.0     U     1      0        0 eth0
    192.168.0.0     *               255.255.255.0   U     2      0        0 wlan0
    I have tried to read "man route", but I am not sure I understand what to do. I would prefer 192.168.0.1 to be the default also with both active.

  2. #2
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: routing table problems

    Is the default gateway defined in the entry for eth0 in /etc/network/interfaces? Will the wifi connection always be available? If not, you can solve the problem manually by running:

    Code:
    sudo ip route del default
    sudo ip route add default via 192.168.0.1
    once both interfaces are up and connected.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  3. #3
    Join Date
    May 2007
    Location
    Stockholm, Sweden
    Beans
    112
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: routing table problems

    Thanks, correct, works now!

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
  •