📄 readme.quagga-mpls.txt
字号:
What is this?-------------quagga-mpls.diff is a quagga<->ldp-portable porting layer.What is "quagga"?----------------Quagga is a set of open source routing daemons which implement thecommon routing protocols (RIP, OSPF, BGP). Each protocol runs as a seperatedameon, and they are all syncronized via a managment daemon (zebra). If youhave never used quagga, go to http://quagga.net/ download the source for0.96.4, compile it and learn how to setup up a small OSPF network usingquagga. Once you have that running then you are ready try and use this patch.What does this patch include?-----------------------------It includes a 'router-id' implementation so that each protocol chooses the sameaddress as it's router-id. (very important for implementing moreadvanced MPLS services)In includes a 'sum-of-checksums' implementation for OSPF so you can easilyverify that all of your OSPF speakers in an area have the same version of thedatabase (their sum-of-checksums will match).It handles MPLS labels as part of the quagga nexthop and correcthandling of MPLS labels as part of a recursive nexthop.It implements a CLI for creating static LSPs (in the zebra daemon).It implements a porting layer for the ldp-portable library so that LDPinteract seemlessly with the rest of the quagga routing software (in the ldpddaemon).How do I use this patch?-----------------------Apply quagga-mpls.diff to the quagga source distribution. (0.96.4)Go into the quagga/ldpd directory and modify 'create-links' to point toyour ldp-portable source distribution. Then execute 'create-links' .Go back to the top of the quagga source tree and configure and compilequagga according to it's directions. If you are not running on a mpls-linuxenabled kernel, modify quagga/zebra/Makefile.am and change mpls-linux.o tompls_null.o. If you have issues compiling and you are running ampls-linux-1.1x kernel most likely it can't find yourlinux/include/linux/mpls.h file. Go read the file 'README.1st.really'in the mpls-linux-1.1 distrubution.After you have finished compling, you will have a ldpd binary that hasthe same command line syntax as the rest of the quagga binaries.'ldpd' supports LDP, zebra supports staic LSPs.(if you are not familiar with quagga hit the '?' key and it will provideyou context sensitive help. Also look at 'mpls' at the interface level.There are also 'show' commands availble from the operations more. Look at'show ldp ?' and 'show mpls ?' for a list of commands.)The environment I use is:zebra -f /etc/zebra.conf -P 1024 -dospdd -f /etc/ospfd.conf -P 1025 -dldpd -f /etc/ldpd.conf -P 1026NOTE: 'ldpd' still has a lot of tracing messages which only go to standardoutput. If you use the -d option on 'ldpd' you will loose this usefuldebugging output.Look at quagga/ldpd/ldpd.conf.sample or the sample configs I have includedbelow, for a basic configuration example.I have done most of my testing with unsolicited mode, liberal retention, labelmerging, ordered control. If you have success or failures with other modeslet me know.Please post questions to the mpls-linux mailing list:http://sourceforge.net/mail/?group_id=15443Here is a version of each of the quagga related config files that I usefor testing.NOTE: The usage of the dummy interface with a /32 address is important!--------------------------- zebra config ------------------------------hostname uml-2password rootenable password rootservice advanced-vty!mpls labelspace 0 label-map gen 16 pop label-map gen 17 swap gen 18 nexthop eth2 11.0.2.3!interface lo description Loopback !interface dummy0 ip address 192.168.0.2/32!interface eth0!interface eth1 mpls labelspace 0 ip address 11.0.1.2/24!interface eth2 mpls labelspace 0 ip address 11.0.2.2/24!interface eth3 mpls labelspace 0 ip address 11.0.3.2/24!interface teql0!ip route 10.0.0.0/8 gen 19 nexthop eth2 11.0.2.3!line vty exec-timeout 0 0--------------------------- ospfd config ------------------------------hostname uml-2-ospfpassword rootenable password root!!!interface lo!interface teql0!interface eth0!interface eth1!interface eth2!interface eth3!interface dummy0!router ospf passive-interface lo network 11.0.0.0/8 area 0 network 192.168.0.2/32 area 0!line vty exec-timeout 0 0--------------------------- mplsd config ------------------------------hostname uml-2-mplspassword rootenable password root!mpls ip!interface lo!interface eth0!interface eth1 mpls ip!interface eth2 mpls ip!interface eth3 mpls ip!interface dummy0!line vty exec-timeout 0 0
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -