VRF and Interface |
|
---|
|
Code Block |
---|
| ip vrf l3vpn
rd 10.10.100.1:2020
route-target both 65002:2020
!
interface xe0.2020
encapsulation dot1q 20
ip vrf forwarding l3vpn
ip address 192.168.201.1/24 |
|
MP-BGP vpnv4 | Link |
---|
|
Code Block |
---|
title | BGP vpnv4 |
---|
collapse | true |
---|
| R2#show running-config router bgp
!
router bgp 65000
bgp router-id 10.1.1.1
neighbor 10.1.1.2 remote-as 65000
neighbor 10.1.1.2 update-source 10.1.1.1
!
address-family vpnv4 unicast
neighbor 10.1.1.2 activate
exit-address-family
!
address-family ipv4 vrf l3vpn
redistribute connected
exit-address-family
!
exit
!
|
|
Show commands |
|
---|
| show ip vrf Code Block |
---|
| aggr1#show ip vrf l3vpn
VRF l3vpn, VRF ID: 3, FIB ID 2
Router ID: 192.202.100.1 (automatic)
Interfaces:
lo.l3vpn
xe0.2020
VRF l3vpn; default RD 10.10.100.1:2020
RT:65002:2020
Import VPN route-target communities
RT:65002:2020
No import route-map
No export route-map
VPNv4 label allocation mode: per-vrf
VPNv6 label allocation mode: per-vrf
|
|
| show ip route vrf all database Code Block |
---|
| #show ip route vrf l3vpn
Codes: K - kernel, C - connected, S - static, R - RIP, B - BGP
O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2,
ia - IS-IS inter area, E - EVPN,
v - vrf leaked
* - candidate default
IP Route Table for VRF "l3vpn"
C 127.0.0.0/8 is directly connected, lo.l3vpn, 03:01:41
C 192.168.201.0/24 is directly connected, xe0.2020, 02:52:46
Gateway of last resort is not set
|
|
| show bgp vrf
Code Block |
---|
| #show bgp vrf l3vpn
BGP table version is 1, local router ID is 192.202.100.1
Status codes: s suppressed, d damped, h history, a add-path, * valid, > best, i - intern
al,
l - labeled, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> l 192.168.201.0 0.0.0.0 0 100 32768 ?
*>i 192.168.203.0 10.10.100.3 0 100 0 ?
*>i 192.168.204.0 10.10.100.4 0 100 0 ?
Total number of prefixes 3
|
|
| show bgp neighbors 10.1.1.2 received-routesĀ Code Block |
---|
| #show bgp neighbors 10.10.100.3 received-routes
% Inbound soft reconfiguration is not supported, displaying the received routes from acc
essing BGP local RIB
For address family: VPNv4 Unicast
Status codes: s suppressed, d damped, h history, a add-path, * valid, > best, i - intern
al, l - labeled
S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
Route Distinguisher: 10.10.100.3:2020
*>i 192.168.203.0 10.10.100.3 0 100 0 ?
Accepted routes count = 1
|
|
| show bgp neighbors 10.1.1.2 advertised-routesĀ | show bgp summary
show bgp neighbors Code Block |
---|
| #show bgp neighbors 10.10.100.3 advertised-routes
For address family: VPNv4 Unicast
BGP table version is 8, local router ID is 10.10.100.1
Status codes: s suppressed, d damped, a add-path, h history, * valid, > best, i - intern
al
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*>i 192.168.201.0 10.10.100.1 0 100 32768 ?
Total number of prefixes 1
|
|
| show BGP summary | show | R2#show |
R2#show bgp neighbors
BGP router identifier 10.10.100.1, local AS number 65002
BGP table version is 8
1 BGP AS-PATH entries
0 BGP community entries
Neighbor V AS MsgRcv MsgSen TblVer InQ OutQ Up/Down Stat
e/PfxRcd
10.1.1.240 4 65535 25493
29835 8 0 0 01w1d20h
0
10.10.100.2 4 65002 67776
67768 8 0 0 22:50:35
0
10.10.100.3 4 65002 74025
74045 8 0 0 02w3d23h
0
10.10.100.4 4 65002 67362
67454 8 0 0 00:26:10
0
Total number of neighbors 4
Total number of Established sessions 4
|
|
| show bgp neighbors 10.10.100.3
Code Block |
---|
| #show bgp neighbors 10.10.100.3
BGP neighbor is 10.110.1100.23, remote AS 6500065002, local AS 6500065002, internal link, peer index:
2 5
BGP version 4, local router ID 10.110.1100.1, remote router ID 10.110.1100.23
BGP state = Established, up for 00:04:3402w4d00h
Last read 00:00:1814, hold time is 90, keepalive interval is 30 seconds
Neighbor capabilities:
Route refresh: advertised and received (old and new)
Address family IPv4 Unicast: advertised and received
Address family VPNv4 Unicast: advertised and received
Address family L2VPN EVPN: advertised and received
Received 1274026 messages, 02 notifications, 0 in queue
Sent 1274045 messages, 03 notifications, 0 in queue
Route refresh request: received 06, sent 06
Minimum time between advertisement runs is 5 seconds
Update source is 10.1.1.1 lo
For address family: IPv4 Unicast BGP table version 8, neighbor version 8
Index 2, Offset 0, Mask 0x4
AIGP is enabled
Community attribute sent to this neighbor (both)
Large Community attribute sent to this neighbor
0 accepted prefixes
0 announced prefixes
For address family: VPNv4 Unicast BGP table version 13, neighbor version 13
Index 12, Offset 0, Mask 0x20x4
AIGP is enabled
Community attribute sent to this neighbor (both)
Large Community attribute sent to this neighbor
1 accepted prefixes
1 announced prefixes
For address family: L2VPN EVPN BGP table version 26, neighbor version 26
Index 2, Offset 0, Mask 0x4
Community attribute sent to this neighbor (both)
Large Community attribute sent to this neighbor
2 accepted prefixes
Accepted AD:0 MACIP:1 MCAST:1 ESI:0 PREFIX:0
2 announced prefixes
Connections established 15; dropped 04
Local host: 10.110.1100.1, Local port: 37247179
Foreign host: 10.110.1100.23, Foreign port: 17933649
TCP MSS: (0), Advertise TCP MSS: (14481460), Send TCP MSS: (14481460), Receive TCP MSS: (536)
Sock FD : (2324)
Nexthop: 10.110.1100.1
Nexthop global: ::
Nexthop local: ::
BGP connection: non shared network
Last Reset: 02w4d00h, due to BGP Notification received
Notification Error Message: (Cease/Other Configuration Change.)
uk-wnlb-lg-pol-cin-01#
|
|
|
|
L3 VPN |
|
---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|