Re: [mpls-linux-devel] LDP Configuation
Status: Beta
Brought to you by:
jleu
From: James R. L. <jl...@mi...> - 2006-12-01 01:29:20
|
It looks like you've got a working MPLS kernel. Try building a LSP via the quagga interface, in vtysh try: monkey1(config)# mpls static 0 monkey1(config-ls)# label-map gen 160 swap gen 170 nexthop eth2 192.168.4.2 monkey1(config-ls)# end monkey1# show mpls forwarding Insegments: Lbl Spc Label Owner 0 160 static (inactive) Total 1 Outsegments: Interface Label Next Hop Owner eth2 170 192.168.4.2 static (inactive) Total 1 Cross Connects: Lbl Spc In Label Out Label Interface Next Hop Owner 0 160 170 eth2 192.168.4.2 static (inac= tive)Total 1 monkey1# Make sure you're seeing the MPLS debug in 'dmesg' BTW your should update your quagga-mpls and ldp-portable tree, I have submi= tted lots of changes since you built your RPM. On Mon, Nov 27, 2006 at 10:56:37AM +0100, Sienes Rodr?guez Gonzalo wrote: >=20 > Hi, James: >=20 > This is what I get with "dmesg" related to mpls as soon as system boots. I > have also loaded the "mpls4" module that at the same time loads "mpls" > module: >=20 > [root@PE1 ~]# lsmod | grep mpls > mpls4 6081 0 > mpls 78465 2 mpls4 >=20 > Linux version 2.6.15-1.1831_FC4mpls_1.950 (jleu@jleu-laptop) (gcc version > 4.0.2 20051125 (Red Hat 4.0.2-8)) #1 Sun Feb 26 15:00:23 CST 2006 >=20 > MPLS: version 1.950 > MPLS: protocol driver interface - <jl...@mi...> > MPLS DEBUG net/mpls/mpls_sysfs.c:130:mpls_sysfs_init: enter MPLS DEBUG > net/mpls/mpls_sysfs.c:139:mpls_sysfs_init: exit > MPLS: IPv4 over MPLS support > MPLS DEBUG net/mpls/mpls_ilm.c:126:mpls_ilm_dst_alloc: enter MPLS DEBUG > net/mpls/mpls_ilm.c:156:mpls_ilm_dst_alloc: exit >=20 > These are the new lines output by dmesg when I type: >=20 > [root@PE1 ~]# mpls ilm show > [root@PE1 ~]# mpls nhlfe show >=20 > MPLS DEBUG net/mpls/mpls_netlink.c:204:genl_mpls_ilm_dump: Enter: entry 0 > MPLS DEBUG net/mpls/mpls_netlink.c:221:genl_mpls_ilm_dump: Exit: entry 0 > MPLS DEBUG net/mpls/mpls_netlink.c:394:genl_mpls_nhlfe_dump: Enter: entry= 0 > MPLS DEBUG net/mpls/mpls_netlink.c:411:genl_mpls_nhlfe_dump: Exit: entry 0 >=20 > The next I tried was to create a NHLFE entry and an ILM entry: >=20 > [root@PE1 ~]# mpls nhlfe add key 0 > NHLFE entry key 0x00000002 mtu 0 propagate_ttl > (0 bytes, 0 pkts) >=20 > [root@PE1 ~]# mpls ilm add label gen 100 labelspace 0 >=20 > [root@PE1 ~]# mpls nhlfe show > NHLFE entry key 0x00000002 mtu 0 propagate_ttl > (0 bytes, 0 pkts) >=20 > [root@PE1 ~]# mpls ilm show > ILM entry label gen 100 labelspace 0 proto ipv4 > pop peek (0 bytes, 0 pkts) >=20 > ...and their respective lines in dmesg output: >=20 > MPLS DEBUG net/mpls/mpls_netlink.c:298:genl_mpls_nhlfe_new: enter MPLS DE= BUG > net/mpls/mpls_nhlfe.c:394:mpls_add_out_label: enter MPLS DEBUG > net/mpls/mpls_nhlfe.c:130:nhlfe_dst_alloc: enter MPLS DEBUG > net/mpls/mpls_nhlfe.c:151:nhlfe_dst_alloc: exit MPLS DEBUG > net/mpls/mpls_netlink.c:275:mpls_nhlfe_event: enter MPLS DEBUG > net/mpls/mpls_netlink.c:235:mpls_fill_nhlfe: enter MPLS DEBUG > net/mpls/mpls_instr.c:188:mpls_instrs_unbuild: enter MPLS DEBUG > net/mpls/mpls_instr.c:201:mpls_instrs_unbuild: exit MPLS DEBUG > net/mpls/mpls_netlink.c:259:mpls_fill_nhlfe: exit MPLS DEBUG > net/mpls/mpls_netlink.c:289:mpls_nhlfe_event: exit MPLS DEBUG > net/mpls/mpls_nhlfe.c:451:mpls_add_out_label: exit MPLS DEBUG > net/mpls/mpls_netlink.c:335:genl_mpls_nhlfe_new: Exit: 0 MPLS DEBUG > net/mpls/mpls_netlink.c:115:genl_mpls_ilm_new: enter MPLS DEBUG > net/mpls/mpls_ilm.c:522:mpls_add_in_label: enter MPLS DEBUG > net/mpls/mpls_ilm.c:126:mpls_ilm_dst_alloc: enter MPLS DEBUG > net/mpls/mpls_ilm.c:109:ilm_dst_gc: enter MPLS DEBUG > net/mpls/mpls_ilm.c:110:ilm_dst_gc: exit MPLS DEBUG > net/mpls/mpls_ilm.c:156:mpls_ilm_dst_alloc: exit MPLS DEBUG > net/mpls/mpls_netlink.c:91:mpls_ilm_event: enter MPLS DEBUG > net/mpls/mpls_netlink.c:53:mpls_fill_ilm: enter MPLS DEBUG > net/mpls/mpls_instr.c:188:mpls_instrs_unbuild: enter MPLS DEBUG > net/mpls/mpls_instr.c:201:mpls_instrs_unbuild: exit MPLS DEBUG > net/mpls/mpls_netlink.c:76:mpls_fill_ilm: exit MPLS DEBUG > net/mpls/mpls_netlink.c:106:mpls_ilm_event: exit MPLS DEBUG > net/mpls/mpls_ilm.c:582:mpls_add_in_label: exit MPLS DEBUG > net/mpls/mpls_netlink.c:145:genl_mpls_ilm_new: Exit: 0 MPLS DEBUG > net/mpls/mpls_netlink.c:394:genl_mpls_nhlfe_dump: Enter: entry 0 MPLS DEB= UG > net/mpls/mpls_netlink.c:397:genl_mpls_nhlfe_dump: Dump: entry 0 MPLS DEBUG > net/mpls/mpls_netlink.c:235:mpls_fill_nhlfe: enter MPLS DEBUG > net/mpls/mpls_instr.c:188:mpls_instrs_unbuild: enter MPLS DEBUG > net/mpls/mpls_instr.c:201:mpls_instrs_unbuild: exit MPLS DEBUG > net/mpls/mpls_netlink.c:259:mpls_fill_nhlfe: exit MPLS DEBUG > net/mpls/mpls_netlink.c:411:genl_mpls_nhlfe_dump: Exit: entry 1 MPLS DEBUG > net/mpls/mpls_netlink.c:394:genl_mpls_nhlfe_dump: Enter: entry 1 MPLS DEB= UG > net/mpls/mpls_netlink.c:397:genl_mpls_nhlfe_dump: Dump: entry 0 MPLS DEBUG > net/mpls/mpls_netlink.c:411:genl_mpls_nhlfe_dump: Exit: entry 1 MPLS DEBUG > net/mpls/mpls_netlink.c:204:genl_mpls_ilm_dump: Enter: entry 0 MPLS DEBUG > net/mpls/mpls_netlink.c:207:genl_mpls_ilm_dump: Dump: entry 0 MPLS DEBUG > net/mpls/mpls_netlink.c:53:mpls_fill_ilm: enter MPLS DEBUG > net/mpls/mpls_instr.c:188:mpls_instrs_unbuild: enter MPLS DEBUG > net/mpls/mpls_instr.c:201:mpls_instrs_unbuild: exit MPLS DEBUG > net/mpls/mpls_netlink.c:76:mpls_fill_ilm: exit MPLS DEBUG > net/mpls/mpls_netlink.c:221:genl_mpls_ilm_dump: Exit: entry 1 MPLS DEBUG > net/mpls/mpls_netlink.c:204:genl_mpls_ilm_dump: Enter: entry 1 MPLS DEBUG > net/mpls/mpls_netlink.c:207:genl_mpls_ilm_dump: Dump: entry 0 MPLS DEBUG > net/mpls/mpls_netlink.c:221:genl_mpls_ilm_dump: Exit: entry 1 >=20 > I hope you'll have a look at it and you could tell me something about. >=20 > If it helps here are the RPMs installed related to MPLS: >=20 > [root@l12p07 ~]# rpm -qa | grep mpls iproute-2.6.11-1_mpls_90.1162552079 > //In this version of iproute I have > //only modified the usage of > //mpls_tunnel command > iptables-1.3.0-2_mpls_1.950d > kernel-2.6.15-1.1831_FC4mpls_1.950 > glibc-kernheaders-3.0-5.2_mpls0.1162999872 > quagga-0.99.4-2006111701_mpls_0.1163780539 > quagga-contrib-0.99.4-2006111701_mpls_0.1163780539 > quagga-debuginfo-0.99.4-2006111701_mpls_0.1163780539 > quagga-devel-0.99.4-2006111701_mpls_0.1163780539 > kernel-devel-2.6.15-1.1831_FC4mpls_1.950 >=20 >=20 > Thanks for your time, > regards: >=20 > Gonzalo >=20 --=20 James R. Leu jl...@mi... |