[mpls-linux-general] [mpls example]another question
Status: Beta
Brought to you by:
jleu
|
From: allen <as...@gm...> - 2005-12-21 06:53:41
|
Hi All,
I want to continue trying another example as follows. Similarly to =
establish two way LSP(from HostA to HostB using label 1000, and HostB to =
HostA using label 1002). then use "ping" to test(from HostA to HostB). =
But failed again. Please tell me the problem of configuration and how to =
modify. thanks
=20
192.168.101.0/24 =
192.168.103.0/24 =20
| =
|
| =
|
------eth0 eth0------eth1 v eth1----eth0 =
eth0---eth1 v eth1------
| HostA |---------| LER1 |-------------| LSR |----------| LER2 =
|------------| HostB |
------.10 ^ 20-------20 30-----30 ^ =
40-----40 50------
| =
| =20
| =
|=20
192.168.100.0/24 192.168.102.0/24
=20
=20
Configuration
=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
HostA
------
ip route add 192.168.103.50/32 via 192.168.100.20
LER1
------
mpls nhlfe add key 0 instructions push gen 1000 nexthop eth0 ipv4 =
192.168.100.20
ip route add 192.168.103.50/32 via 192.168.101.30 spec_nh 0x8847 0x2
mpls labelspace add dev eth1 labelspace 0
mpls ilm add label gen 1002 labelspace 0
mpls xc add ilm_label gen 1002 ilm_labelspace 0 nhlfe_key 0x2
=20
LSR
-----
mpls nhlfe add key 0 instructions push gen 1000 nexthop eth0 ipv4 =
192.168.102.40
mpls nhlfe add key 0 instructions push gen 1002 nexthop eth1 ipv4 =
192.168.101.20
ip route add 192.168.103.50/32 via 192.168.102.40 spec_nh 0x8847 0x2
ip route add 192.168.100.10/32 via 192.168.101.20 spec_nh 0x8847 0x3
mpls labelspace add dev eth0 labelspace 0
mpls labelspace add dev eth1 labelspace 0
mpls ilm add label gen 1000 labelspace 0
mpls ilm add label gen 1002 labelspace 0=20
mpls xc add ilm_label gen 1000 ilm_labelspace 0 nhlfe_key 0x2
mpls xc add ilm_label gen 1002 ilm_labelspace 0 nhlfe_key 0x3
LER2
-----
mpls nhlfe add key 0 instructions push gen 1002 nexthop eth1 ipv4 =
192.168.103.40
ip route add 192.168.100.10/32 via 192.168.103.40 spec_nh 0x8847 0x2
mpls labelspace add dev eth0 labelspace 0
mpls ilm add label gen 1000 labelspace 0
mpls xc add ilm_label gen 1000 ilm_labelspace 0 nhlfe_key 0x2
HostB
------
ip route add 192.168.100.10/32 via 192.168.103.40 |