MPLS hub-spoke
- 格式:docx
- 大小:50.11 KB
- 文档页数:10
R1#show running-configinterface Loopback0ip address 1.1.1.1 255.255.255.255 !interface FastEthernet0/0ip address 10.1.1.1 255.255.255.252 duplex autospeed auto!interface FastEthernet0/1ip address 192.168.1.1 255.255.255.0 duplex autospeed auto!interface FastEthernet1/0no ip addressshutdownduplex autospeed auto!!router ospf 1router-id 1.1.1.1log-adjacency-changesnetwork 1.1.1.1 0.0.0.0 area 0 network 10.1.1.0 0.0.0.3 area 0 network 192.168.1.0 0.0.0.255 area 0 !R2#show running-configinterface Loopback0ip address 2.2.2.2 255.255.255.255 !interface FastEthernet0/0ip address 10.1.1.5 255.255.255.252 duplex autospeed auto!interface FastEthernet0/1ip address 192.168.2.1 255.255.255.0 duplex autospeed auto!interface FastEthernet1/0no ip addressshutdownduplex autospeed auto!!router ospf 1router-id 2.2.2.2log-adjacency-changesnetwork 2.2.2.2 0.0.0.0 area 0 network 10.1.1.4 0.0.0.3 area 0 network 192.168.2.0 0.0.0.255 area 0 !endR3#show running-configinterface Loopback0ip address 3.3.3.3 255.255.255.255 !interface FastEthernet0/0ip vrf forwarding ce1ip address 10.1.1.2 255.255.255.252 duplex autospeed autointerface FastEthernet0/1ip address 10.1.1.13 255.255.255.252 duplex autospeed autompls ip!!router ospf 10 vrf ce1log-adjacency-changesredistribute bgp 100 subnetsnetwork 10.1.1.0 0.0.0.3 area 0!router ospf 1router-id 3.3.3.3log-adjacency-changesnetwork 3.3.3.3 0.0.0.0 area 0network 10.1.1.0 0.0.0.255 area 0!router bgp 100no synchronizationbgp router-id 3.3.3.3bgp log-neighbor-changesneighbor 6.6.6.6 remote-as 100 neighbor 6.6.6.6 update-source Loopback0 neighbor 6.6.6.6 next-hop-selfno auto-summary!address-family vpnv4neighbor 6.6.6.6 activateneighbor 6.6.6.6 send-community both exit-address-family!address-family ipv4 vrf ce1redistribute ospf 10 vrf ce1no synchronizationexit-address-family!endR4#show running-configinterface Loopback0ip address 4.4.4.4 255.255.255.255!interface FastEthernet0/0ip vrf forwarding ce2ip address 10.1.1.6 255.255.255.252 duplex autospeed auto!interface FastEthernet0/1ip address 10.1.1.17 255.255.255.252 duplex autospeed autompls ip!!router ospf 20 vrf ce2log-adjacency-changesredistribute bgp 100 subnetsnetwork 10.1.1.4 0.0.0.3 area 0!router ospf 1router-id 4.4.4.4log-adjacency-changesnetwork 4.4.4.4 0.0.0.0 area 0network 10.1.1.0 0.0.0.255 area 0!router bgp 100no synchronizationbgp router-id 4.4.4.4bgp log-neighbor-changesneighbor 6.6.6.6 remote-as 100 neighbor 6.6.6.6 update-source Loopback0 neighbor 6.6.6.6 next-hop-selfno auto-summary!address-family vpnv4neighbor 6.6.6.6 activateneighbor 6.6.6.6 send-community both exit-address-family!address-family ipv4 vrf ce2redistribute ospf 20 vrf ce2no synchronizationexit-address-familyendR5#show running-configinterface Loopback0ip address 5.5.5.5 255.255.255.255 !interface FastEthernet0/0ip address 10.1.1.14 255.255.255.252 duplex autospeed autompls ip!interface FastEthernet0/1ip address 10.1.1.18 255.255.255.252 duplex autospeed autompls ip!interface FastEthernet1/0ip address 10.1.1.21 255.255.255.252 duplex autospeed autompls ip!!router ospf 1router-id 5.5.5.5log-adjacency-changesnetwork 5.5.5.5 0.0.0.0 area 0 network 10.1.1.0 0.0.0.255 area 0!endR6#show running-configinterface Loopback0ip address 6.6.6.6 255.255.255.255 !interface FastEthernet0/0ip address 10.1.1.22 255.255.255.252 duplex autospeed autompls ip!interface FastEthernet0/1no ip addressduplex autospeed auto!interface FastEthernet0/1.10 encapsulation dot1Q 10ip vrf forwarding inip address 172.16.1.2 255.255.255.252 !interface FastEthernet0/1.20 encapsulation dot1Q 20ip vrf forwarding outip address 172.16.1.6 255.255.255.252 !!router ospf 10 vrf inlog-adjacency-changescapability vrf-literedistribute bgp 100 subnets network 172.16.1.0 0.0.0.3 area 0!router ospf 20 vrf outlog-adjacency-changescapability vrf-literedistribute bgp 100 subnets network 172.16.1.4 0.0.0.3 area 0!router ospf 1router-id 6.6.6.6log-adjacency-changesnetwork 6.6.6.6 0.0.0.0 area 0 network 10.1.1.0 0.0.0.255 area 0!router bgp 100no synchronizationbgp router-id 6.6.6.6bgp log-neighbor-changesneighbor 3.3.3.3 remote-as 100neighbor 3.3.3.3 update-source Loopback0neighbor 3.3.3.3 next-hop-selfneighbor 4.4.4.4 remote-as 100neighbor 4.4.4.4 update-source Loopback0neighbor 4.4.4.4 next-hop-selfno auto-summary!address-family vpnv4neighbor 3.3.3.3 activateneighbor 3.3.3.3 send-community bothneighbor 4.4.4.4 activateneighbor 4.4.4.4 send-community bothexit-address-family!address-family ipv4 vrf outredistribute ospf 20 vrf out match internal external 1 external 2 nssa-external 1 nssa-external 2 no synchronizationexit-address-family!address-family ipv4 vrf inredistribute ospf 10 vrf in match internal external 1 external 2 nssa-external 1 nssa-external 2 no synchronizationexit-address-family!endR7#show running-configinterface FastEthernet0/0no ip addressduplex autospeed auto!interface FastEthernet0/0.10encapsulation dot1Q 10ip address 172.16.1.1 255.255.255.252!interface FastEthernet0/0.20encapsulation dot1Q 20ip address 172.16.1.5 255.255.255.252!interface FastEthernet0/1no ip addressshutdownduplex autospeed auto!!router ospf 10log-adjacency-changesnetwork 172.16.1.0 0.0.0.3 area 0!router ospf 20log-adjacency-changesredistribute ospf 10 subnetsnetwork 172.16.1.4 0.0.0.3 area 0!R1#show ip routeCodes: C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static routeGateway of last resort is not set1.0.0.0/32 is subnetted, 1 subnetsC 1.1.1.1 is directly connected, Loopback02.0.0.0/32 is subnetted, 1 subnetsO E2 2.2.2.2 [110/2] via 10.1.1.2, 00:04:34, FastEthernet0/0 172.16.0.0/30 is subnetted, 2 subnetsO E2 172.16.1.4 [110/1] via 10.1.1.2, 00:04:34, FastEthernet0/0O E2 172.16.1.0 [110/1] via 10.1.1.2, 00:04:34, FastEthernet0/010.0.0.0/30 is subnetted, 2 subnetsC 10.1.1.0 is directly connected, FastEthernet0/0O E2 10.1.1.4 [110/1] via 10.1.1.2, 00:04:34, FastEthernet0/0C 192.168.1.0/24 is directly connected, FastEthernet0/1O E2 192.168.2.0/24 [110/2] via 10.1.1.2, 00:04:34, FastEthernet0/0R2#show ip routeCodes: C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static routeGateway of last resort is not set1.0.0.0/32 is subnetted, 1 subnetsO E2 1.1.1.1 [110/2] via 10.1.1.6, 00:11:12, FastEthernet0/02.0.0.0/32 is subnetted, 1 subnetsC 2.2.2.2 is directly connected, Loopback0172.16.0.0/30 is subnetted, 2 subnetsO IA 172.16.1.4 [110/2] via 10.1.1.6, 00:11:12, FastEthernet0/0O E2 172.16.1.0 [110/1] via 10.1.1.6, 00:11:12, FastEthernet0/010.0.0.0/30 is subnetted, 2 subnetsO E2 10.1.1.0 [110/1] via 10.1.1.6, 00:11:12, FastEthernet0/0C 10.1.1.4 is directly connected, FastEthernet0/0O E2 192.168.1.0/24 [110/2] via 10.1.1.6, 00:05:16, FastEthernet0/0C 192.168.2.0/24 is directly connected, FastEthernet0/1R7# show ip routeCodes: C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static routeGateway of last resort is not set1.0.0.0/32 is subnetted, 1 subnetsO E2 1.1.1.1 [110/2] via 172.16.1.2, 00:20:26, FastEthernet0/0.102.0.0.0/32 is subnetted, 1 subnetsO E2 2.2.2.2 [110/2] via 172.16.1.2, 00:20:26, FastEthernet0/0.10 172.16.0.0/30 is subnetted, 2 subnetsC 172.16.1.4 is directly connected, FastEthernet0/0.20C 172.16.1.0 is directly connected, FastEthernet0/0.1010.0.0.0/30 is subnetted, 2 subnetsO E2 10.1.1.0 [110/1] via 172.16.1.2, 00:20:26, FastEthernet0/0.10O E2 10.1.1.4 [110/1] via 172.16.1.2, 00:20:27, FastEthernet0/0.10O E2 192.168.1.0/24 [110/2] via 172.16.1.2, 00:10:56, FastEthernet0/0.10 O E2 192.168.2.0/24 [110/2] via 172.16.1.2, 00:16:27, FastEthernet0/0.10R2# traceroute 192.168.1.1Type escape sequence to abort.Tracing the route to 192.168.1.11 10.1.1.6 172 msec 156 msec 108 msec2 10.1.1.18 [MPLS: Labels 18/29 Exp 0] 420 msec 320 msec 284 msec3 172.16.1.6 [MPLS: Label 29 Exp 0] 428 msec 364 msec 308 msec4 172.16.1.5 332 msec 324 msec 308 msec5 172.16.1.2 208 msec 388 msec 388 msec6 10.1.1.21 [MPLS: Labels 16/23 Exp 0] 540 msec 564 msec 524 msec7 10.1.1.2 [MPLS: Label 23 Exp 0] 636 msec 772 msec 1016 msec8 10.1.1.1 892 msec 700 msec 756 msecR1# traceroute 192.168.2.1Type escape sequence to abort.Tracing the route to 192.168.2.11 10.1.1.2 888 msec 84 msec 96 msec2 10.1.1.14 [MPLS: Labels 18/28 Exp 0] 288 msec 284 msec 216 msec3 172.16.1.6 [MPLS: Label 28 Exp 0] 240 msec 280 msec 368 msec4 172.16.1.5 472 msec 332 msec 320 msec5 172.16.1.2 308 msec 1772 msec 744 msec6 10.1.1.21 [MPLS: Labels 17/23 Exp 0] 440 msec 508 msec 592 msec7 10.1.1.6 [MPLS: Label 23 Exp 0] 548 msec 1080 msec 552 msec8 10.1.1.5 408 msec 788 msec 744 msec。