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测试的时候 “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
免责声明:本站发布的内容(图片、视频和文字)以原创、来自本网站内容采集于网络互联网转载等其它媒体和分享为主,内容观点不代表本网站立场,如侵犯了原作者的版权,请告知一经查实,将立刻删除涉嫌侵权内容,联系我们QQ:712375056,同时欢迎投稿传递力量。
Copyright © 2009-2022 56dr.com. All Rights Reserved. 特网科技 特网云 版权所有 特网科技 粤ICP备16109289号
域名注册服务机构:阿里云计算有限公司(万网) 域名服务机构:烟台帝思普网络科技有限公司(DNSPod) CDN服务:阿里云计算有限公司 百度云 中国互联网举报中心 增值电信业务经营许可证B2
建议您使用Chrome、Firefox、Edge、IE10及以上版本和360等主流浏览器浏览本网站