MPLS排错练习题分享
大家好!
我是達(dá)叔。
本次練習(xí)分享拓?fù)淙缦?#xff0c;大家可自行搭建仿真環(huán)境進(jìn)行研究探討。
歡迎大家評(píng)論進(jìn)行探討交流。
??? 大家自行按照拓?fù)浒雅渲盟⑦M(jìn)去哦 (設(shè)備的預(yù)配置將附在結(jié)尾部分)
??? 現(xiàn)由于前面負(fù)責(zé)實(shí)施的工程師離職,留下?tīng)€尾工程,請(qǐng)按下面截圖找出目前配置存在的錯(cuò)誤并修復(fù),要求項(xiàng)目部署完畢之后所有檢查命令輸出要和下面截圖一致。
要求R7和R8兩個(gè)站點(diǎn)通信必須經(jīng)過(guò)R6的全局處理、要求R6的vrf A 和R7、R8能夠直接通信
同時(shí)要求交一份排除故障的文檔,用于對(duì)客戶進(jìn)行技術(shù)支撐。
要求在文檔中指出配置錯(cuò)誤的地方,以及產(chǎn)生的影響,解決的方案。
不能使用任何靜態(tài)路由、不允許修改R4、R5的VRF配置、不允許修改R6的BGP配置
謝謝大家!
我是乾頤堂CCIE導(dǎo)師,CCIE培訓(xùn)金牌講師達(dá)叔。
本博客由乾頤堂達(dá)叔獨(dú)家冠名寫出,素材來(lái)自乾頤堂日常工作及達(dá)叔和他身邊的CCIE們的故事。
下面附上排錯(cuò)環(huán)境中的設(shè)備配置:
hostname R1
!
ip vrf HUB
? rd 200:100
!
ip vrf SPOKE
? rd 100:200
!
!
ip cef
no ipv6 cef
!
multilink bundle-name authenticated
mpls label range 100 199
!
!
interface Loopback0
? ip address 10.1.1.1 255.255.255.255
? ip ospf 110 area 0
!
interface Ethernet0/0
? ip address 13.1.1.1 255.255.255.0
? ip ospf network point-to-point
? ip ospf demand-circuit
? ip ospf 110 area 0
? mpls ip
!
interface Ethernet0/1
? no ip address
!
interface Ethernet0/1.1
? encapsulation dot1Q 1 native
? ip vrf forwarding HUB
? ip address 16.1.1.1 255.255.255.0
!
interface Ethernet0/1.2
? encapsulation dot1Q 2
? ip vrf forwarding SPOKE
? ip address 16.1.2.1 255.255.255.0
!
interface Ethernet0/1.3
? encapsulation dot1Q 3
? ip address 16.1.3.1 255.255.255.0
!
!
router ospf 110
? prefix-suppression
!
router bgp 100
? bgp log-neighbor-changes
? no bgp default ipv4-unicast
? neighbor 10.1.1.3 remote-as 100
? neighbor 10.1.1.3 update-source Loopback0
? neighbor 16.1.3.6 remote-as 200
? !
? address-family ipv4
?? network 16.1.3.0 mask 255.255.255.0
?? neighbor 10.1.1.3 activate
?? neighbor 16.1.3.6 activate
?? neighbor 16.1.3.6 prefix-list 1 in
? exit-address-family
? !
? address-family ***v4
?? neighbor 10.1.1.3 activate
?? neighbor 10.1.1.3 send-community extended
? exit-address-family
? !
? address-family ipv4 vrf HUB
?? neighbor 16.1.1.6 remote-as 200
?? neighbor 16.1.1.6 activate
? exit-address-family
? !
? address-family ipv4 vrf SPOKE
?? neighbor 16.1.2.6 remote-as 200
?? neighbor 16.1.2.6 activate
? exit-address-family
!
!
ip prefix-list 1 seq 5 deny 10.0.0.0/8 le 32
ip prefix-list 1 seq 10 deny 172.16.0.0/12 le 32
ip prefix-list 1 seq 15 deny 192.168.0.0/16 le 32
ip prefix-list 1 seq 20 deny 0.0.0.0/0
ip prefix-list 1 seq 25 permit 0.0.0.0/0 le 32
hostname R2
!
ip vrf A
? rd 100:200
!
!
ip cef
no ipv6 cef
!
multilink bundle-name authenticated
mpls label range 200 299
!
!
username R6 password 0 cisco
!
!????????
interface Loopback0
? ip address 10.1.1.2 255.255.255.0
? ip ospf 110 area 0
!
interface Loopback1
? ip address 10.22.22.22 255.255.255.255
!
!
interface Ethernet0/1
? ip address 23.1.1.2 255.255.255.0
? ip ospf network point-to-point
? ip ospf demand-circuit
? ip ospf 110 area 0
? mpls ip
!
interface Serial1/1
? ip vrf forwarding A
? ip address 26.1.1.2 255.255.255.0
? encapsulation ppp
? ip ospf 1 area 0
? ppp authentication chap
? serial restart-delay 0
!
!
router ospf 1 vrf A
? redistribute bgp 100 subnets
!
router ospf 110
? prefix-suppression
!
router bgp 100
? bgp log-neighbor-changes
? no bgp default ipv4-unicast
? neighbor 10.1.1.3 remote-as 100
? neighbor 10.1.1.3 update-source Loopback0
? neighbor 26.1.1.6 remote-as 200
? !
? address-family ipv4
?? network 26.1.1.0 mask 255.255.255.0
?? neighbor 10.1.1.3 activate
?? neighbor 26.1.1.6 activate
?? neighbor 26.1.1.6 prefix-list 1 in
? exit-address-family
? !???????
? address-family ***v4
?? neighbor 10.1.1.3 activate
?? neighbor 10.1.1.3 send-community extended
? exit-address-family
? !
? address-family ipv4 vrf A
?? redistribute ospf 1
? exit-address-family
!
!
!
ip prefix-list 1 seq 5 deny 10.0.0.0/8 le 32
ip prefix-list 1 seq 10 deny 172.16.0.0/12 le 32
ip prefix-list 1 seq 15 deny 192.168.0.0/16 le 32
ip prefix-list 1 seq 20 deny 0.0.0.0/0
ip prefix-list 1 seq 25 permit 0.0.0.0/0 le 32
!
!????????
mpls ldp router-id Loopback1 force
hostname R3
!
!
!
no ip cef
no ipv6 cef
!
multilink bundle-name authenticated
mpls label range 300 399
!
!
!
interface Loopback0
? ip address 10.1.1.3 255.255.255.255
? ip ospf 110 area 0
!????????
interface Loopback1
? ip address 6.6.6.6 255.255.255.255
!
interface Ethernet0/0
? ip address 13.1.1.3 255.255.255.0
? ip ospf network point-to-point
? ip ospf demand-circuit
? ip ospf 110 area 0
? mpls ip
!
interface Ethernet0/1
? ip address 23.1.1.3 255.255.255.0
? ip ospf network point-to-point
? ip ospf demand-circuit
? ip ospf 110 area 0
? mpls ip
!
interface Ethernet0/2
? ip address 34.1.1.3 255.255.255.0
? ip ospf network point-to-point
? ip ospf demand-circuit
? ip ospf 110 area 0
? mpls ip?
!
interface Ethernet0/3
? ip address 35.1.1.3 255.255.255.0
? ip ospf network point-to-point
? ip ospf demand-circuit
? ip ospf 110 area 0
? mpls ip
!
!
router ospf 110
? prefix-suppression
!
router bgp 100
? bgp log-neighbor-changes
? no bgp default ipv4-unicast
? neighbor iBGP peer-group
? neighbor iBGP remote-as 100
? neighbor iBGP update-source Loopback0
? neighbor 10.1.1.1 peer-group iBGP
? neighbor 10.1.1.2 remote-as 100
? neighbor 10.1.1.2 peer-group iBGP
? neighbor 10.1.1.4 peer-group iBGP
? neighbor 10.1.1.5 peer-group iBGP
? !
? address-family ipv4
?? network 6.6.6.6 mask 255.255.255.255
?? neighbor 10.1.1.1 activate
?? neighbor 10.1.1.2 activate
? exit-address-family
? !
? address-family ***v4
?? neighbor iBGP send-community extended
?? neighbor iBGP route-reflector-client
?? neighbor 10.1.1.1 activate
?? neighbor 10.1.1.2 activate
?? neighbor 10.1.1.4 activate
?? neighbor 10.1.1.5 activate
? exit-address-family
!
?
hostname R4
!
!
vrf definition A
? rd 100:200
? !
? address-family ipv4
?? route-target export 47:47
?? route-target import 16:16
?? route-target import 26:26
?? route-target import 58:58
? exit-address-family
!
!
!
ip cef???
no ipv6 cef
!
multilink bundle-name authenticated
mpls label range 400 499
!
!
!
!
interface Loopback0
? ip address 10.1.1.4 255.255.255.255
? ip ospf 110 area 0
!
interface Ethernet0/0
? vrf forwarding A
? ip address 47.1.1.4 255.255.255.0
!
!
interface Ethernet0/2
? ip address 34.1.1.4 255.255.255.0
? ip ospf network point-to-point
? ip ospf demand-circuit
? ip ospf 110 area 0
!
router ospf 110
? prefix-suppression
!
router bgp 100
? bgp log-neighbor-changes
? no bgp default ipv4-unicast
? neighbor 10.1.1.3 remote-as 100
? neighbor 10.1.1.3 update-source Loopback0
? !
? address-family ipv4
? exit-address-family
? !
? address-family ***v4
?? neighbor 10.1.1.3 activate
?? neighbor 10.1.1.3 send-community extended
? exit-address-family
? !
? address-family ipv4 vrf A
?? neighbor 47.1.1.7 remote-as 200
?? neighbor 47.1.1.7 activate
? exit-address-family
!
!
ip extcommunity-list 1 permit soo 78:78
ip extcommunity-list 2 permit soo 78:78
ip extcommunity-list standard q permit soo 78:78
!
no ip http server
no ip http secure-server
!
!
ip prefix-list 1 seq 5 permit 1.1.1.1/32
!
?
hostname R5
!
!
ip vrf A
? rd 100:200
? route-target export 58:58
? route-target import 16:16
? route-target import 26:26
? route-target import 47:47
!
!
!
!
ip cef
no ipv6 cef
!
multilink bundle-name authenticated
mpls label range 500 599
mpls label protocol tdp
!
!
!
interface Loopback0
? ip address 10.1.1.5 255.255.255.255
? ip ospf 110 area 0
!
interface Ethernet0/0
? ip vrf forwarding A
? ip address 58.1.1.5 255.255.255.0
!
!
interface Ethernet0/3
? ip address 35.1.1.5 255.255.255.0
? ip ospf network point-to-point
? ip ospf demand-circuit
? ip ospf 110 area 0
? mpls propagate-cos
? mpls ip
!
!
!
router ospf 110
? prefix-suppression
!
router bgp 100
? bgp log-neighbor-changes
? no bgp default ipv4-unicast
? neighbor 10.1.1.3 remote-as 100
? neighbor 10.1.1.3 update-source Loopback0
? !
? address-family ipv4
? exit-address-family
? !
? address-family ***v4
?? neighbor 10.1.1.3 activate
?? neighbor 10.1.1.3 send-community extended
? exit-address-family
? !
? address-family ipv4 vrf A
?? neighbor 58.1.1.8 remote-as 200
?? neighbor 58.1.1.8 activate
? exit-address-family
!
hostname R6
!
!
ip vrf A
? rd 100:200
!
!
!
ip cef
no ipv6 cef
ipv6 multicast rpf use-bgp
!
multilink bundle-name authenticated
!
!
!????????
!
username R2 password 0 cisc0
!
!
!
!
interface Loopback0
? ip address 10.6.6.6 255.255.255.255
? ip nat inside
? ip virtual-reassembly in
!
interface Loopback1
? ip vrf forwarding A
? ip address 10.66.66.66 255.255.255.255
? ip ospf 1 area 0
!
!
interface Ethernet0/1.1
? encapsulation dot1Q 1 native
? ip address 16.1.1.6 255.255.255.0
!
interface Ethernet0/1.2
? encapsulation dot1Q 2
? ip address 16.1.2.6 255.255.255.0
? ip nat inside
? ip virtual-reassembly in
!
interface Ethernet0/1.3
? encapsulation dot1Q 3
? ip address 16.1.3.6 255.255.255.0
? ip nat outside
? ip virtual-reassembly in
!
!
!
interface Serial1/1
? ip vrf forwarding A
? ip address 26.1.1.6 255.255.255.0
? encapsulation ppp
? ip ospf 1 area 0
? ppp chap hostname R6
? ppp chap password 0 cisco
? serial restart-delay 0
!
!????????
router ospf 1 vrf A
!
router bgp 200
? bgp log-neighbor-changes
? network 10.6.6.6 mask 255.255.255.255
? neighbor 16.1.1.1 remote-as 100
? neighbor 16.1.2.1 remote-as 100
? neighbor 16.1.2.1 default-originate
? neighbor 16.1.3.1 remote-as 100
!
!
!
ip nat inside source list NAT interface Ethernet0/1.3 overload
!
ip access-list standard NAT
? permit 10.0.0.0 0.255.255.255
!
hostname R7
!
!
!
ip cef
no ipv6 cef
!
!
!
interface Loopback0
? ip address 10.7.7.7 255.255.255.255
!
interface Ethernet0/0
? ip address 47.1.1.7 255.255.255.0
!
interface Ethernet0/1
? ip address 78.1.1.7 255.255.255.0
!
!
!
!
router eigrp 90
? network 47.1.1.7 0.0.0.0
? network 77.0.0.0
!
router bgp 200
? bgp log-neighbor-changes
? network 10.7.7.7 mask 255.255.255.255
? network 77.1.1.1 mask 255.255.255.255
? neighbor 47.1.1.4 remote-as 100
!
hostname R8
!
!
!
interface Loopback0
? ip address 10.8.8.8 255.255.255.255
!
interface Ethernet0/0
? ip address 58.1.1.8 255.255.255.0
!
interface Ethernet0/1
? ip address 78.1.1.8 255.255.255.0
!
!
!
router bgp 200
? bgp log-neighbor-changes
? network 10.8.8.8 mask 255.255.255.255
? network 88.1.1.1 mask 255.255.255.255
? neighbor 58.1.1.5 remote-as 100
!
轉(zhuǎn)載于:https://blog.51cto.com/dashu666/2163481
總結(jié)
以上是生活随笔為你收集整理的MPLS排错练习题分享的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 反射——Reflection
- 下一篇: 许晓斌_Maven实战(一)——坐标规划