eNSP配置Martini方式VPLS
作者:互联网
PE、P使用Router, CE使用S5700, 拓扑如下:
PE1主要配置
[PE1]display current-configuration
#
sysname PE1
#
router id 1.1.1.9
#
mpls lsr-id 1.1.1.9
mpls
#
mpls l2vpn
#
vsi v2 static
pwsignal ldp
vsi-id 2
peer 3.3.3.9
#
mpls ldp
#
#
mpls ldp remote-peer 3.3.3.9
remote-ip 3.3.3.9
#
interface GigabitEthernet0/0/0
l2 binding vsi v2
#
interface GigabitEthernet0/0/1
ip address 12.1.1.1 255.255.255.0
mpls
mpls ldp
#
interface LoopBack1
ip address 1.1.1.9 255.255.255.255
#
ospf 1
area 0.0.0.0
network 1.1.1.9 0.0.0.0
network 12.1.1.0 0.0.0.255
#
P主要配置
<P>display current-configuration
#
sysname P
#
router id 2.2.2.9
#
mpls lsr-id 2.2.2.9
mpls
#
mpls ldp
#
interface GigabitEthernet0/0/0
mac-address 5489-987f-8342
ip address 12.1.1.2 255.255.255.0
mpls
mpls ldp
#
interface GigabitEthernet0/0/1
mac-address 5489-987f-8442
ip address 23.1.1.1 255.255.255.0
mpls
mpls ldp
#
interface GigabitEthernet0/0/2
mpls
mpls ldp
#
interface LoopBack1
ip address 2.2.2.9 255.255.255.255
#
ospf 1
area 0.0.0.0
network 2.2.2.9 0.0.0.0
network 12.1.1.0 0.0.0.255
network 23.1.1.0 0.0.0.255
PE2主要配置
<Huawei>display current-configuration
router id 3.3.3.9
#
mpls lsr-id 3.3.3.9
mpls
#
mpls l2vpn
#
vsi v2 static
pwsignal ldp
vsi-id 2
peer 1.1.1.9
#
mpls ldp
#
#
mpls ldp remote-peer 1.1.1.9
remote-ip 1.1.1.9
#
interface GigabitEthernet0/0/0
ip address 23.1.1.2 255.255.255.0
mpls
mpls ldp
#
interface GigabitEthernet0/0/1
l2 binding vsi v2
interface LoopBack1
ip address 3.3.3.9 255.255.255.255
#
ospf 1
area 0.0.0.0
network 3.3.3.9 0.0.0.0
network 23.1.1.0 0.0.0.255
CE1主要配置
interface Vlanif1
ip address 10.1.1.1 255.255.255.0
CE2主要配置
interface Vlanif1
ip address 10.1.1.2 255.255.255.0
CE1上ping CE2
PE1_0/0/0口抓包
PE1_0/0/1口抓包(报文很奇怪,刚学习很多不懂,怀疑是模拟器问题,慢慢研究吧)
PE1上相关dispaly
[PE1]display vsi name v2
Vsi Mem PW Mac Encap Mtu Vsi
Name Disc Type Learn Type Value State
--------------------------------------------------------------------------
v2 static ldp unqualify vlan 1500 up
[PE1]display vsi name v2 verbose
***VSI Name : v2
Administrator VSI : no
Isolate Spoken : disable
VSI Index : 0
PW Signaling : ldp
Member Discovery Style : static
PW MAC Learn Style : unqualify
Encapsulation Type : vlan
MTU : 1500
Diffserv Mode : uniform
Service Class : --
Color : --
DomainId : 255
Domain Name :
Ignore AcState : disable
P2P VSI : disable
Create Time : 0 days, 0 hours, 31 minutes, 3 seconds
VSI State : up
VSI ID : 2
*Peer Router ID : 3.3.3.9
primary or secondary : primary
ignore-standby-state : no
VC Label : 1024
Peer Type : dynamic
Session : up
Tunnel ID : 0x8
Broadcast Tunnel ID : 0x8
Broad BackupTunnel ID : 0x0
CKey : 2
NKey : 1
Stp Enable : 0
PwIndex : 0
Interface Name : GigabitEthernet0/0/0
State : up
Access Port : false
Last Up Time : 2021/08/06 11:08:23
Total Up Time : 0 days, 0 hours, 30 minutes, 58 seconds
**PW Information:
*Peer Ip Address : 3.3.3.9
PW State : up
Local VC Label : 1024
Remote VC Label : 1024
PW Type : label
Tunnel ID : 0x8
Broadcast Tunnel ID : 0x8
Broad BackupTunnel ID : 0x0
Ckey : 0x2
Nkey : 0x1
Main PW Token : 0x8
Slave PW Token : 0x0
Tnl Type : LSP
OutInterface : GigabitEthernet0/0/1
Backup OutInterface :
Stp Enable : 0
PW Last Up Time : 2021/08/06 11:27:46
PW Total Up Time : 0 days, 0 hours, 30 minutes, 2 seconds
[PE1]display vsi remote ldp
Vsi Peer VC Group Encap MTU Vsi State
ID RouterID Label ID Type Value Index Code
2 3.3.3.9 1024 0 vlan 1500 0 FORWARD
[PE1]display vpls connection
1 total connections,
connections: 1 up, 0 down, 1 ldp, 0 bgp, 0 bgpad
VSI Name: v2 Signaling: ldp
VsiID EncapType PeerAddr InLabel OutLabel VCState
2 vlan 3.3.3.9 1024 1024 up
[PE1]display vpls forwarding-info
Total Number : 1, 1 up, 0 down
Vsi-Name PeerIP VcOrSiteId PwState
v2 3.3.3.9 2 UP
[PE1]display vsi pw out-interface
Total: 1
--------------------------------------------------------------------------------
Vsi Name peer vcid interface
--------------------------------------------------------------------------------
v2 3.3.3.9 2 GigabitEthernet0/0/1
标签:eNSP,0.0,mpls,ldp,3.3,interface,VPLS,Martini,3.9 来源: https://blog.csdn.net/weixin_44830835/article/details/119450899