[mpls-linux-general] [mpls example]succeeded
Status: Beta
Brought to you by:
jleu
|
From: allen <as...@gm...> - 2005-12-22 12:06:54
|
Hi All:
I have succeeded. This configuration can be worked. It has succedded =
send the "ping request" packet from HostA to Host B(label 1000)=20
and receive the "ping reply" packets from HostB to HostA. To establish =
multi LSP between LER1 and LER2 is my following test.
Thanks for your attention.
192.168.101.0/24 192.168.103.0/24
| |
| |
------eth0 eth0------eth1 v eth1----eth0 eth0---eth1 v =
eth1------
| HostA |--------| LER1 |---------| LSR |-----| LER2 |----------| =
HostB |
------.10 ^ 20-------20 30-----30 ^ 40-----40 =
50------
| |
| |=20
192.168.100.0/24 192.168.102.0/24
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
------
ifconfig eth0 192.168.100.10 up
ip route add 192.168.103.0/24 via 192.168.100.20
LER1
------
ifconfig eth0 192.168.100.20 up
ifconfig eth1 192.168.101.20 up
mpls nhlfe add key 0 instructions push gen 1000 nexthop eth1 ipv4 =
192.168.101.30
ip route add 192.168.103.0/24 via 192.168.101.30 spec_nh 0x8847 0x2
mpls labelspace add dev eth1 labelspace 0
mpls ilm add label gen 2000 labelspace 0
LSR
-----
ifconfig eth1 192.168.101.30 up
ifconfig eth0 192.168.102.30 up
mpls nhlfe add key 0 instructions push gen 1000 nexthop eth0 ipv4 =
192.168.102.40
mpls labelspace add dev eth1 labelspace 0
mpls ilm add label gen 1000 labelspace
mpls xc add ilm_label gen 1000 ilm_labelspace 0 nhlfe_key 0x2
mpls nhlfe add key 0 instructions push gen 2000 nexthop eth1 ipv4 =
192.168.101.20
mpls labelspace add dev eth0 labelspace 0
mpls ilm add label gen 2000 labelspace
mpls xc add ilm_label gen 2000 ilm_labelspace 0 nhlfe_key 0x3
LER2
-----
ifconfig eth0 192.168.102.40 up
ifconfig eth1 192.168.103.40 up
mpls labelspace add dev eth0 labelspace 0
mpls ilm add label gen 1000 labelspace 0
mpls nhlfe add key 0 instructions push gen 2000 nexthop eth0 ipv4 =
192.168.102.30
ip route add 192.168.100.0/24 via 192.168.102.30 spec_nh 0x8847 0x2
HostB
------
ifconfig eth1 192.168.103.50 up
ip route add 192.168.100.0/24 via 192.168.103.40
|