All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Problems with routes
@ 2002-06-05 12:21 Alexander Brill
  2002-06-05 20:43 ` Julian Anastasov
  2002-06-06  7:45 ` Alexander Brill
  0 siblings, 2 replies; 3+ messages in thread
From: Alexander Brill @ 2002-06-05 12:21 UTC (permalink / raw)
  To: lartc

[-- Attachment #1: Type: text/plain, Size: 570 bytes --]

Whenever I try to 'readd' a route I receive an error and I can't figure
out why...

# Add some routes
ip route add $EXT via $INT
ip route add prio 320 from $INT nat $EXT
# Delete them
ip route del from $INT nat $EXT
ip route del $EXT via $INT
# Add again
ip route add $EXT via $INT
ip route add prio 320 from $INT nat $EXT

The last command exits with exit-code '2' and the message:
RTNETLINK answers: Invalid argument

What am I doing wrong?

-- 
Alexander Brill <kiowa@project23.no>
http://www.project23.no
PGP-key: http://alexb.egil.org/key.pub

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: [LARTC] Problems with routes
  2002-06-05 12:21 [LARTC] Problems with routes Alexander Brill
@ 2002-06-05 20:43 ` Julian Anastasov
  2002-06-06  7:45 ` Alexander Brill
  1 sibling, 0 replies; 3+ messages in thread
From: Julian Anastasov @ 2002-06-05 20:43 UTC (permalink / raw)
  To: lartc


	Hello,

On 5 Jun 2002, Alexander Brill wrote:

> Whenever I try to 'readd' a route I receive an error and I can't figure
> out why...
>
> # Add some routes
> ip route add $EXT via $INT
> ip route add prio 320 from $INT nat $EXT

ip rule add prio 320 from $INT nat $EXT

> # Delete them
> ip route del from $INT nat $EXT

ip route del prio 320 from $INT nat $EXT

> ip route del $EXT via $INT
> # Add again
> ip route add $EXT via $INT
> ip route add prio 320 from $INT nat $EXT

ip rule add prio 320 from $INT nat $EXT

> The last command exits with exit-code '2' and the message:
> RTNETLINK answers: Invalid argument

	May be not only the last one :)

> What am I doing wrong?

	Use ip rules for SNAT and ip routes for DNAT

Regards

--
Julian Anastasov <ja@ssi.bg>

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

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

* Re: [LARTC] Problems with routes
  2002-06-05 12:21 [LARTC] Problems with routes Alexander Brill
  2002-06-05 20:43 ` Julian Anastasov
@ 2002-06-06  7:45 ` Alexander Brill
  1 sibling, 0 replies; 3+ messages in thread
From: Alexander Brill @ 2002-06-06  7:45 UTC (permalink / raw)
  To: lartc

[-- Attachment #1: Type: text/plain, Size: 1066 bytes --]

On Thu, 2002-06-06 at 01:42, Julian Anastasov wrote:
> 
> 	Hello,
> 
> On 5 Jun 2002, Alexander Brill wrote:
> 
> > Whenever I try to 'readd' a route I receive an error and I can't figure
> > out why...
> >
> > # Add some routes
> > ip route add $EXT via $INT
> > ip route add prio 320 from $INT nat $EXT
> 
> ip rule add prio 320 from $INT nat $EXT
> 
> > # Delete them
> > ip route del from $INT nat $EXT
> 
> ip route del prio 320 from $INT nat $EXT
> 
> > ip route del $EXT via $INT
> > # Add again
> > ip route add $EXT via $INT
> > ip route add prio 320 from $INT nat $EXT
> 
> ip rule add prio 320 from $INT nat $EXT
> 
> > The last command exits with exit-code '2' and the message:
> > RTNETLINK answers: Invalid argument
> 
> 	May be not only the last one :)
> 
> > What am I doing wrong?
> 
> 	Use ip rules for SNAT and ip routes for DNAT
> 

Thanks alot. Rather typical that you can't see your own typos ;)

-- 
Alexander Brill <kiowa@project23.no>
http://www.project23.no
PGP-key: http://alexb.egil.org/key.pub

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

end of thread, other threads:[~2002-06-06  7:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-05 12:21 [LARTC] Problems with routes Alexander Brill
2002-06-05 20:43 ` Julian Anastasov
2002-06-06  7:45 ` Alexander Brill

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.