[mpls-linux-general] Re:Re: LDP (linux-port)
Status: Beta
Brought to you by:
jleu
|
From: Kauder T. <Tho...@ic...> - 2001-12-13 09:20:31
|
Hey Mr Paul,
Thorsten is my first name but never mind :)))
I tried to copy your setup but my system does't support the ip-commands you used.
Didn't work here either.
Using your local loopback device doesn't seem to wise . Try using a dummy.
If your kernel supports loadable modules and dummy network device as such a module try it
with my setup.
I too am using only two computers with only one ethernet device each.
the dummy device is only virtual.
dummy0 --------- eth0 eth0 -------- dummy0
<-----| LER 1 |------------------| LER B |------->
--------- --------
First I set up the Devices.
On Ler 1:
ifconfig eth0 10.0.0.1 netmask 255.255.255.0 broadcast 10.0.0.255 up
ifconfig dummy0 1.2.3.4
On Ler 2:
ifconfig eth0 10.0.0.2 netmask 255.255.255.0 broadcast 10.0.0.255 up
ifconfig dummy0 2.3.4.5
Second I add routes to virtual networks.
On Ler 1:
route add -net 78.1.1.0/24 gw 1.2.3.4
route add -net 78.1.2.0/24 gw 1.2.3.4
route add -net 79.1.1.0/24 gw 10.0.0.2
route add -net 79.1.2.0/24 gw 10.0.0.2
On Ler 2:
route add -net 79.1.1.0/24 gw 2.3.4.5
route add -net 79.1.2.0/24 gw 2.3.4.5
route add -net 78.1.1.0/24 gw 10.0.0.1
route add -net 78.1.2.0/24 gw 10.0.0.1
Then I make shure the right labelspaces are associated:
on Ler 1 and Ler 2:
cd {your mpls dir}/utils
./mplsadm -L eth0:0
you can check if it worked in /proc/net/mpls_labelspace
Then start Ldp on both LERs:
On LER 1:
./ldp_linux
add global 10.0.0.1
set trace 0xFFFFFFFF
add interface eth0
On LER 2:
./ldp_linux
add global 10.0.0.2
set trace 0xFFFFFFFF
add interface eth0
Now it should work !!!!
My /proc/net/mpls_* files after that are listed below:
mpls_in:
40004000 gen 16 0 POP DLV
40004400 gen 17 0 POP DLV
40004800 gen 18 0 POP DLV
40004c00 gen 19 0 POP DLV
40005000 gen 20 0 POP DLV
40005400 gen 21 0 POP DLV
mpls_fec:
40004c02 78.1.1.0/24
40005002 78.1.2.0/24
mpls_labelspace:
lo 0
eth0 0
mpls_out:
40004c02 PUSH(gen 19) SET(eth0)
40005002 PUSH(gen 20) SET(eth0)
mpls_tunnel is of cource empty !!
if that doesn't help you I may ask if you can establish LSPs manually
try the README.example from the utils dir.
Hope it works now
Thorsten
|