玩转华为ENSP模拟器系列 | 配置单段动态VPWS示例 - 使用LSP隧道

素材来源:华为路由器配置指南

一边学习一边整理试验笔记,并与大家分享,侵权即删,谢谢支持!

附上汇总贴:玩转华为ENSP模拟器系列 | 合集_COCOgsta的博客-CSDN博客_ensp实验大全


目标

单段动态VPWS的公网隧道可以是LSP隧道。

组网需求

  • 如图1,CE1、CE2分别接入PE1和PE2。PE1和PE2用MPLS骨干网连接。
  • 要求使用LSP隧道,在PE1和PE2之间建立单段动态VPWS连接。

配置思路

  • 在骨干网上运行IGP路由协议,使骨干网各设备能互通。
  • 在骨干网上配置MPLS基本能力,建立LSP隧道。且PW两端的PE之间要建立MPLS LDP远端对等体关系。
  • 在PE上创建VPWS连接。

操作步骤

  1. 配置CE上接入PE的接口的IP地址

配置CE1。

CE1:
interface Ethernet1/0/0.1
 vlan-type dot1q 1
 ip address 10.10.1.1 255.255.255.0

配置CE2。

CE2:
interface Ethernet1/0/0.1
 vlan-type dot1q 2
 ip address 10.10.1.2 255.255.255.0
  1. 配置MPLS骨干网的IGP

在MPLS骨干网上配置IGP,本示例中使用OSPF。有关OSPF的配置,请参见《NE40E 配置指南 IP路由》中的“OSPF配置”。

具体配置过程略。

  1. 使能MPLS,建立隧道和LDP远端会话

在MPLS骨干网上使能MPLS,并在PE之间建立LSP隧道和LDP remote session。

具体配置过程略。有关MPLS的配置,请参见《NE40E 配置指南 MPLS》。

完成此步配置后,执行命令display mpls ldp session可以看到PE之间、PE与P之间建立了LDP Session,且状态为Operational。

以PE1的显示为例。

[~PE1-mpls-ldp-remote-192.168.3.3]dis mpls ldp session 
 LDP Session(s) in Public Network
 Codes: LAM(Label Advertisement Mode), SsnAge Unit(DDDD:HH:MM)
 An asterisk (*) before a session means the session is being deleted.
 --------------------------------------------------------------------------
 PeerID             Status      LAM  SsnRole  SsnAge       KASent/Rcv
 --------------------------------------------------------------------------
 192.168.3.3:0      Operational DU   Passive  0000:00:00   1/1
 192.168.4.4:0      Operational DU   Passive  0000:00:03   15/15
 --------------------------------------------------------------------------
 TOTAL: 2 Session(s) Found.
[~PE1-mpls-ldp-remote-192.168.3.3]
  1. 创建VPWS连接

在PE1、PE2上使能MPLS L2VPN,在两个PE上创建VPWS连接。

配置PE1。

PE1:
mpls l2vpn
interface Ethernet1/0/0.1
 vlan-type dot1q 1
 mpls l2vc 192.168.3.3 100

配置PE2。

PE2:
mpls l2vpn
interface Ethernet1/0/1.1
 vlan-type dot1q 2
 mpls l2vc 192.168.2.2 100
  1. 验证配置结果

在PE上查看VPWS连接信息,可以看到建立了一条VC,状态为UP。

[~PE1-Ethernet1/0/0.1]dis mpls l2vc interface ethe 1/0/0.1
 *client interface       : Ethernet1/0/0.1 is up
  Administrator PW       : no 
  session state          : up
  AC status              : up
  Ignore AC state        : disable
  VC state               : up
  Label state            : 0
  Token state            : 0
  VC ID                  : 100
  VC type                : VLAN
  destination            : 192.168.3.3
  local group ID         : 0            remote group ID      : 0
  local VC label         : 48123        remote VC label      : 48122
  local AC OAM State     : up
  local PSN OAM State    : up
  local forwarding state : forwarding
  local status code      : 0x0 (forwarding)
  remote AC OAM state    : up
  remote PSN OAM state   : up
  remote forwarding state: forwarding
  remote status code     : 0x0 (forwarding)
  ignore standby state   : no
  BFD for PW             : unavailable
  VCCV State             : up
  manual fault           : not set
  active state           : active
  forwarding entry       : exist
  OAM Protocol           : --
  OAM Status             : --
  OAM Fault Type         : --
  PW APS ID              : --
  PW APS Status          : --
  TTL Value              : 1
  link state             : up
  local VC MTU           : 1500         remote VC MTU        : 1500
  local VCCV             : alert ttl lsp-ping bfd 
  remote VCCV            : alert ttl lsp-ping bfd 
  local control word     : disable      remote control word  : disable
  tunnel policy name     : --
  PW template name       : --
  primary or secondary   : primary
  load balance type      : flow
  Access-port            : false
  Switchover Flag        : false
  VC tunnel info         : 1 tunnels
    NO.0  TNL type       : ldp            , TNL ID : 0x0000000001004c4b43
  create time            : 0 days, 0 hours, 7 minutes, 20 seconds
  up time                : 0 days, 0 hours, 7 minutes, 20 seconds
  last change time       : 0 days, 0 hours, 7 minutes, 20 seconds
  VC last up time        : 2019/12/26 09:10:28
  VC total up time       : 0 days, 0 hours, 7 minutes, 20 seconds
  CKey                   : 65
  NKey                   : 16777378
  PW redundancy mode     : frr
  AdminPw interface      : --
  AdminPw link state     : --
  Forward state          : send active, receive active
  Diffserv Mode          : uniform
  Service Class          : --
  Color                  : --
  DomainId               : --
  Domain Name            : --  
[~PE1-Ethernet1/0/0.1]

CE1和CE2应能相互Ping通。

以CE1的显示为例:

[~CE1-Ethernet1/0/0.1]ping 10.10.1.2 
  PING 10.10.1.2: 56  data bytes, press CTRL_C to break
    Reply from 10.10.1.2: bytes=56 Sequence=1 ttl=255 time=25 ms
    Reply from 10.10.1.2: bytes=56 Sequence=2 ttl=255 time=15 ms
    Reply from 10.10.1.2: bytes=56 Sequence=3 ttl=255 time=17 ms
    Reply from 10.10.1.2: bytes=56 Sequence=4 ttl=255 time=17 ms
    Reply from 10.10.1.2: bytes=56 Sequence=5 ttl=255 time=14 ms
  --- 10.10.1.2 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 14/17/25 ms
 
[~CE1-Ethernet1/0/0.1]

 

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值