Re: making 2 gateway..

2003-01-13 Thread Fraser Campbell
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


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: making 2 gateway..

2003-01-13 Thread louie miranda
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..




--
thanks,
louie miranda


- Original Message -
From: "nate" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 13, 2003 4:30 PM
Subject: Re: making 2 gateway..


> louie miranda said:
> > Kernel IP routing table
> > Destination Gateway Genmask Flags Metric RefUse
> > Iface
> > 193.32.100.244  203.191.11.157  255.255.255.255 UGH   0  00
> > eth0 203.191.11.144  *   255.255.255.240 U 0  0
> > 0 eth0 127.0.0.0   *   255.0.0.0   U 0  0
> >   0 lo default 203.191.11.158  0.0.0.0 UG0  0
> >   0 eth0
> >
> >
> > Im wondering how did this one got 2 gateway, I cant seem to find the
> > correct command for it. I hope i can get answer's regarding this
question.
>
>
> only 1 network gateway there..the default gateway. the other one that
> looks like a gateway is just a route for a specific host 193.32.100.244,
> it's not a 2nd gateway in the traditional sense, just a route.
>
> nate
>
>
>
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact
[EMAIL PROTECTED]
>
>


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: making 2 gateway..

2003-01-13 Thread nate
louie miranda said:
> 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..

10.0.0.1 must be on a network you are connected to in order to establish
a route to it, from the looks of your routing table you have no route
for the 10.0.0.X network, so it seems as if your not connected to such
a network, making a route through it impossible.

nate




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: making 2 gateway..

2003-01-13 Thread nate
louie miranda said:
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric RefUse
> Iface
> 193.32.100.244  203.191.11.157  255.255.255.255 UGH   0  00
> eth0 203.191.11.144  *   255.255.255.240 U 0  0
> 0 eth0 127.0.0.0   *   255.0.0.0   U 0  0
>   0 lo default 203.191.11.158  0.0.0.0 UG0  0
>   0 eth0
>
>
> Im wondering how did this one got 2 gateway, I cant seem to find the
> correct command for it. I hope i can get answer's regarding this question.


only 1 network gateway there..the default gateway. the other one that
looks like a gateway is just a route for a specific host 193.32.100.244,
it's not a 2nd gateway in the traditional sense, just a route.

nate




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]