使用ENSP做MPLS伪线测试

最近一个公司一个项目在运营商进行伪线功能测试,由于是菜鸟所以都是在旁边看别人配置,公司也没多余的设备供来实验,自己就网上找了些资料实现了这个功能。
现场是2个A设备对接2台B设备的环境,我做的实验是直接拿了4台Router来做,现场环境都是通过子接口连接要doltq,我直接通过端口连接就不需要了。
路由方式是OSPF的点对点,然后添加BFD检测,不设置点对点切换很慢,
在这里插入图片描述

R3配置
sysname r3

bfd

mpls lsr-id 3.3.3.3
mpls

mpls l2vpn

mpls ldp

mpls ldp remote-peer 4.4.4.4

mpls ldp remote-peer 5.5.5.5

interface Ethernet0/0/0
mpls l2vc 4.4.4.4 100 control-word
mpls l2vpn pw bfd
mpls l2vc 5.5.5.5 200 control-word secondary
mpls l2vpn pw bfd secondary
mpls l2vpn stream-dual-receiving

interface GigabitEthernet0/0/0
ip address 192.168.1.1 255.255.255.252
ospf cost 100
ospf network-type p2p
ospf bfd enable
mpls
mpls ldp

interface GigabitEthernet0/0/1
ip address 192.168.2.1 255.255.255.252
ospf cost 100
ospf network-type p2p
ospf bfd enable
mpls
mpls ldp

interface LoopBack0
ip address 3.3.3.3 255.255.255.255

ospf 1 router-id 3.3.3.3
area 0.0.0.0
network 3.3.3.3 0.0.0.0
network 192.168.1.0 0.0.0.3
network 192.168.2.0 0.0.0.3

R4配置
sysname r4

bfd

mpls lsr-id 4.4.4.4
mpls

mpls l2vpn

mpls switch-l2vc 6.6.6.6 100 between 3.3.3.3 100 encapsulation ethernet control-
word-transparent
mpls switch-l2vc 6.6.6.6 200 between 3.3.3.3 200 encapsulation ethernet cont
rol-word-transparent

mpls ldp

mpls ldp remote-peer 3.3.3.3

mpls ldp remote-peer 6.6.6.6

interface GigabitEthernet0/0/0
ip address 192.168.1.2 255.255.255.252
ospf cost 100
ospf network-type p2p
ospf bfd enable
mpls
mpls ldp

interface GigabitEthernet0/0/1
ip address 192.168.3.1 255.255.255.252
ospf cost 100
ospf network-type p2p
ospf bfd enable
mpls
mpls ldp

interface LoopBack0
ip address 4.4.4.4 255.255.255.255

ospf 1 router-id 4.4.4.4
area 0.0.0.0
network 4.4.4.4 0.0.0.0
network 192.168.1.0 0.0.0.3
network 192.168.3.0 0.0.0.3

R5配置

sysname r5

bfd

mpls lsr-id 5.5.5.5
mpls

mpls l2vpn

mpls switch-l2vc 6.6.6.6 100 between 3.3.3.3 100 encapsulation ethernet control-
word-transparent
mpls switch-l2vc 6.6.6.6 200 between 3.3.3.3 200 encapsulation ethernet control-
word-transparent

mpls ldp

mpls ldp remote-peer 3.3.3.3

mpls ldp remote-peer 6.6.6.6

interface GigabitEthernet0/0/0
ip address 192.168.2.2 255.255.255.252
ospf cost 100
ospf network-type p2p
ospf bfd enable
mpls
mpls ldp

interface GigabitEthernet0/0/1
ip address 192.168.4.1 255.255.255.252
ospf cost 100
ospf network-type p2p
ospf bfd enable
mpls
mpls ldp

interface LoopBack0
ip address 5.5.5.5 255.255.255.255

ospf 1 router-id 5.5.5.5
area 0.0.0.0
network 5.5.5.5 0.0.0.0
network 192.168.2.0 0.0.0.3
network 192.168.4.0 0.0.0.3

R6配置

sysname r6

bfd

mpls lsr-id 6.6.6.6
mpls

mpls l2vpn

mpls ldp

mpls ldp remote-peer 4.4.4.4

mpls ldp remote-peer 5.5.5.5

interface Ethernet0/0/0
mpls l2vc 4.4.4.4 100 control-word
mpls l2vpn pw bfd
mpls l2vc 5.5.5.5 200 control-word secondary
mpls l2vpn pw bfd secondary
mpls l2vpn stream-dual-receiving

interface GigabitEthernet0/0/0
ip address 192.168.3.2 255.255.255.252
ospf network-type p2p
ospf bfd enable
mpls
mpls ldp

interface GigabitEthernet0/0/1
ip address 192.168.4.2 255.255.255.252
ospf cost 100
ospf network-type p2p
ospf bfd enable
mpls
mpls ldp

interface LoopBack0
ip address 6.6.6.6 255.255.255.255

ospf 1 router-id 6.6.6.6
area 0.0.0.0
network 6.6.6.6 0.0.0.0
network 192.168.3.0 0.0.0.3
network 192.168.4.0 0.0.0.3

实现两台电脑PING通
在这里插入图片描述
OSPF状态
在这里插入图片描述
BFD状态
在这里插入图片描述
VC状态
在这里插入图片描述
在这里插入图片描述
也不知道是不是做的准确的,只知道是通过,通过shutdown端口也可以实现链路的快速切换。

  • 0
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值