Our alphaServer has 2 lan cards, lan A and Lan B which connects to a
backup site via a router with 2 lan cards (lan A and lan B) to a
backup site Lan C.
I am trying to add routes from the Main site MCC to a backup site BCC,
using both Lan A (10.10.220.x) and Lan B (10.10.225.x) to the BCC Lan
10.35.220.0.
Lan A has the route to the BCC in the routing table but I cannot add
the route for the B Lan. I have tried using the /etc/routes file with
the same results.
The routers lan A ip address is 10.10.220.60, lan B ip address is
10.10.225.60, and lan C is 10.35.220.60 for the BCC site.
How do you do this ? Hope this all makes sense. Thanks !!!
# route add -net 10.35.220.0 10.10.225.60 -netmask 255.255.255.0
writing to routing socket: File exists
add net 10.35.220.0: gateway 10.10.225.60: entry exists
MCC:etc> netstat -nr
Routing tables
Destination Gateway Flags Refs Use Interface
Netmasks:
Inet 255.255.255.0
Route Tree for Protocol Family 2:
10.10.220/24 10.10.220.1 U 63 13883186 tu0
10.10.225/24 10.10.225.1 U 11 7547296 tu1
10.35.220/24 10.10.220.60 UGS 24 2548241 tu0
127.0.0.1 127.0.0.1 UH 19 429909 lo0
> I am trying to add routes from the Main site MCC to a backup site BCC,
> using both Lan A (10.10.220.x) and Lan B (10.10.225.x) to the BCC Lan
> 10.35.220.0.
>
> Lan A has the route to the BCC in the routing table but I cannot add
> the route for the B Lan. I have tried using the /etc/routes file with
> the same results.
>
> # route add -net 10.35.220.0 10.10.225.60 -netmask 255.255.255.0
> writing to routing socket: File exists
> add net 10.35.220.0: gateway 10.10.225.60: entry exists
>
> MCC:etc> netstat -nr
>
> 10.10.220/24 10.10.220.1 U 63 13883186 tu0
> 10.10.225/24 10.10.225.1 U 11 7547296 tu1
> 10.35.220/24 10.10.220.60 UGS 24 2548241 tu0
> 127.0.0.1 127.0.0.1 UH 19 429909 lo0
I'll assume you're running 4.0f from the netstat output. If that's
the case then this is covered in the Release Notes, section 4.4.13,
although I admit it isn't obvious. Setting routemode to 1 in the
kernel will allow you to add multiple routes to the same
destination through different gateways (and/or using different
interfaces). Once you set routemode, you should try adding
the route again, but specify the interface:
# route add -net 10.35.220.0 10.10.225.60 -netmask 255.255.255.0 -dev tu1
-Brian
-----------------------------------------------
Brian P. Haley Brian...@compaq.com
Tru64 UNIX Networking Group
Compaq Computer Corporation