cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1145
Views
0
Helpful
1
Replies

BNG and EVPN VPWS

Hello, I have a Cisco ASR 9903 that I ned to run BNG on with EVPN VPWS. What I heard is that I need to make a local physical loop on the switch to make this work. 

I can not find any good configuration examples to show how to setup this, does any one have any examples or can put me on right direction?

 

/Tom

1 Reply 1

eiuemura
Cisco Employee
Cisco Employee

>I heard is that I need to make a local physical loop on the switch

Does it mean that the ingress interface of BNG is connected to the egress interface of VPWS on the same chassis?

I can provide the configuration regarding only VPWS side like below.

 

topology.png

 

RP/0/RSP0/CPU0:ASR9k_R1#show running-config 
Thu Jun 9 23:06:14.700 JST
Building configuration...
!! IOS XR Configuration 6.5.3
!! Last configuration change at Thu Jun 9 23:04:46 2022 by cisco
!
hostname ASR9k_R1
clock timezone JST 9
telnet vrf default ipv4 server max-servers 100
telnet vrf Mgmt-intf ipv4 server max-servers 100
vrf abc
!
vrf Mgmt-intf
!
line default
exec-timeout 0 0
!
interface Bundle-Ether10
!
interface Bundle-Ether10.11
vrf abc
ipv4 address 192.168.1.1 255.255.255.0
encapsulation dot1q 11
!
interface Bundle-Ether22001
!
interface Bundle-Ether22001.11 l2transport
encapsulation dot1q 11
rewrite ingress tag pop 1 symmetric
!
interface Loopback0
ipv4 address 1.1.1.1 255.255.255.255
!
interface MgmtEth0/RSP0/CPU0/0
vrf Mgmt-intf
ipv4 address 192.168.4.149 255.255.255.0
!
interface GigabitEthernet0/0/0/0
ipv4 address 10.0.12.1 255.255.255.0
transceiver permit pid all
!
interface GigabitEthernet0/0/0/1
transceiver permit pid all
!
interface TenGigE0/0/1/0
bundle id 10 mode active
!
interface TenGigE0/0/1/1
bundle id 22001 mode active
!
router isis core
is-type level-1
net 49.0000.0000.0000.0001.00
address-family ipv4 unicast
metric-style wide
router-id 1.1.1.1
segment-routing mpls sr-prefer
!
interface Loopback0
address-family ipv4 unicast
fast-reroute per-prefix
fast-reroute per-prefix ti-lfa
prefix-sid index 1
!
!
interface GigabitEthernet0/0/0/0
bfd fast-detect ipv4
address-family ipv4 unicast
fast-reroute per-prefix
fast-reroute per-prefix ti-lfa
!
!
!
router bgp 65000
bgp router-id 1.1.1.1
address-family l2vpn evpn
!
neighbor 2.2.2.2
remote-as 65000
update-source Loopback0
address-family l2vpn evpn
!
!
!
evpn
evi 22101
bgp
route-target import 64:22101
route-target export 64:22101
!
!
interface Bundle-Ether22001
ethernet-segment
identifier type 0 ff.ff.ff.ff.ff.ff.ff.ff.ee
!
!
!
l2vpn
xconnect group xg22001
p2p evpn-vpws-mclag-22001
interface Bundle-Ether22001.11
neighbor evpn evi 22101 target 220101 source 220301
!
!
!
!
end

 

 

RP/0/RSP0/CPU0:ASR9k_R2#show running-config 
Thu Jun 9 23:06:36.435 JST
Building configuration...
!! IOS XR Configuration 6.5.3
!! Last configuration change at Thu Jun 9 23:00:13 2022 by cisco
!
hostname ASR9k_R2
clock timezone JST 9
telnet vrf default ipv4 server max-servers 100
telnet vrf Mgmt-intf ipv4 server max-servers 100
vrf abc
!
vrf Mgmt-intf
!
line default
exec-timeout 0 0
!
interface Bundle-Ether10
!
interface Bundle-Ether10.11
vrf abc
ipv4 address 192.168.1.2 255.255.255.0
encapsulation dot1q 11
!
interface Bundle-Ether22001
!
interface Bundle-Ether22001.11 l2transport
encapsulation dot1q 11
rewrite ingress tag pop 1 symmetric
!
interface Loopback0
ipv4 address 2.2.2.2 255.255.255.255
!
interface MgmtEth0/RSP0/CPU0/0
vrf Mgmt-intf
ipv4 address 192.168.4.150 255.255.255.0
!
interface GigabitEthernet0/0/0/0
ipv4 address 10.0.12.2 255.255.255.0
transceiver permit pid all
!
interface GigabitEthernet0/0/0/1
transceiver permit pid all
!
interface TenGigE0/0/1/0
bundle id 10 mode active
!
interface TenGigE0/0/1/1
bundle id 22001 mode active
!
router isis core
is-type level-1
net 49.0000.0000.0000.0002.00
address-family ipv4 unicast
metric-style wide
router-id 2.2.2.2
segment-routing mpls sr-prefer
!
interface Loopback0
address-family ipv4 unicast
fast-reroute per-prefix
fast-reroute per-prefix ti-lfa
prefix-sid index 2
!
!
interface GigabitEthernet0/0/0/0
bfd fast-detect ipv4
address-family ipv4 unicast
fast-reroute per-prefix
fast-reroute per-prefix ti-lfa
!
!
!
router bgp 65000
bgp router-id 2.2.2.2
address-family l2vpn evpn
!
neighbor 1.1.1.1
remote-as 65000
update-source Loopback0
address-family l2vpn evpn
!
!
!
evpn
evi 22101
bgp
route-target import 64:22101
route-target export 64:22101
!
!
interface Bundle-Ether22001
ethernet-segment
identifier type 0 ff.ff.ff.ff.ff.ff.ff.ff.ef
!
!
!
l2vpn
xconnect group xg22001
p2p evpn-vpws-mclag-22001
interface Bundle-Ether22001.11
neighbor evpn evi 22101 target 220301 source 220101
!
!
!
!
end

 

 

RP/0/RSP0/CPU0:ASR9k_R1#show l2vpn xconnect
Thu Jun 9 23:13:34.915 JST
Legend: ST = State, UP = Up, DN = Down, AD = Admin Down, UR = Unresolved,
SB = Standby, SR = Standby Ready, (PP) = Partially Programmed

XConnect Segment 1 Segment 2
Group Name ST Description ST Description ST
------------------------ ----------------------------- -----------------------------
xg22001 evpn-vpws-mclag-22001
UP BE22001.11 UP EVPN 22101,220101,24014
UP
----------------------------------------------------------------------------------------
RP/0/RSP0/CPU0:ASR9k_R1#
RP/0/RSP0/CPU0:ASR9k_R1#show l2vpn xconnect detail
Thu Jun 9 23:13:35.216 JST

Group xg22001, XC evpn-vpws-mclag-22001, state is up; Interworking none
AC: Bundle-Ether22001.11, state is up
Type VLAN; Num Ranges: 1
Rewrite Tags: []
VLAN ranges: [11, 11]
MTU 1500; XC ID 0xc0000002; interworking none
Statistics:
packets: received 0, sent 0
bytes: received 0, sent 0
drops: illegal VLAN 0, illegal length 0
EVPN: neighbor 24014, PW ID: evi 22101, ac-id 220101, state is up ( established )
XC ID 0xa0000003
Encapsulation MPLS
Encap type Ethernet, control word enabled
Sequencing not set
LSP : Up

EVPN Local Remote
------------ ------------------------------ -----------------------------
Label 24009 1048577
MTU 1500 1500
Control word enabled enabled
AC ID 220301 220101
EVPN type Ethernet Ethernet

------------ ------------------------------ -----------------------------
Create time: 09/06/2022 11:19:02 (11:54:33 ago)
Last time status changed: 09/06/2022 23:04:48 (00:08:46 ago)
Last time PW went down: 09/06/2022 23:00:12 (00:13:23 ago)
Statistics:
packets: received 0, sent 0
bytes: received 0, sent 0
RP/0/RSP0/CPU0:ASR9k_R1#
RP/0/RSP0/CPU0:ASR9k_R1#show bundle bundle-ether 22001
Thu Jun 9 23:13:35.480 JST

Bundle-Ether22001
Status: Up
Local links <active/standby/configured>: 1 / 0 / 1
Local bandwidth <effective/available>: 10000000 (10000000) kbps
MAC address (source): 10f3.110b.93e3 (Chassis pool)
Inter-chassis link: No
Minimum active links / bandwidth: 1 / 1 kbps
Maximum active links: 64
Wait while timer: 2000 ms
Load balancing:
Link order signaling: Not configured
Hash type: Default
Locality threshold: None
LACP: Operational
Flap suppression timer: Off
Cisco extensions: Disabled
Non-revertive: Disabled
mLACP: Not configured
IPv4 BFD: Not configured
IPv6 BFD: Not configured

Port Device State Port ID B/W, kbps
-------------------- --------------- ----------- -------------- ----------
Te0/0/1/1 Local Active 0x8000, 0x0001 10000000
Link is Active
RP/0/RSP0/CPU0:ASR9k_R1#
RP/0/RSP0/CPU0:ASR9k_R1#show bundle bundle-ether 10
Thu Jun 9 23:13:35.780 JST

Bundle-Ether10
Status: Up
Local links <active/standby/configured>: 1 / 0 / 1
Local bandwidth <effective/available>: 10000000 (10000000) kbps
MAC address (source): 10f3.110b.93e1 (Chassis pool)
Inter-chassis link: No
Minimum active links / bandwidth: 1 / 1 kbps
Maximum active links: 64
Wait while timer: 2000 ms
Load balancing:
Link order signaling: Not configured
Hash type: Default
Locality threshold: None
LACP: Operational
Flap suppression timer: Off
Cisco extensions: Disabled
Non-revertive: Disabled
mLACP: Not configured
IPv4 BFD: Not configured
IPv6 BFD: Not configured

Port Device State Port ID B/W, kbps
-------------------- --------------- ----------- -------------- ----------
Te0/0/1/0 Local Active 0x8000, 0x0002 10000000
Link is Active
RP/0/RSP0/CPU0:ASR9k_R1#
RP/0/RSP0/CPU0:ASR9k_R1#show bgp l2vpn evpn
Thu Jun 9 23:13:36.082 JST
BGP router identifier 1.1.1.1, local AS number 65000
BGP generic scan interval 60 secs
Non-stop routing is enabled
BGP table state: Active
Table ID: 0x0 RD version: 0
BGP main routing table version 144
BGP NSR Initial initsync version 3 (Reached)
BGP NSR/ISSU Sync-Group versions 0/0
BGP scan interval 60 secs

Status codes: s suppressed, d damped, h history, * valid, > best
i - internal, r RIB-failure, S stale, N Nexthop-discard
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
Route Distinguisher: 1.1.1.1:0 (default for vrf ES:GLOBAL)
*> [1][1.1.1.1:1][00ff.ffff.ffff.ffff.ffee][4294967295]/184
0.0.0.0 0 i
*> [4][00ff.ffff.ffff.ffff.ffee][32][1.1.1.1]/128
0.0.0.0 0 i
*>i[4][00ff.ffff.ffff.ffff.ffef][32][2.2.2.2]/128
2.2.2.2 100 0 i
Route Distinguisher: 1.1.1.1:22101 (default for vrf VPWS:22101)
*> [1][00ff.ffff.ffff.ffff.ffee][220301]/120
0.0.0.0 0 i
*>i[1][00ff.ffff.ffff.ffff.ffef][220101]/120
2.2.2.2 100 0 i
*>i[1][00ff.ffff.ffff.ffff.ffef][4294967295]/120
2.2.2.2 100 0 i
Route Distinguisher: 2.2.2.2:0
*>i[4][00ff.ffff.ffff.ffff.ffef][32][2.2.2.2]/128
2.2.2.2 100 0 i
Route Distinguisher: 2.2.2.2:1
*>i[1][2.2.2.2:1][00ff.ffff.ffff.ffff.ffef][4294967295]/184
2.2.2.2 100 0 i
Route Distinguisher: 2.2.2.2:22101
*>i[1][00ff.ffff.ffff.ffff.ffef][220101]/120
2.2.2.2 100 0 i

Processed 9 prefixes, 9 paths
RP/0/RSP0/CPU0:ASR9k_R1#