I have two routers because I use one for internal users and other to use
with public internet servers. Ok? And I cannot manage or add new rules in
these routers because they are administrated  by other company.

Can you help me,please?


聲gel

-----Mensaje original-----
De: Jeff [mailto:jcoppock1@;attbi.com]
Enviado el: jueves, 24 de octubre de 2002 19:20
Para: [EMAIL PROTECTED]
Asunto: Re: NETWORK ROUTES


聲gel Carrasco, 2002-Oct-24 10:26 +0200:
> Ok:
>
> My office network is: 172.16.16.0/24 and his IP is: 172.16.16.1.
> My web network is: 172.16.8.0/24 and his IP is: 172.16.8.1
> My service network is: 172.16.4.0/24 and his IP is: 172.16.4.1
> My public network is:213.250.143.240/28 and his IP is: 213.250.143.242.
>
> The public router is 213.250.143.241 (and only works with the range
> 213.250.143.240/28)
> The office router is 172.16.16.254 (and only works with the range
> 172.16.16.0/24)
>
> The static default route is 172.16.16.254
>
> This is my route -n
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use
> Iface
> 213.250.143.240 0.0.0.0         255.255.255.240 U     0      0        0
eth0
> 172.16.4.0      0.0.0.0         255.255.255.0   U     0      0        0
eth1
> 172.16.16.0     0.0.0.0         255.255.255.0   U     0      0        0
eth3
> 172.16.8.0      0.0.0.0         255.255.255.0   U     0      0        0
eth2
> 0.0.0.0         172.16.16.254   0.0.0.0         UG    0      0        0
eth3

This system is your gateway to the internet.  You must have the
default route point to 213.250.143.242.  All the networks on your
private network are known and can be specified in the route tables,
but you cannot specify all the internet routes.  So, the above route
table should look something like:

213.250.143.240   0.0.0.0
172.16.4.0        172.16.16.254
172.16.16.0       172.16.16.254
172.16.8.0        172.16.16.254
0.0.0.0           213.250.143.242

> And my dinamic route to using the public network is:
> ip rule add from 213.250.143.242 table publica
> ip route add from default via 213.250.143.241 dev eth0 table publica
> ip route flush cache
>
>
> And the problem is when I try to use 213.250.143.242 in my internals
> networks doesnt run because the information goes by 213.250.143.241 and
not
> in the normal routes.

I'm not clear on whether you have internal routers, but if so they
should all have default routes to the gateway system as well as
specific routes to the local networks.  The gateway IP for the local
PC's should be the router interface nearest them.

>
> Can you help me, please?

I hope this helps,
jc


--
Jeff Coppock            Systems Engineer
Diggin' Debian          Admin and User


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

Reply via email to