no auto-summary
exit
neighbor 192.168.4.1 activate
no shu
exit
route-target import 200:1
ip ospf cost 20
ip add 192.168.5.2 255.255.255.0
ip ospf cost 100
redistribute static
no ip domain-lookup
redistribute connected
ip ospf cost 20
no ip domain-lookup
int s1/2
router ospf 100
no shu
---------
ip vrf forwarding ***a
service timestamps log uptime
tag-switching mtu 1500
int e2/0
int s1/1
router bgp 100
service timestamps debug uptime
no shu
ip add 192.168.2.1 255.255.255.0
-------
ip ospf name-lookup
address-family ipv4 vrf ***a
int e2/0
no ip domain-lookup
service timestamps log uptime
no shu
ip http server
exit-address-family
bgp log-neighbor-changes
tag-switching ip
redistribute static
ip classless
conf t
en
ip add 192.168.5.1 255.255.255.0
log-adjacency-changes
exit
no shu
int s1/2
PE2
tag-switching mtu 1500
neighbor 192.168.4.2 version 4
no auto-summary
service timestamps debug uptime
int s1/0
en
tag-switching mtu 1500
exit-address-family
ip add 192.168.1.1 255.255.255.0
int s1/1
no bgp default ipv4-unicast
router ospf 100
rd 1:100
neighbor 192.168.4.2 remote-as 100
hostname CE2
en
ip subnet-zero
ip classless
int s1/0
redistribute connected
CE2
ip classless
en
router bgp 100
int s1/1
ip vrf ***a
route-target export 200:1
conf t
-------------
no parser cache
no ip domain-lookup
neighbor 192.168.4.1 remote-as 100
en
address-family ipv4 vrf ***a
log-adjacency-changes
redistribute static
conf t
查看配置:show mpls ldp neighbor查看鄰居
no bgp default ipv4-unicast
redistribute connected
ip ospf cost 20
CE1
conf t
service timestamps debug uptime
redistribute connected
tag-switching ip
rd 1:100
int s1/0
no shu
ip route 0.0.0.0 0.0.0.0 192.168.6.1
hostname PE2
bgp log-neighbor-changes
ip add 192.168.6.1 255.255.255.0
ip add 192.168.7.1 255.255.255.0
exit
redistribute static
ip classless
no synchronization
ip add 192.168.4.2 255.255.255.0
exit
tap-switching mtu 1500
ip cef
ip vrf ***a
net 192.168.3.2 0.0.0.0 area 0
no shu
net 192.168.4.0 0.0.0.255 area 0
route-target export 200:1
ip add 192.168.3.1 255.255.255.0
router ospf 100
no shu
ip pim bidir-enable
ip add 192.168.3.2 255.255.255.0
ip subnet-zero
no shu
exit
no synchronization
tag-switching mtu 1500
tap-switching ip
redistribute static
-----------
ip subnet-zero
ip ospf cost 100
no shu
ip cef
no shu
ip subnet-zero
ip subnet-zero
net 192.168.5.1 0.0.0.0 area 0
neighbor 192.168.4.1 version 4
ip route vrf ***a 192.168.1.0 255.255.255.0 192.168.2.1
hostname CE1
ip add 192.168.6.2 255.255.255.0
no ip domain-lookup
tag-switching ip
conf t
exit
ip route 0.0.0.0 0.0.0.0 192.168.2.2
neighbor 192.168.4.2 activate
tag-switching mtu 1500
PE1
hostname P
ip add 192.168.4.1 255.255.255.0
ip add 192.168.2.2 255.255.255.0
ip cef
------------------
hostname PE1
ip classless
int s1/0
P
tag-switching ip
route-target import 200:1
exit
ping測試的時(shí)候 “U U U”表示不可達
ip vrf forwarding ***a
service timestamps log uptime
tap-switching ip
log-adjacency-changes
ip ospf cost 20
no parser cache
net 192.168.5.0 0.0.0.255 area 0
net 192.168.3.0 0.0.0.255 area 0
tap-switching ip
int s1/0
tap-switching ip
no shu
net 192.168.4.0 0.0.0.255 area 0
ip ospf name-lookup
show mpls ldp igp sync all 查看接口
ip route vrf ***a 192.168.7.0 255.255.255.0 192.168.6.2
redistribute connected
免責聲明:本站發(fā)布的內容(圖片、視頻和文字)以原創(chuàng )、來(lái)自本網(wǎng)站內容采集于網(wǎng)絡(luò )互聯(lián)網(wǎng)轉載等其它媒體和分享為主,內容觀(guān)點(diǎn)不代表本網(wǎng)站立場(chǎng),如侵犯了原作者的版權,請告知一經(jīng)查實(shí),將立刻刪除涉嫌侵權內容,聯(lián)系我們QQ:712375056,同時(shí)歡迎投稿傳遞力量。
Copyright ? 2009-2022 56dr.com. All Rights Reserved. 特網(wǎng)科技 特網(wǎng)云 版權所有 特網(wǎng)科技 粵ICP備16109289號
域名注冊服務(wù)機構:阿里云計算有限公司(萬(wàn)網(wǎng)) 域名服務(wù)機構:煙臺帝思普網(wǎng)絡(luò )科技有限公司(DNSPod) CDN服務(wù):阿里云計算有限公司 百度云 中國互聯(lián)網(wǎng)舉報中心 增值電信業(yè)務(wù)經(jīng)營(yíng)許可證B2
建議您使用Chrome、Firefox、Edge、IE10及以上版本和360等主流瀏覽器瀏覽本網(wǎng)站