Re: Routing problems



LiuJiusheng wrote this message on Wed, Oct 24, 2007 at 15:41 +0800:
Hello all:
I have found something interesting in FreeBSD routing. This is a test environment, which is not used in reality(perhaps meaningless).

| host |-------| router1 |----------| router2 |
2.2.2.2 2.2.2.1 6.6.6.1 6.6.6.2 X.X.X.X
(All run FreeBSD OS)

Two routes is added to the router1. (4.4.4.0/24 6.6.6.2) and (6.6.6.0/24 2.2.2.2).Then the routing table look this:
Destination Gateway Flags Refs Use Netif Expire
2 link#3 UC 0 0
2.2.2.1 00:0c:29:67:a5:88 UHLW 0 4
2.2.2.2 00:09:6b:42:94:b7 UHLW 1 2 1068
4.4.4/24 6.6.6.2 UGS 0 38
6 link#4 UC 0 0
6.6.6/24 2.2.2.2 UGS 1 0

At this time, route 4.4.4.0 can not be used. When ping 4.4.4.4, the machine prints: sent to: Invalid argument. If I remove the route 6.6.6.0/24, then all become correct.

You need to have the gateway for 4.4.4/24 be 2.2.2.2... The routing
code isn't smart enough to follow the trail through 6.6.6/24 to get to
2.2.2.2....

--
John-Mark Gurney Voice: +1 415 225 5579

"All that I will do, has been done, All that I have, has not."
_______________________________________________
freebsd-net@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • RE: Routing Problem
    ... My FreeBSD box has two IP addresses assigned to it, ... it should use the default gateway that is also ... Subject: Routing Problem ... routers configured on multiple interfaces connected to two or more ...
    (freebsd-questions)
  • Re: Routing problems
    ... (All run FreeBSD OS) ... You need to have the gateway for 4.4.4/24 be 2.2.2.2... ... The routing ... code isn't smart enough to follow the trail through 6.6.6/24 to get to ...
    (freebsd-net)
  • Re: Routing Problem
    ... If you have multiple interfaces and you configure a default gateway for each ... FreeBSD's routing table at any one time for default route traffic, ... In FreeBSD, you can manually configure the routing table for the individual ...
    (freebsd-questions)
  • Re: Routing Problem
    ... Subject: Routing Problem ... and one physical NIC in my FreeBSD ... > Connection 1: ... > default gateway, and I can get to the 1.2.3.24 IP from the outside ...
    (freebsd-questions)
  • routing question
    ... I have a routing question and was wondering if FreeBSD was able to do this. ... Can I use only one FreeBSD box as a gateway to: ... The gateway would have either one of the 2 connections as default gateway. ...
    (freebsd-isp)