All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] RTNETLINK Problems <ip route> don't work as expected. (I think)
@ 2001-06-28 20:52 Theo Cabrerizo Diem
  2001-06-28 23:51 ` Ramin Alidousti
  2001-06-29 19:23 ` Theo Cabrerizo Diem
  0 siblings, 2 replies; 3+ messages in thread
From: Theo Cabrerizo Diem @ 2001-06-28 20:52 UTC (permalink / raw)
  To: lartc

Hi,

I have one firewall with 3 ethernet cards, 2 internet links, one cisco 
2920 and one problem in RTNETLINK ;o)

Let me explain my network :

|             *** Internet Link 1 ***                  *** Internet Link 
2 ***
                10.1.0.1|        Serial              Serial      | 10.2.0.1
||||                         +--------------+            +------------+ 
     
                                       |            |
||                                       +------------+
                               10.1.0.2|    CISCO   | 10.2.0.2
                                       +------+-----+
                                  192.168.1.1 / 192.168.2.1
                                              |
                                eth2 192.168.1.2/ 192.168.2.1
                                       +------------+
                                          FIREWALL
                                       +-+--------+-+
                          10.20.0.0  eth0|        |eth1 10.30.0.0
                                         |        |
                                 MY DMZ NET      MY CORPORATE NET

I used reserved IPs for security reasons .. <sorry :o( >
What I'm trying to do:
I don't want to use my cisco default route, because I will do some 
filtering, based on source address, at my firewall to choose wich link 
to use, so I must add (at my firewall) a default route using my ISP 1 
end <10.1.0.1> at one routing table, and other default route using my 
ISP 2 end <10.2.0.1> at another routing table, and do trafic control 
using iptables/iproute <as described in Advanced Routing how-to>.

the problem is ... RTNETLINK says Unreachable Network when I try to add 
a route, using a gateway wich isn't directly connected to my firewall 
:o(  this is the line I'm trying to use :
<I know I'm not writing on a specific routing table to do traffic control>

ip route add default via 10.1.0.1|
RTNETLINK answers: Network is unreachable

So ..  I've tried
ip route add default via 10.1.0.1 nexthop via 192.168.1.1
RTNETLINK answers: Invalid argument

Can anyone help me ? If someone need more info, ask me ...  <please 
reply me at theoc@spread.com.br but I will check this list every day ;o) >

[]'s



                                                                        
                             







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

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

* Re: [LARTC] RTNETLINK Problems <ip route> don't work as expected. (I think)
  2001-06-28 20:52 [LARTC] RTNETLINK Problems <ip route> don't work as expected. (I think) Theo Cabrerizo Diem
@ 2001-06-28 23:51 ` Ramin Alidousti
  2001-06-29 19:23 ` Theo Cabrerizo Diem
  1 sibling, 0 replies; 3+ messages in thread
From: Ramin Alidousti @ 2001-06-28 23:51 UTC (permalink / raw)
  To: lartc

Do you have a route (no default) to that destination? It should work
if you do.

Ramin

On Thu, Jun 28, 2001 at 05:52:33PM -0300, Theo Cabrerizo Diem wrote:

> Hi,
> 
> I have one firewall with 3 ethernet cards, 2 internet links, one cisco 
> 2920 and one problem in RTNETLINK ;o)
> 
> Let me explain my network :
> 
> |             *** Internet Link 1 ***                  *** Internet Link 
> 2 ***
>                 10.1.0.1|        Serial              Serial      | 10.2.0.1
> ||||                         +--------------+            +------------+ 
>      
>                                        |            |
> ||                                       +------------+
>                                10.1.0.2|    CISCO   | 10.2.0.2
>                                        +------+-----+
>                                   192.168.1.1 / 192.168.2.1
>                                               |
>                                 eth2 192.168.1.2/ 192.168.2.1
>                                        +------------+
>                                           FIREWALL
>                                        +-+--------+-+
>                           10.20.0.0  eth0|        |eth1 10.30.0.0
>                                          |        |
>                                  MY DMZ NET      MY CORPORATE NET
> 
> I used reserved IPs for security reasons .. <sorry :o( >
> What I'm trying to do:
> I don't want to use my cisco default route, because I will do some 
> filtering, based on source address, at my firewall to choose wich link 
> to use, so I must add (at my firewall) a default route using my ISP 1 
> end <10.1.0.1> at one routing table, and other default route using my 
> ISP 2 end <10.2.0.1> at another routing table, and do trafic control 
> using iptables/iproute <as described in Advanced Routing how-to>.
> 
> the problem is ... RTNETLINK says Unreachable Network when I try to add 
> a route, using a gateway wich isn't directly connected to my firewall 
> :o(  this is the line I'm trying to use :
> <I know I'm not writing on a specific routing table to do traffic control>
> 
> ip route add default via 10.1.0.1|
> RTNETLINK answers: Network is unreachable
> 
> So ..  I've tried
> ip route add default via 10.1.0.1 nexthop via 192.168.1.1
> RTNETLINK answers: Invalid argument
> 
> Can anyone help me ? If someone need more info, ask me ...  <please 
> reply me at theoc@spread.com.br but I will check this list every day ;o) >
> 
> []'s

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

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

* Re: [LARTC] RTNETLINK Problems <ip route> don't work as expected. (I think)
  2001-06-28 20:52 [LARTC] RTNETLINK Problems <ip route> don't work as expected. (I think) Theo Cabrerizo Diem
  2001-06-28 23:51 ` Ramin Alidousti
@ 2001-06-29 19:23 ` Theo Cabrerizo Diem
  1 sibling, 0 replies; 3+ messages in thread
From: Theo Cabrerizo Diem @ 2001-06-29 19:23 UTC (permalink / raw)
  To: lartc


Yes, I can ping 10.1.0.1.

I tried from another box, <one connected to my corporate net> and 
without using any default route, I can add a route to 10.1.0.1 using my 
firewall as gateway (and my firewall with a route configured too), but I 
can't use it as gateway to my default route ... :o/

<reply me at theoc@spread.com.br>

Theo.

Ramin Alidousti wrote:

>Do you have a route (no default) to that destination? It should work
>if you do.
>
>Ramin
>
>On Thu, Jun 28, 2001 at 05:52:33PM -0300, Theo Cabrerizo Diem wrote:
>
>>Hi,
>>
>>I have one firewall with 3 ethernet cards, 2 internet links, one cisco 
>>2920 and one problem in RTNETLINK ;o)
>>
>>Let me explain my network :
>>
>>|             *** Internet Link 1 ***                  *** Internet Link 
>>2 ***
>>                10.1.0.1|        Serial              Serial      | 10.2.0.1
>>||||                         +--------------+            +------------+ 
>>     
>>                                       |            |
>>||                                       +------------+
>>                               10.1.0.2|    CISCO   | 10.2.0.2
>>                                       +------+-----+
>>                                  192.168.1.1 / 192.168.2.1
>>                                              |
>>                                eth2 192.168.1.2/ 192.168.2.1
>>                                       +------------+
>>                                          FIREWALL
>>                                       +-+--------+-+
>>                          10.20.0.0  eth0|        |eth1 10.30.0.0
>>                                         |        |
>>                                 MY DMZ NET      MY CORPORATE NET
>>
>>I used reserved IPs for security reasons .. <sorry :o( >
>>What I'm trying to do:
>>I don't want to use my cisco default route, because I will do some 
>>filtering, based on source address, at my firewall to choose wich link 
>>to use, so I must add (at my firewall) a default route using my ISP 1 
>>end <10.1.0.1> at one routing table, and other default route using my 
>>ISP 2 end <10.2.0.1> at another routing table, and do trafic control 
>>using iptables/iproute <as described in Advanced Routing how-to>.
>>
>>the problem is ... RTNETLINK says Unreachable Network when I try to add 
>>a route, using a gateway wich isn't directly connected to my firewall 
>>:o(  this is the line I'm trying to use :
>><I know I'm not writing on a specific routing table to do traffic control>
>>
>>ip route add default via 10.1.0.1|
>>RTNETLINK answers: Network is unreachable
>>
>>So ..  I've tried
>>ip route add default via 10.1.0.1 nexthop via 192.168.1.1
>>RTNETLINK answers: Invalid argument
>>
>>Can anyone help me ? If someone need more info, ask me ...  <please 
>>reply me at theoc@spread.com.br but I will check this list every day ;o) >
>>
>>[]'s
>>



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

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

end of thread, other threads:[~2001-06-29 19:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-06-28 20:52 [LARTC] RTNETLINK Problems <ip route> don't work as expected. (I think) Theo Cabrerizo Diem
2001-06-28 23:51 ` Ramin Alidousti
2001-06-29 19:23 ` Theo Cabrerizo Diem

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.