RE: How to use Route??

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

 




> -----Original Message-----
> From: Scot L. Harris [mailto:webid@xxxxxxxxxx]
> Sent: Wednesday, December 31, 2003 12:21 PM
> To: shrike-list@xxxxxxxxxx
> Subject: Re: How to use Route??
> 
> 
> 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.  
>

I have 2 network cards. One is a wifi eth1 and another's LAN eth0.
Both of these have different ip addresses and I just need them to 
be routed differently.

eg: eth1 10.0.0.1 gw 10.0.0.10   		<-company lan
    eth2 192.168.0.1 gw 192.168.0.10	<- wifi/internet

So.. in essence I would lke to have connections that start with 192.x to go
through eth2 and 10.x to eth1

So.. how do I set up static routes?

 
> 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.

hmmm.. so if my ip is 10.0.0.1 and the default gw is 10.0.0.10, if I 
want to go to 192.168.0.3 (say another wifi pc), it goes through the
10.0.0.10
gateway? Then it will never reach 192.x!

> 
> 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.

I did and I still did not understand it.

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

so do I add something like

route add 192.168.0.1 192.168.0.10??



-- 
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