Mombu the Programming Forum sponsored links

Go Back   Mombu the Programming Forum > Programming > about route add command
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 9th March 11:28
devayya
External User
 
Posts: 1
Default about route add command



Hi ,

Please consider the following scenario,

A machine running on lynxOs 3.0.0 is configured with two ethernet ports
proA0 and proB0, configured with two IP addresses.
Suppose I need to add a destination route for these two interfaces
using two seperate gateways for these two IP addresses, using "route
add". Then the routes are added with respect to each of the IP address
proA0 and proB0.

i.e. If I use,

then the route table looks like this,
Routing tables

Internet:
Destination Gateway Flags Refs Use Interface
127.0.0.1 127.0.0.1 UH 3 19782 lo0
10.255.4 10.255.4.1 UGS 1 7351 proA0
10.255.10 10.255.10.1 UGS 1 4991 proB0

Observe that the interface here is proA0 and proB0

But when I configure same gateway to both these IP address proA0 and
proB0, then route is added to only proA0. Can you tell me why?

The commands used are as follows,

Then the routig table looks like the following,

Routing tables

Internet:
Destination Gateway Flags Refs Use Interface
127.0.0.1 127.0.0.1 UH 3 19782 lo0
10.255.4 10.255.4.1 UGS 1 7351 proA0
10.255.10 10.255.4.1 UGS 1 4991 proA0

Observe that the routes are added to only interface proA0. not proB0
interface. Can you guide me why? I need to configure same gateway to
these two interfaces with different network routes.

Thanks and regards,
devayya
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666