Re: [mpls-linux-devel] MPLS-Linux-1.955 FC5
Status: Beta
Brought to you by:
jleu
From: James R. L. <jl...@mi...> - 2007-03-09 13:59:20
|
You will need to run OSPF (or create static routes) before LDP will operate correctly. On Fri, Mar 09, 2007 at 12:41:37PM +0100, Sienes Rodr?guez Gonzalo wrote: > Hi: >=20 > This is what I tried. I launch only zebra and ldpd on both LSRs and I spe= cify the routes for PE1 to reach 13.1 and for PE2 to 12.1: >=20 > eth0 eth1 eth1 eth0 > 12.0.0.1-------PE1---------------------PE2-------13.0.0.1 > .1 10.0.0.0/24 .2 >=20 > As you could see the label 10000 is distributed correctly, but the routes= are created only in vtysh with that label. Although nhlfe and ilm are upda= ted, the mpls route doesn't appear. >=20 > Thanks in advance, >=20 > Gonzalo. >=20 > PE1 configuration: > ----------------------------------------------------------------------- >=20 > [root@PE1 ~]# ip route add 13.0.0.0/24 via 10.0.0.2 > [root@PE1 ~]# ip route > 10.0.0.0/24 dev eth1 proto kernel scope link src 10.0.0.1 > 12.0.0.0/24 dev eth0 proto kernel scope link src 12.0.0.1 > 13.0.0.0/24 via 10.0.0.2 dev eth1 > [root@PE1 ~]# zebra -d > [root@PE1 ~]# ldpd -d > [root@PE1 ~]# lsmod | grep mpls > mpls4 10240 0 > [root@PE1 ~]# ps -e | grep ze > 2724 ? 00:00:00 zebra > [root@PE1 ~]# ps -e | grep ldp > 2726 ? 00:00:00 ldpd > [root@PE1 ~]# vtysh >=20 > Hello, this is Quagga (version 0.99.6). > Copyright 1996-2005 Kunihiro Ishiguro, et al. >=20 > PE1# con t > PE1(config)# mpls ldp > PE1(config-ldp)# ex > PE1(config)# int eth1 > PE1(config-if)# mpls ip > PE1(config-if-ldp)# ex > PE1(config-if)# mpls labelsp 0 > Labelspace: 0 > PE1(config-if)# end > PE1# sh run > Building configuration... >=20 > Current configuration: > ! > hostname PE1 > hostname uml-1 > ! > password root > enable password root > ! > interface eth0 > ipv6 nd suppress-ra > ! > interface eth1 > ipv6 nd suppress-ra > mpls ip > mpls labelspace 0 > ! > interface lo > ! > interface sit0 > ipv6 nd suppress-ra > ! > mpls ldp > egress connected > ! > ip forwarding > ! > line vty > ! >=20 > PE1# sh ldp disc >=20 > Local LSR Identifier: 12.0.0.1 >=20 > Interface Discovery Sources: > eth1: xmit/recv > LDP Id: 10.0.0.2:0 >=20 > Targeted Discovery Sources: > No configured peers >=20 > PE1# sh ldp neig > Peer LDP Ident: 10.0.0.2:0; Local LDP Ident: 12.0.0.1:0 > TCP connection: 10.0.0.1.34306 - 10.0.0.2.39775 > State: OPERATIONAL; Msgs sent/recv: 12/35; UNSOLICITED > Up time: 00:01:53 > LDP discovery sources: > eth1 > Addresses bound to peer: > 10.0.0.2 13.0.0.1 >=20 >=20 > PE1# sh ldp ses > 4 10.0.0.2 45 OPERATIONAL > 10.0.0.2 > 13.0.0.1 >=20 > PE1# sh ip route > Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF, > I - ISIS, B - BGP, > - selected route, * - FIB route >=20 > C>* 10.0.0.0/24 is directly connected, eth1 > C>* 12.0.0.0/24 is directly connected, eth0 > K> 13.0.0.0/24 via 10.0.0.2, eth1 (label 10000) > C>* 127.0.0.0/8 is directly connected, lo >=20 > PE1# ping 13.1 > connect: Network is unreachable >=20 > PE1# sh lpd ses > % Unknown command. > PE1# sh lpd ses > % Unknown command. > PE1# sh ldp dis >=20 > Local LSR Identifier: 10.0.0.1 >=20 > Interface Discovery Sources: > eth1: xmit/recv > LDP Id: 10.0.0.2:0 >=20 > Targeted Discovery Sources: > No configured peers >=20 > PE1# sh ldp neigh > Peer LDP Ident: 10.0.0.2:0; Local LDP Ident: 10.0.0.1:0 > TCP connection: 10.0.0.1.34306 - 10.0.0.2.34166 > State: OPERATIONAL; Msgs sent/recv: 26/77; UNSOLICITED > Up time: 00:05:28 > LDP discovery sources: > eth1 > Addresses bound to peer: > 10.0.0.2 13.0.0.1 >=20 >=20 > [root@PE1 ~]# mpls nhlfe > NHLFE entry key 0x00000002 mtu 1496 propagate_ttl > push gen 10000 set eth1 ipv4 10.0.0.2 (0 bytes, 0 pkts) > [root@PE1 ~]# mpls ilm > ILM entry label gen 10000 labelspace 0 proto ipv4 > pop peek (0 bytes, 0 pkts) >=20 > [root@PE1 ~]# ip route > 10.0.0.0/24 dev eth1 proto kernel scope link src 10.0.0.1 > 12.0.0.0/24 dev eth0 proto kernel scope link src 12.0.0.1 >=20 > [root@PE1 ~]# > [root@PE1 ~]# mpls nhlfe > NHLFE entry key 0x00000002 mtu 1496 propagate_ttl > push gen 10000 set eth1 ipv4 10.0.0.2 (0 bytes, 0 pkts) > [root@PE1 ~]# mpls ilm > ILM entry label gen 10000 labelspace 0 proto ipv4 > pop peek (0 bytes, 0 pkts) > [root@PE1 ~]# ip route > 10.0.0.0/24 dev eth1 proto kernel scope link src 10.0.0.1 > 12.0.0.0/24 dev eth0 proto kernel scope link src 12.0.0.1 > [root@PE1 ~]# >=20 > PE3 configuration: > ----------------------------------------------------------------------- >=20 > [root@PE3 ~]# ip route add 12.0.0.0/24 via 10.0.0.1 >=20 > [root@PE3 ~]# ip route > 10.0.0.0/24 dev eth1 proto kernel scope link src 10.0.0.2 > 12.0.0.0/24 via 10.0.0.1 dev eth1 > 13.0.0.0/24 dev eth0 proto kernel scope link src 13.0.0.1 >=20 > [root@PE3 ~]# zebra -d > [root@PE3 ~]# ldpd -d > [root@PE3 ~]# vtysh >=20 > Hello, this is Quagga (version 0.99.6). > Copyright 1996-2005 Kunihiro Ishiguro, et al. >=20 > PE3# con t > PE3(config)# mpls ldp > PE3(config-ldp)# ex > PE3(config)# int eth1 > PE3(config-if)# mpls ip > PE3(config-if-ldp)# ex > PE3(config-if)# mpls labelsp 0 > Labelspace: 0 > PE3(config-if)# end > PE3# sh run > Building configuration... >=20 > Current configuration: > ! > hostname PE3 > hostname uml-1 > ! > password root > enable password root > ! > interface eth0 > ipv6 nd suppress-ra > ! > interface eth1 > ipv6 nd suppress-ra > mpls ip > mpls labelspace 0 > ! > interface eth2 > ipv6 nd suppress-ra > ! > interface lo > ! > interface sit0 > ipv6 nd suppress-ra > ! > mpls ldp > egress connected > ! > ip forwarding > ! > line vty >=20 > PE3# sh ip route > Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF, > I - ISIS, B - BGP, > - selected route, * - FIB route >=20 > C>* 10.0.0.0/24 is directly connected, eth1 > K> 12.0.0.0/24 via 10.0.0.1, eth1 (label 10000) > C>* 13.0.0.0/24 is directly connected, eth0 > C>* 127.0.0.0/8 is directly connected, lo > K>* 169.254.0.0/16 is directly connected, eth1 > PE3# ping 12.1 > connect: Network is unreachable >=20 > PE3# sh ldp ses > 3 8.162.7.240 45 OPERATIONAL > 10.0.0.1 > 12.0.0.1 > PE3# sh ldp disc >=20 > Local LSR Identifier: 10.0.0.2 >=20 > Interface Discovery Sources: > eth1: xmit/recv > LDP Id: 10.0.0.1:0 >=20 > Targeted Discovery Sources: > No configured peers >=20 > PE3# sh ldp neigh > Peer LDP Ident: 10.0.0.1:0; Local LDP Ident: 10.0.0.2:0 > TCP connection: 10.0.0.2.30341 - 10.0.0.1.646 > State: OPERATIONAL; Msgs sent/recv: 21/62; UNSOLICITED > Up time: 00:04:06 > LDP discovery sources: > eth1 > Addresses bound to peer: > 10.0.0.1 12.0.0.1 >=20 >=20 > [root@PE3 ~]# ip route > 10.0.0.0/24 dev eth1 proto kernel scope link src 10.0.0.2 > 13.0.0.0/24 dev eth0 proto kernel scope link src 13.0.0.1 >=20 > [root@PE3 ~]# mpls nhlfe > NHLFE entry key 0x00000002 mtu 1496 propagate_ttl > push gen 10000 set eth1 ipv4 10.0.0.1 (0 bytes, 0 pkts) > [root@PE3 ~]# mpls ilm > ILM entry label gen 10000 labelspace 0 proto ipv4 > pop peek (0 bytes, 0 pkts) >=20 >=20 --=20 James R. Leu jl...@mi... |