All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] NETWORK ROUTES
@ 2002-10-24  7:23 Ángel Carrasco
  2002-10-24 11:45 ` Stef Coene
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Ángel Carrasco @ 2002-10-24  7:23 UTC (permalink / raw)
  To: lartc

Hi all,

I have a debian server with 4 network cards:
The first card is used to connect to public network and this network
connects with a big router.
The Second, third and fourth cards are used by other networks.
The first card used a dinamic route with the big router.
The other cards used a static route with a little router.
All runs good but my problem is when I try to use the IP of my first card in
my internals networks
doesn't work because, all information doesn't go by internals networks, it
goes by the big network.
Could you help me, please?


Thank you very much,



Ángel

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [LARTC] NETWORK ROUTES
  2002-10-24  7:23 [LARTC] NETWORK ROUTES Ángel Carrasco
@ 2002-10-24 11:45 ` Stef Coene
  2002-10-24 12:29 ` Ángel Carrasco
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Stef Coene @ 2002-10-24 11:45 UTC (permalink / raw)
  To: lartc

On Thursday 24 October 2002 09:23, Ángel Carrasco wrote:
> Hi all,
>
> I have a debian server with 4 network cards:
> The first card is used to connect to public network and this network
> connects with a big router.
> The Second, third and fourth cards are used by other networks.
> The first card used a dinamic route with the big router.
> The other cards used a static route with a little router.
> All runs good but my problem is when I try to use the IP of my first card
> in my internals networks
> doesn't work because, all information doesn't go by internals networks, it
> goes by the big network.
Can you clarify this a bit?  Routes, ip-adresses, what you tried, what's 
working, what's not working, ...

Stef

-- 

stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [LARTC] NETWORK ROUTES
  2002-10-24  7:23 [LARTC] NETWORK ROUTES Ángel Carrasco
  2002-10-24 11:45 ` Stef Coene
@ 2002-10-24 12:29 ` Ángel Carrasco
  2002-10-24 19:57 ` Stef Coene
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Ángel Carrasco @ 2002-10-24 12:29 UTC (permalink / raw)
  To: lartc

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

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.


Can you help me, please?

----- Original Message -----
From: "Stef Coene" <stef.coene@docum.org>
To: "Ángel Carrasco" <falkom@arrakis.es>; <lartc@mailman.ds9a.nl>
Sent: Thursday, October 24, 2002 1:45 PM
Subject: Re: [LARTC] NETWORK ROUTES


On Thursday 24 October 2002 09:23, Ángel Carrasco wrote:
> Hi all,
>
> I have a debian server with 4 network cards:
> The first card is used to connect to public network and this network
> connects with a big router.
> The Second, third and fourth cards are used by other networks.
> The first card used a dinamic route with the big router.
> The other cards used a static route with a little router.
> All runs good but my problem is when I try to use the IP of my first card
> in my internals networks
> doesn't work because, all information doesn't go by internals networks, it
> goes by the big network.
Can you clarify this a bit?  Routes, ip-adresses, what you tried, what's
working, what's not working, ...

Stef

--

stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [LARTC] NETWORK ROUTES
  2002-10-24  7:23 [LARTC] NETWORK ROUTES Ángel Carrasco
  2002-10-24 11:45 ` Stef Coene
  2002-10-24 12:29 ` Ángel Carrasco
@ 2002-10-24 19:57 ` Stef Coene
  2002-10-24 20:18 ` Ángel Carrasco
  2002-10-28  5:40 ` Martin A. Brown
  4 siblings, 0 replies; 6+ messages in thread
From: Stef Coene @ 2002-10-24 19:57 UTC (permalink / raw)
  To: lartc

On Thursday 24 October 2002 14:29, Ángel Carrasco wrote:
> 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
>
> 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 suppose you pinged from on of your internal hosts to 213.250.143.242 ??   
213.250.143.242 is local, so no routing rule will route the packets to 
somewhere else.

>
> Can you help me, please?
I'm not a rouing specialist, but shouldn't your default gateway be 
213.250.143.24 ??
And I suppose you already enabled ip-forwarding?
Stef

-- 

stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: [LARTC] NETWORK ROUTES
  2002-10-24  7:23 [LARTC] NETWORK ROUTES Ángel Carrasco
                   ` (2 preceding siblings ...)
  2002-10-24 19:57 ` Stef Coene
@ 2002-10-24 20:18 ` Ángel Carrasco
  2002-10-28  5:40 ` Martin A. Brown
  4 siblings, 0 replies; 6+ messages in thread
From: Ángel Carrasco @ 2002-10-24 20:18 UTC (permalink / raw)
  To: lartc

My little route only manage the range 172.16.16.0/24 and my public route
only manages the range 213.250.143.240/28. I cannot add new rules because
these routers are administer by other company and this company cannot
colaborate me.

Please can you help me, please?


Ángel

-----Mensaje original-----
De: lartc-admin@mailman.ds9a.nl [mailto:lartc-admin@mailman.ds9a.nl]En
nombre de Stef Coene
Enviado el: jueves, 24 de octubre de 2002 21:58
Para: Ángel Carrasco; lartc@mailman.ds9a.nl
Asunto: Re: [LARTC] NETWORK ROUTES


On Thursday 24 October 2002 14:29, Ángel Carrasco wrote:
> 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
>
> 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 suppose you pinged from on of your internal hosts to 213.250.143.242 ??
213.250.143.242 is local, so no routing rule will route the packets to
somewhere else.

>
> Can you help me, please?
I'm not a rouing specialist, but shouldn't your default gateway be
213.250.143.24 ??
And I suppose you already enabled ip-forwarding?
Stef

--

stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: [LARTC] NETWORK ROUTES
  2002-10-24  7:23 [LARTC] NETWORK ROUTES Ángel Carrasco
                   ` (3 preceding siblings ...)
  2002-10-24 20:18 ` Ángel Carrasco
@ 2002-10-28  5:40 ` Martin A. Brown
  4 siblings, 0 replies; 6+ messages in thread
From: Martin A. Brown @ 2002-10-28  5:40 UTC (permalink / raw)
  To: lartc

햚gel,

I agree with Stef's remark--it looks like your default route should be 
213.250.143.241, but we don't know exactly why you chose to set up a 
default route to 172.16.16.254 (your internal router).

Please tell us what networks are behind 172.16.16.254.

I suspect that you may have a handful of networks behind 172.16.16.254, 
all of which can be entered as static routes on your Debian box.  Then you 
can set the default route on this machine to 213.250.143.241.

Let's assume that you have the network 172.16.0.0/16 reachable behind your 
router 172.16.16.254.  You should be able to do this:

# ip route add 172.16.0.0/16 via 172.16.16.254
# ip route change default via 213.250.143.241

In that case, you will no longer need "ip rule" at all.

-Martin

 : My little route only manage the range 172.16.16.0/24 and my public route
 : only manages the range 213.250.143.240/28. I cannot add new rules because
 : these routers are administer by other company and this company cannot
 : colaborate me.
 : 
 : Please can you help me, please?
 : 
 : 
 : 햚gel
 : 
 : -----Mensaje original-----
 : De: lartc-admin@mailman.ds9a.nl [mailto:lartc-admin@mailman.ds9a.nl]En
 : nombre de Stef Coene
 : Enviado el: jueves, 24 de octubre de 2002 21:58
 : Para: 햚gel Carrasco; lartc@mailman.ds9a.nl
 : Asunto: Re: [LARTC] NETWORK ROUTES
 : 
 : 
 : On Thursday 24 October 2002 14:29, 햚gel Carrasco wrote:
 : > 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
 : >
 : > 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 suppose you pinged from on of your internal hosts to 213.250.143.242 ??
 : 213.250.143.242 is local, so no routing rule will route the packets to
 : somewhere else.
 : 
 : >
 : > Can you help me, please?
 : I'm not a rouing specialist, but shouldn't your default gateway be
 : 213.250.143.24 ??
 : And I suppose you already enabled ip-forwarding?
 : Stef
 : 
 : --
 : 
 : stef.coene@docum.org
 :  "Using Linux as bandwidth manager"
 :      http://www.docum.org/
 :      #lartc @ irc.oftc.net
 : 
 : _______________________________________________
 : LARTC mailing list / LARTC@mailman.ds9a.nl
 : http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
 : 
 : _______________________________________________
 : LARTC mailing list / LARTC@mailman.ds9a.nl
 : http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
 : 

-- 
Martin A. Brown --- SecurePipe, Inc. --- mabrown@securepipe.com



_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2002-10-28  5:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-24  7:23 [LARTC] NETWORK ROUTES Ángel Carrasco
2002-10-24 11:45 ` Stef Coene
2002-10-24 12:29 ` Ángel Carrasco
2002-10-24 19:57 ` Stef Coene
2002-10-24 20:18 ` Ángel Carrasco
2002-10-28  5:40 ` Martin A. Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.