[mpls-linux-general] LER2 to HostA can't ping
Status: Beta
Brought to you by:
jleu
|
From: kuldonk d. <ku...@ya...> - 2009-11-24 10:19:10
|
Hai..
i tried to built simple MPLS network. Same like “MPLS for Linux: IPv4 over MPLS: two LER one LSR example for mpls-linux-1.95x
and i got source rpm, from here
l kernel-2.6.26.6-49.fc8.mpls.1.962.i686.
l iproute-2.6.26-2.fc8.mpls.1.962.i386
l ebtables-2.0.8-3.fc8.mpls.1.962.i386
l iptables-1.4.1.1-2.fc8.mpls.1.962.i386.
l kernel-devel-2.6.26.6-49.fc8.mpls.1.962.i686
l kernel-headers-2.6.26.6-49.fc8.mpls.1.962.i386
l iptables-ipv6-1.4.1.1-2.fc8.mpls.1.962.i386
l iptables-devel-1.4.1.1-2.fc8.mpls.1.962.i386
note : i removed the old ip
route and the old iptables.
ip_forward active "1"
design network
like this :
etho eth1 eth1 eth1 eth2 eth0
[host A] ----------- [LER1]
----------- [LER2] ------------- [host B]
2.1 2.2 3.1 3.2 6.1 6.2
my configuration
is :
LER1
echo “1” > /proc/sys/net/mpls/debug
modprobe mpls4
mpls nhlfe add key 0 instructions push gen 1000
nexthop eth1 ipv4 192.168.3.2
mpls labelspace set dev eth1 labelspace 0
mpls ilm add label gen 2000 labelspace 0
mpls nhlfe add key 0 instructions nexthop eth0 ipv4
192.168.2.1
mpls xc add ilm_label gen 2000 ilm_labelspace 0
nhlfe_key 0x3
ip
route add 192.168.6.0/24 via 192.168.3.2 mpls 0x2
LER2
echo
“1” > /proc/sys/net/mpls/debug
modprobe mpls4
mpls nhlfe add key 0 instructions push gen 2000
nexthop eth0 ipv4 192.168.3.21
mpls labelspace set dev eth1 labelspace 0
mpls ilm add label gen 1000 labelspace 0
mpls nhlfe add key 0 instructions nexthop eth0 ipv4
192.168.6.2
mpls xc add ilm_label gen 1000 ilm_labelspace 0
nhlfe_key 0x3
ip route add 192.168.2.0/24 via 192.168.3.1 mpls 0x2
the problem is : can't ping from LER2 to Host A, while LER1 to host B it’s okey. result
is : [root@localhost ~]# ping 192.168.2.1
this capture using tcpdump in LER1, when
ler1 ping host B --- ler 2 ping host A
[root@localhost ~]# tcpdump -i eth1 -c 30
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth1, link-type EN10MB (Ethernet), capture size 96 bytes
17:31:43.995713 MPLS (label 1000, exp 0, [S], ttl 64), IP, length: 88
17:31:43.996063 IP 192.168.6.2 > 192.168.3.1: ICMP echo reply, id 43275, seq 111, length 64
17:31:44.200161 MPLS (label 2000, exp 0, [S], ttl 64), IP, length: 88
17:31:44.995725 MPLS (label 1000, exp 0, [S], ttl 64), IP, length: 88
17:31:44.996229 IP 192.168.6.2 > 192.168.3.1: ICMP echo reply, id 43275, seq 112, length 64
17:31:45.200138 MPLS (label 2000, exp 0, [S], ttl 64), IP, length: 88
17:31:45.995760 MPLS (label 1000, exp 0, [S], ttl 64), IP, length: 88
note :
setting at every router is same.
iptables,ip6tables,ebtales and firewall i disable
|