Re: making 2 gateway..
On January 13, 2003 03:57 am, the fabulous louie miranda wrote:
> ic, i was wondering how could i add it? I really can't add again another
> route.
>
> Im trying
>
> route add -net 10.x.x.x netmask 255.255.255.0 gw 10.0.0.1
>
> but it didnt work..
If the 10.0.0.0 network is directly connected to your network card then you
can use this command:
route add -net 10.0.0.0 netmask 255.255.255.0 dev eth0
Or (I prefer this, you'd need iproute2 installed):
ip route add 10.0.0.0/24 dev eth0
If 10.0.0.0 is not directly connected to the same network segment as eth0 then
you must specify a gateway that you can use to reach it. Basically the
gateway must be directly reachable to you, perhaps something like this:
route add -net 10.0.0.0 netmask 255.255.255.0 gw 193.32.100.244
(the above being entirely speculation and likely wrong, hopefully you get the
point).
It looks like eth0 contains publicly reachable IPs though, if 10.0.0.0/24 is
your own private network I'd highly recommend not having it all shared on a
single ethernet segment (i.e. stick in another ethernet card and put 10.0.0.0
on eth1).
Regards,
Fraser
Reply to: