1、MPLS组网案例组网需求:1.各路由器基本信息配置2.OSPF规范配置,修改网络类型为点对点3.所有路由器运行OSPF,RT4 E3/0、RT5 E3/0 network至OSPF中,RT1E3/0重发布直连到OSPF中4.所有路由器运行MPLS,标签分发协议为LDP5.RT4和RT5运行IBGP,并将E3/1发布至BGP中IP地址分配如下:前面配置略IGP配置如下:RT1:router ospf 1 router-id 1.1.1.1 passive-interface default no passive-interface Serial0/1 no p
2、assive-interface Serial0/2 redistribute connected metric 1000 subnets network 1.1.1.1 0.0.0.0 area 0 network 10.0.12.0 0.0.0.3 area 0 network 10.0.13.0 0.0.0.3 area 0RT2:router ospf 1 router-id 2.2.2.2 passive-interface default no passive-interface Serial0/0 no passive-interface Se
3、rial0/1 no passive-interface FastEthernet1/0 network 2.2.2.2 0.0.0.0 area 0 network 10.0.12.0 0.0.0.3 area 0 network 10.0.23.0 0.0.0.3 area 0 network 10.0.24.0 0.0.0.3 area 0interface f1/0ip ospf network point-to-pointRT3:router ospf 1 router-id 3.3.3.3 passive-interface default no
4、 passive-interface Serial0/0 no passive-interface Serial0/1 no passive-interface FastEthernet1/0 network 3.3.3.3 0.0.0.0 area 0 network 10.0.13.0 0.0.0.3 area 0 network 10.0.23.0 0.0.0.3 area 0 network 10.0.35.0 0.0.0.3 area 0interface f1/0ip ospf network point-to-pointRT4:router o
5、spf 1 router-id 4.4.4.4 passive-interface default no passive-interface Serial0/0 network 4.4.4.4 0.0.0.0 area 0 network 10.0.24.0 0.0.0.3 area 0 network 172.16.4.0 0.0.0.255 area 0RT5:router ospf 1 router-id 5.5.5.5 passive-interface default no passive-interface Serial0/0 network 5
6、.5.5.5 0.0.0.0 area 0 network 10.0.35.0 0.0.0.3 area 0 network 172.16.5.0 0.0.0.255 area 0MPLS配置:RT1、RT2、RT3、RT4、RT5如下配置:全局配置模式:ip cef //运行MPLS必须开启CEFmpls ip //开启MPLSmpls label protocol ldp //选择MPLS标签分发协议为LDP(默认是TDP,CISCO私有)再在所有MPLS网络中的接口开启MPLSRT1:int s0/1mpls ipint s0/
7、2mpls ip RT2的S0/0、F1/0、S0/1,RT3的S0/0、F1/0、S0/1,RT4、RT5的S0/1做以上配置IBGP的配置:RT4:router bgp 65000 no synchronization network 172.17.4.0 mask 255.255.255.0 neighbor 5.5.5.5 remote-as 65000 neighbor 5.5.5.5 update-source Loopback0 neighbor 5.5.5.5 next-hop-self no auto-summaryRT5:router