Results 1 to 6 of 6

Thread: routing issue

  1. #1
    Join Date
    Jan 2012
    Beans
    3

    routing issue

    Hello *,

    this is not a special ubuntu problem - more a linux related problem.

    On one of my clients, the routing table looks like this:

    Code:
    Destination      Gateway            Genmask         Flags Metric Ref    Use Iface
    192.168.43.1     *                  255.255.255.255 UH    0      0        0 eth0
    192.168.5.0      10.0.150.5         255.255.255.0   UG    0      0        0 tap0
    192.168.150.0    10.0.150.1         255.255.255.0   UG    0      0        0 tap0
    10.0.150.0       10.0.150.1         255.255.255.0   UG    0      0        0 tap0
    10.0.150.0       *                  2555.255.255.0  U     0      0        0 tap0
    192.168.43.0     *                  255.255.255.0   U     311    0        0 eth0
    default          192.168.43.1       0.0.0.0         UG    0      0        0 eth0
    default          192.168.43.1       0.0.0.0         UG    311    0        0 eth0
    Now, whenever I try to traceroute 10.0.150.1, the packet is not being sent towards the tap0 interface, but towards 192.168.43.1 - which however cannot work.

    Any suggestion?

    Thanks a lot!

    hssuhle
    Last edited by hssuhle; January 20th, 2012 at 05:42 PM.

  2. #2
    Join Date
    Apr 2007
    Location
    Belgium
    Beans
    148
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: routing issue

    Hi,

    How did you made this routing table?
    It does not make much sense...

    You have 2 default gateways:
    Code:
    default          192.168.42.1       0.0.0.0         UG    0      0        0 eth0
    default          192.168.43.1       0.0.0.0         UG    311    0        0 eth0
    You can only have 1 gateway.
    You also say that the default gateway is yourself:
    Code:
    192.168.43.1     *                  255.255.255.255 UH    0      0        0 eth0
    default          192.168.43.1       0.0.0.0         UG    311    0        0 eth0

    regards

  3. #3
    Join Date
    Jan 2012
    Beans
    3

    Re: routing issue

    Umm.
    You are right saying ther can only be one default gateway.
    However, there IS only one default gateway. One with metric 0 and the same with metric 311.
    Where it comes from - I don't know.

    But I agree, I should try without these useless entries.

    All I have left now is
    Code:
    Destination      Gateway            Genmask         Flags Metric Ref    Use Iface 
    192.168.5.0      10.0.150.5         255.255.255.0   UG    0      0        0 tap0 
    192.168.150.0    10.0.150.1         255.255.255.0   UG    0      0        0 tap0 
    10.0.150.0       10.0.150.1         255.255.255.0   UG    0      0        0 tap0 
    default          192.168.43.1       0.0.0.0         UG    0      0        0 eth0
    And still, the packets are going towards 192.168.43.1 - SH*T!

    More ideas?
    Last edited by hssuhle; January 20th, 2012 at 05:42 PM.

  4. #4
    Join Date
    Apr 2007
    Location
    Belgium
    Beans
    148
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: routing issue

    However, there IS only one default gateway. One with metric 0 and the same with metric 311.
    Where it comes from - I don't know.
    No, they are not the same. The fist is 192.168.42.1 and the second is 192.168.43.1



    What is the output of:
    Code:
    ifconfig
    Last edited by Charlietje; January 20th, 2012 at 03:34 PM.

  5. #5
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    11,404
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: routing issue

    You're missing the route to the 192.168.42.0/24 network. The machine can't see the default gateway with the configuration you have now.

  6. #6
    Join Date
    Jan 2012
    Beans
    3

    Re: routing issue

    Uh - NOW I see what you mean!

    My apologies!

    As I had to type the routing table off by hand (since I cannot log into the device whilst it is on vpn), I must have mis-typed that.

    As a matter of fact, it reads 43. NOT 42. Apologies, again!

    Nevertheless, it makes the whole thing appear even stranger, doesn't it?

    ifconfig tap0 reads:
    Code:
    tap0: ip 10.0.150.9 mask 255.255.255.0 flags [up broadcast running multicast]
    ifconfig eth0:
    Code:
    eth0: ip 192.168.43.92 mask 255.255.255.0 flags [up broadcast running multicast]

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
  •