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 |
|
LDP |
|
---|
|
|
MP-BGP vpnv4 and ipv4 vrf | Link |
---|
|
Code Block |
---|
title | BGP vpnv4 and ipv4 vrf |
---|
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
!
|
|
bgp | show bgp neighbors Code Block |
---|
title | show bgp neig |
---|
collapse | true |
---|
| Router1#show bgp neighbors
BGP neighbor is 10.10.11.2, remote AS 65000, local AS 65000, internal link, peer
index: 2
BGP version 4, local router ID 1.1.1.1, remote router ID 1.1.1.2
BGP state = Established, up for 00:29:55
Last read 00:00:08, hold time is 90, keepalive interval is 30 seconds
Neighbor capabilities:
Route refresh: advertised and received (old and new)
Address family VPNv4 Unicast: advertised and received
Received 74 messages, 0 notifications, 0 in queue
Sent 74 messages, 0 notifications, 0 in queue
Route refresh request: received 1, sent 1
Minimum time between advertisement runs is 5 seconds
Update source is 10.10.11.1
For address family: VPNv4 Unicast BGP table version 2, neighbor version 2
Index 1, Offset 0, Mask 0x2
AIGP is enabled
Community attribute sent to this neighbor (both)
Large Community attribute sent to this neighbor
1 accepted prefixes
1 announced prefixes
Connections established 1; dropped 0
Local host: 10.10.11.1, Local port: 179
Foreign host: 10.10.11.2, Foreign port: 40015
TCP MSS: (0), Advertise TCP MSS: (1448), Send TCP MSS: (1448), Receive TCP MSS:
(536)
Sock FD : (24)
Nexthop: 10.10.11.1
Nexthop global: ::
Nexthop local: ::
BGP connection: non shared network
|
|
| show bgp vrf all Code Block |
---|
title | show bgp vrf |
---|
collapse | true |
---|
| Router1#show bgp vrf all
BGP table version is 1, local router ID is 192.168.11.1
Status codes: s suppressed, d damped, h history, a add-path, b back-up, * valid,
> best, i - internal,
l - labeled, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
BGP Route Table for VRF l3vpn
*> l 192.168.11.0 0.0.0.0 0 100 32768 ?
*>i 192.168.12.0 10.10.11.2 0 100 0 ?
Total number of prefixes 2
|
|
|
|
Show VRF 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 commands |
|
---|
| 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 |