Re: How to use Route??

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You only get one default gateway per system.  If you have certain
networks that you want to get to through specific interfaces you add
additional static routes for those networks.  

Think of it this way, a default gateway is the route you send packets
that are not directly connected to your machine and that you do not have
any other static routes for in your routing table.

I believe in what may be wrong is that you need to specify the interface
in your route add command as the destination.  Take a look at the man
page for route.

In a static route you normally add the next hop address which will be a
device connected to one of your machines interfaces.

Hope that helps.

On Tue, 2003-12-30 at 23:02, Ow Mun Heng wrote:
> Hi,
> 
> 	I would like to learn how to add a default gw for different
> interfaces
> 
> i know it's something like 
> 
> route add gw 202.111.222.333 <--- this does not work
> 
> I can't get it to bind to eth1
> 
> if I do 
> route add 202.111.222.3 gw 202.111.222.333
> 
> where 202.111.222.3 is the ip add of eth1
> 
> Pls help?
> 
> In the man page, it says I need a netmask parameter also, but 1st need to
> get a static route up?? huh?? Dont' understand.
> 
> Cheers,
> OW
> 
> PS : Thanks
> 
> Cheers,                                                 .^.
> Mun Heng, Ow                                            /V\
> H/M Engineering                                       /(   )\
> Western Digital M'sia                                  ^^-^^
> DID : 03-7870 5168                          The Linux Advocate
> 
>         
-- 
Scot L. Harris <webid@xxxxxxxxxx>


-- 
Shrike-list mailing list
Shrike-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/shrike-list

[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux