[7.450][BUG][NOTABUG] route output

Hi Friends !

route -n doesnt show gw some /on linux it was showing 10.242.x.x network as a gateway as i was not connected with pptp on linux (some time back even on windows)




route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.242.2.2      0.0.0.0         255.255.255.255 UH    0      0        0 tun0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
192.168.2.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
192.168.2.208   0.0.0.0         255.255.255.240 U     0      0        0 eth0
ace75:/home/login # 


Thanks
  • hi,

    check it with:

    [FONT="Fixedsys"]ip route show[/FONT]
  • hi,

    check it with:

    [FONT="Fixedsys"]ip route show[/FONT]


    Hi !

    route via  pptp ? when it is not in use ?

     ip route show
    10.242.2.2 dev tun0  proto kernel  scope link  src 10.242.2.1 
    192.168.2.208/28 dev eth0  proto kernel  scope link  src 192.168.2.215 
    10.242.2.0/24 via 10.242.2.2 dev tun0 
    192.168.0.0/24 via 10.242.2.2 dev tun0 
    192.168.1.0/24 dev eth1  proto kernel  scope link  src 192.168.1.175 
    192.168.2.0/24 dev eth0  proto kernel  scope link  src 192.168.2.100 
    127.0.0.0/8 dev lo  scope link 
    ace75:/home/login # 

    can u please exlpin how to read/understand  it 

    PS=when i run ssh it take longer then expected time is it becase of ?

    Thanks

    from web (copy /paste)




    . Displaying a routing table with ip route show

    In its simplest form, ip route can be used to display the main routing table output. The output of this command is significantly different from the output of the route. For comparison, let's look at the output of both route -n and ip route show.

    Example D.11. Viewing the main routing table with ip route show

    [root@tristan]# route -n
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    192.168.99.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0
    127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
    0.0.0.0         192.168.99.254  0.0.0.0         UG    0      0        0 eth0

    [root@tristan]# ip route show
    192.168.99.0/24 dev eth0  scope link 
    127.0.0.0/8 dev lo  scope link 
    default via 192.168.99.254 dev eth0




    route cache
     netstat -rnC
    Kernel IP routing cache
    Source          Destination     Gateway         Flags   MSS Window  irtt Iface
    192.168.1.1     192.168.1.175   192.168.1.175   l         0 0          0 lo
    202.54.1.66     192.168.1.175   192.168.1.175   l         0 0          0 lo
    192.168.1.175   220.225.252.202 192.168.1.1            1500 0          0 eth1
    192.168.1.175   220.225.252.202 192.168.1.1            1500 0          0 eth1
    192.168.2.100   192.168.2.200   192.168.2.200          1500 0          0 eth0
    192.168.1.175   65.74.168.211   192.168.1.1            1500 0          0 eth1
    65.74.168.211   192.168.1.175   192.168.1.175   l         0 0          0 lo
    220.225.252.202 192.168.1.175   192.168.1.175   l         0 0          0 lo
    127.0.0.1       127.0.0.1       127.0.0.1       l     16436 0          0 lo
    192.168.1.1     224.0.0.1       224.0.0.1       ml        0 0          0 lo
    192.168.1.175   116.92.1.80     192.168.1.1            1500 0          0 eth1
    192.168.1.1     224.0.0.1       224.0.0.1       ml        0 0          0 lo
    192.168.1.175   202.54.1.66     192.168.1.1            1500 0          0 eth1
    192.168.2.200   192.168.2.100   192.168.2.100   il        0 0          0 lo
    192.168.1.175   116.92.1.80     192.168.1.1            1500 0        225 eth1
    116.92.1.80     192.168.1.175   192.168.1.175   l         0 0          0 lo
    192.168.1.1     192.168.1.175   192.168.1.175   il        0 0          0 lo
    192.168.2.100   192.168.2.200   192.168.2.200          1500 0          0 eth0
    127.0.0.1       127.0.0.1       127.0.0.1       l     16436 0          8 lo
    ace75:/ # 


    192.168.2.200 and 192.168.2.254 are my mostly use desktop (dhcp and static (some time static and some time dynamic))
    192.168.1.1 is my ADSL router which is gatway to my external interface (is it right ?)
    192.168.1.175 is my external interface  ip 
    202.54.1.66 and 202.54.10.2 or 202.54.29.5 are my isp dns
    192.168.2.100  is myastaro (not myastaro.com)
    and 127.0.0.1 is u r and my ........

    Thanks

    after 
    ip route flush  cache 
    ace75:/home/login # route -Cen
    Kernel IP routing cache
    Source          Destination     Gateway         Flags   MSS Window  irtt Iface
    192.168.2.100   192.168.2.200   192.168.2.200          1500 0          0 eth0
    192.168.2.200   192.168.2.100   192.168.2.100   il        0 0          0 lo
    ace75:/home/login # route -n
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    10.242.2.0      10.242.2.2      255.255.255.0   UG    0      0        0 tun0
    10.242.2.2      0.0.0.0         255.255.255.255 UH    0      0        0 tun0
    127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
    192.168.0.0     10.242.2.2      255.255.255.0   UG    0      0        0 tun0
    192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
    192.168.2.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
    192.168.2.208   0.0.0.0         255.255.255.240 U     0      0        0 eth0


    again it showing wrong gateway 

    dont u think ASG IS NOT ABLE TO CLEAR CACHE (should be create another post/ticket)

    Thanks
  • ASG default route is in the 'default table'. To see the content of it
    use the command;
    $ ip route show table default

    To see all routing entries use following command.
    $ ip route show table all
  • ASG default route is in the 'default table'. To see the content of it
    use the command;
    $ ip route show table default

    To see all routing entries use following command.
    $ ip route show table all


    Thanks 

    # ip route show table default
    default via 192.168.1.1 dev eth1  proto kernel onlink 

    (update)if i have multiple ISP and i am using policy based route (uaser x will go ISP A and user y will go ISP B)
    In this case how may gateway will be there  (Sorry i am just asking u for my infomation ,please dont mis understand )


    Thanks




    192.168.1.1 is my adsl router is it ok ? or it suppose to be external interface ?

    Thanks
    get back to u for further help
  • Astaro Beta Report
    --------------------------------
    Version: 7.450
    Type: BUG
    State: NOTABUG
    Reporter: utm_kid
    Contributor: 
    MantisID: 
    --------------------------------