View Single Post
  #1 (permalink)  
Old 21-02-2008, 10:32 AM
Madhu Madhu is offline
Junior Member
User
 
Join Date: Feb 2008
OS: Monta Vista
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Madhu is on a distinguished road
Question How does "route add ..." fetch the interface automatically

Hi All,

This is related to adding a default GW in the Kernal IP routing table in Linux.

As you knt the Command to be used is :
route add default gw {ip address}

Note: I have not given the eth interface. My Question is, though the interface is not given, it automatically adds an interface by itself.

I would like to know the logic behind this. Is it taking this from any physical file or something..

The reason is the above command works fine in all my systems, except one, which takes the interface as lo which is not possible and wrong. so i have to explicitly specify bond0 as the itf.. (though, its not a prob..i wud like to know the root cause of this behaviour )

Kindly help.

Regards
Madhu
Reply With Quote