MPLS學習筆記實驗

LS

內網先運行igp

R1:
router ospf 110
router-id 1.1.1.1 
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
r2
router ospf 110
router-id 2.2.2.2 
network 2.2.2.2 0.0.0.0 area 0
network 12.1.1.2 0.0.0.0 area 0
netw
r3:
router ospf 110
router-id 3.3.3.3
network 13.1.1.3 0.0.0.0 area 0
network 3.3.3.3 0.0.0.0  area 0

啓用mpls

r1
ip cef 
mpls label protocol ldp // 思科需要敲  數據層面:啓用mpls的轉發機制,在發數據的時候嘗試打標。 ldp/tdp的宣告 新設備默認ldp
mpls ldp router-id loopback 0 force  // force 無論當前是否建立ldp鄰居 都拿loopback0 來做傳輸地址
mpls ip 

int  e0/0
mpls ip 
r2 
ip cef 
mpls ip 
mpls label protocol ldp
mpls ldp router-id loopback 0 force 

int e0/1 
mpls ip 
r3 
ip cef
mpls ip
mpls label protocol ldp 
mpls ldp  router-id loopback 0 force 
int e0/0
mpls ip 

查看命令

show mpls ldp neighbor 
show mpls ldp bindings 查看FIB
show mpls forwarding-table

建立bgp

r4:
router bgp  4  //as號 
no auto-summary 
no synchronization
bgp router-id 4.4.4.4 
neighbor 24.1.1.2 remote-as 10  //默認自動建立ipv4的鄰居關係。
network 8.8.8.0 mask 255.255.255.0
r2
router bgp 10
no auto-summary 
no synchronization
bgp router-id 2.2.2.2 
neighbor 24.1.1.4 remote-as 4
neighbor 3.3.3.3 remote-as 10
neighbor 3.3.3.3 updatesource loopback 0
neighbor 3.3.3.3 next-hop-self 
r3
router bgp 10
no auto-summary 
no synchronization
bgp router-id 3.3.3.3
neighbor 35.1.1.5 remote-as 5
neighbor 2.2.2.2 update-source 3.3.3.3 
neighbor 2.2.2.2 remote-as 10
neighbor 2.2.2.2 next-hop-self 
r5 
router bgp 5
no auto-summary 
no synchronization
bgp router-id 5.5.5.5
neighbor 35.1.1.3 remote-as  10
network 9.9.9.0 mask 255.255.255.0
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章