Re: [mpls-linux-general] Simple examples, they do not work!
Status: Beta
Brought to you by:
jleu
|
From: Christian <c.t...@gm...> - 2004-01-27 04:16:54
|
=2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello! Am Freitag, 23. Januar 2004 15:19 schrieb Jung Janos: > mplsadm2 -AO 0 (out: key1) > mplsadm2 -O key1 -o push:gen:16:set:eth1:ipv4:10.120.0.6 > ip route add 10.120.0.6/32 lsp key1 > #out:RTNETLINK answers: no such device You need to specify your Device like: ip route add 10.120.0.6 /32 dev eth1 lsp key1 I have written a litte script for the setup of a static route perhaps you f= ind it helpful: =2D ---8<--- #!/bin/bash # # Script to setup a static mpls route between two hosts # # December 2003 - Christan Tr=F6ster # IP=3D"1.1.1.1" KEY1=3D`mplsadm2 -A -O 0 2> /dev/null | grep Key | cut -d" " -f2` DEVICE=3D"eth1" echo "Setting up mpls route to $IP via $DEVICE using key $KEY1..." mplsadm2 -O $KEY1 -o push:gen:16:set:$DEVICE:ipv4:$IP ip route add $IP/32 dev $DEVICE lsp $KEY1 mplsadm2 -A -I gen:17:0 mplsadm2 -L $DEVICE:0 echo "done" =2D ---8<--- Bye, Christian =2D -- | mailto:c.t...@gm... | http://www.fen-net.de/~na2929 | =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFAETMfCXo2j/oAbHQRAuZzAJ4pYyqKqJhIlBgxcwKIwvPj8KmaTQCfYZZ6 Ce8+HFezqxyajUgCxTi20XE=3D =3DbzoG =2D----END PGP SIGNATURE----- |