Re: Network route problem



192.168.50.184 is a gateway on which a IPSEC tunnel allow to access to host 172.16.2.6



Le 07/01/2012 17:45, Kevin Martin a écrit :

On 01/07/2012 10:18 AM, Luc MAIGNAN wrote:
Hi,

I have the following problem.

Here is the output of : route -n :

0.0.0.0 192.168.50.2 0.0.0.0 UG 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 eth0
172.16.2.6 192.168.50.184 255.255.255.255 UGH 0 0 0 eth0
192.168.50.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0


When I try to ping 172.16.2.6, it doesn't work while the first available route is used (0.0.0.0 via 192.168.50.2)

How can I modify the order of the route table to force use of the right route ?


Thanks for any help
What is 192.168.50.184? From the routing table, its the same ethernet nic so it's no wonder the route to 172.16.2.6 is using the
0.0.0.0 (default) route (even though it looks like you've tried to force it to a different route). If you want to split the
192.168.50 network you'll need two nics, you'll need to set the netmask correctly to split it between them, then you will be able to
set the 172.16.2.6 host to route a different way.

Kevin
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Relevant Pages

  • Re: routing - newbie-question
    ... there because they have to use a gateway to do so. ... to that host. ... Well doesn't look like a private subnet behind SERV1. ... Try pinging the host with your normal route config. ...
    (comp.os.linux.networking)
  • Re: How to set default gw not by route command in linux?
    ... The developers of pppd made the arbitrary choice to have the 'defaultroute' option create the default route with the peer address as the gateway, ... The NAS advertises for itself the same address on all PPP links, so the host sees the same peer address on both links. ...
    (comp.os.linux.networking)
  • Re: (more) the coffee house broke my auto
    ... Is the IP address of your gateway actually ... route 2 network: route add default gw outer and route private network ... host in private network zone set this: ...
    (Debian-User)
  • Strange default route
    ... Until today it was set to add a default route ... It is using a gateway, ... The host behind that IP address belongs to my ISP (by ... What makes me nervous is that I didn't have any connection problems so ...
    (comp.os.linux.security)
  • Re: Getting "ICMP Host redirect from gateway" response
    ... I tried and succeeded in getting a REDIRECT response, ... I added a route with 192.168.0.10 as a gateway to a local host ...
    (comp.os.linux.networking)