1、MPLS VPN配置示范080711hostname P1!boot-start-markerboot-end-marker!no aaa new-modelmemory-size iomem 5!ip cef!no ip domain lookup! !interface Loopback0 ip address 1.1.1.1 255.255.255.255!interface Serial1/0 ip address 12.1.1.1 255.255.255.0 ip mtu 1488 mpls ip serial restart-delay 0!interface Serial1/1
2、ip address 13.1.1.1 255.255.255.0 ip mtu 1488 mpls ip serial restart-delay 0!interface Serial1/2 no ip address shutdown serial restart-delay 0! interface Serial1/3 no ip address shutdown serial restart-delay 0!interface Ethernet2/0 no ip address shutdown half-duplex!interface Ethernet2/1 no ip addre
3、ss shutdown half-duplex!interface Ethernet2/2 no ip address shutdown half-duplex!interface Ethernet2/3 no ip address shutdown half-duplex!router ospf 110 router-id 1.1.1.1 log-adjacency-changes network 1.1.1.1 0.0.0.0 area 0 network 12.1.1.1 0.0.0.0 area 0 network 13.1.1.1 0.0.0.0 area 0!ip http ser
4、ver!control-plane!line con 0 exec-timeout 0 0 logging synchronousline aux 0line vty 0 4!Endhostname PE2!boot-start-markerboot-end-marker!no aaa new-modelmemory-size iomem 5!ip cef!ip vrf A rd 4:4 route-target export 45:45 route-target import 45:45!no ip domain lookup!interface Loopback0 ip address 2
5、.2.2.2 255.255.255.255!interface Serial1/0 ip address 12.1.1.2 255.255.255.0 ip mtu 1488 mpls ip serial restart-delay 0!interface Serial1/1 ip vrf forwarding A ip address 24.1.1.2 255.255.255.0 serial restart-delay 0!interface Serial1/2 no ip address shutdown serial restart-delay 0!interface Serial1
6、/3 no ip address shutdown serial restart-delay 0!interface Ethernet2/0 no ip address shutdown half-duplex!interface Ethernet2/1 no ip address shutdown half-duplex!interface Ethernet2/2 no ip address shutdown half-duplex!interface Ethernet2/3 no ip address shutdown half-duplex!router ospf 110 router-
7、id 2.2.2.2 log-adjacency-changes network 2.2.2.2 0.0.0.0 area 0 network 12.1.1.2 0.0.0.0 area 0!router bgp 123 no synchronization bgp router-id 2.2.2.2 bgp log-neighbor-changes neighbor 3.3.3.3 remote-as 123 neighbor 3.3.3.3 update-source Loopback0 neighbor 3.3.3.3 next-hop-self no auto-summary ! ad
8、dress-family vpnv4 neighbor 3.3.3.3 activate neighbor 3.3.3.3 send-community both exit-address-family ! address-family ipv4 vrf A redistribute connected redistribute static no synchronization exit-address-family!ip http serverip route vrf A 192.168.4.0 255.255.255.0 Serial1/1!control-plane!line con
9、0 exec-timeout 0 0 logging synchronousline aux 0line vty 0 4!Endhostname PE3!boot-start-markerboot-end-marker!no aaa new-modelmemory-size iomem 5!ip cef!ip vrf B rd 5:5 route-target export 45:45 route-target import 45:45!no ip domain lookup!interface Loopback0 ip address 3.3.3.3 255.255.255.255!inte
10、rface Serial1/0 ip vrf forwarding B ip address 35.1.1.3 255.255.255.0 serial restart-delay 0!interface Serial1/1 ip address 13.1.1.3 255.255.255.0 ip mtu 1488 mpls ip serial restart-delay 0!interface Serial1/2 no ip address shutdown serial restart-delay 0!interface Serial1/3 no ip address shutdown s
11、erial restart-delay 0!interface Ethernet2/0 no ip address shutdown half-duplex!interface Ethernet2/1 no ip address shutdown half-duplex!interface Ethernet2/2 no ip address shutdown half-duplex!interface Ethernet2/3 no ip address shutdown half-duplex!router ospf 110 router-id 3.3.3.3 log-adjacency-ch
12、anges network 3.3.3.3 0.0.0.0 area 0 network 13.1.1.3 0.0.0.0 area 0!router bgp 123 no synchronization bgp router-id 3.3.3.3 bgp log-neighbor-changes neighbor 2.2.2.2 remote-as 123 neighbor 2.2.2.2 update-source Loopback0 neighbor 2.2.2.2 next-hop-self no auto-summary ! address-family vpnv4 neighbor
13、 2.2.2.2 activate neighbor 2.2.2.2 send-community both exit-address-family ! address-family ipv4 vrf B redistribute connected redistribute static no synchronization exit-address-family!ip http serverip route vrf B 192.168.5.0 255.255.255.0 Serial1/0!control-plane!line con 0 exec-timeout 0 0 logging
14、synchronousline aux 0line vty 0 4!Endhostname CE4!boot-start-markerboot-end-marker!no aaa new-modelmemory-size iomem 5!ip cef!no ip domain lookup! !interface Loopback0 ip address 192.168.4.4 255.255.255.0!interface Serial1/0 no ip address shutdown serial restart-delay 0!interface Serial1/1 ip addres
15、s 24.1.1.4 255.255.255.0 serial restart-delay 0!interface Serial1/2 no ip address shutdown serial restart-delay 0!interface Serial1/3 no ip address shutdown serial restart-delay 0!interface Ethernet2/0 no ip address shutdown half-duplex!interface Ethernet2/1 no ip address shutdown half-duplex!interf
16、ace Ethernet2/2 no ip address shutdown half-duplex!interface Ethernet2/3 no ip address shutdown half-duplex!ip http serverip route 0.0.0.0 0.0.0.0 Serial1/1!control-plane!line con 0 exec-timeout 0 0 logging synchronousline aux 0line vty 0 4!Endhostname CE5!boot-start-markerboot-end-marker!no aaa new
17、-modelmemory-size iomem 5!ip cef!no ip domain lookup! !interface Loopback0 ip address 192.168.5.5 255.255.255.0!interface Serial1/0 ip address 35.1.1.5 255.255.255.0 serial restart-delay 0!interface Serial1/1 no ip address shutdown serial restart-delay 0!interface Serial1/2 no ip address shutdown se
18、rial restart-delay 0!interface Serial1/3 no ip address shutdown serial restart-delay 0!interface Ethernet2/0 no ip address shutdown half-duplex!interface Ethernet2/1 no ip address shutdown half-duplex!interface Ethernet2/2 no ip address shutdown half-duplex!interface Ethernet2/3 no ip address shutdown half-duplex!ip http serverip route 0.0.0.0 0.0.0.0 Serial1/0!control-plane!line con 0 exec-timeout 0 0 logging synchronousline aux 0line vty 0 4!end
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1