VRF in FRR
configuration | |
---|---|
VRF part | show running-config router bgp 65110 vrf VRF-11 bgp log-neighbor-changes no bgp ebgp-requires-policy bgp graceful-restart preserve-fw-state bgp bestpath compare-routerid timers bgp 30 90 neighbor 10.100.11.2 remote-as 65111 neighbor 10.100.11.2 advertisement-interval 30 neighbor 10.100.11.2 timers connect 30 ! address-family ipv4 unicast redistribute kernel neighbor 10.100.11.2 soft-reconfiguration inbound maximum-paths 1 maximum-paths ibgp 1 exit-address-family exit ! router bgp 65110 vrf VRF-11-clone bgp log-neighbor-changes no bgp ebgp-requires-policy bgp graceful-restart preserve-fw-state bgp bestpath compare-routerid timers bgp 30 90 neighbor 10.100.11.2 remote-as 65111 neighbor 10.100.11.2 advertisement-interval 30 neighbor 10.100.11.2 timers connect 30 ! address-family ipv4 unicast redistribute kernel neighbor 10.100.11.2 soft-reconfiguration inbound maximum-paths 1 maximum-paths ibgp 1 exit-address-family exit ! |
show commands | |
show vrf lr202007009846# show vrf vrf VRF-11 id 2 table 16384 vrf VRF-11-clone id 3 table 16385 | |
show rib vrf xxxxxxxx lr202007009846# show rib vrf VRF-11 Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP, T - Table, v - VNC, V - VNC-Direct, A - Babel, F - PBR, f - OpenFabric, > - selected route, * - FIB route, q - queued, r - rejected, b - backup t - trapped, o - offload failure VRF VRF-11: C>* 10.100.11.0/24 is directly connected, g22, 20:32:08 K>* 10.100.12.0/24 [254/1000000] unreachable (blackhole), 20:36:32 C>* 10.100.110.1/32 is directly connected, lo0-1, 20:37:26 B>* 10.100.110.11/32 [20/0] via 10.100.11.2, g22, weight 1, 20:32:06 lr202007009846# show rib vrf VRF-11-clone Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP, T - Table, v - VNC, V - VNC-Direct, A - Babel, F - PBR, f - OpenFabric, > - selected route, * - FIB route, q - queued, r - rejected, b - backup t - trapped, o - offload failure VRF VRF-11-clone: C>* 10.100.11.0/24 is directly connected, g23, 20:32:13 K>* 10.100.12.0/24 [254/1000000] unreachable (blackhole), 20:36:37 C>* 10.100.110.1/32 is directly connected, lo0-2, 20:37:31 B>* 10.100.110.11/32 [20/0] via 10.100.11.2, g23, weight 1, 20:32:11 lr202007009846# | |
show bgp vrf VRF-11 ipv4 wide show bgp vrf lr202007009846# show bgp vrf VRF-11 ipv4 wide BGP table version is 2, local router ID is 10.100.110.1, vrf id 2 Default local pref 100, local AS 65110 Status codes: s suppressed, d damped, h history, * valid, > best, = multipath, i internal, r RIB-failure, S Stale, R Removed Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self Origin codes: i - IGP, e - EGP, ? - incomplete RPKI validation codes: V valid, I invalid, N Not found Network Next Hop Metric LocPrf Weight Path *> 10.100.12.0/24 0.0.0.0 1000000 32768 ? *> 10.100.110.11/32 10.100.11.2 0 65111 i Displayed 2 routes and 2 total paths lr202007009846# | |
show bgp vrf VRF-11 ipv4 neighbors show bgp vrf lr202007009846# show bgp vrf VRF-11 ipv4 neighbors BGP neighbor is 10.100.11.2, remote AS 65111, local AS 65110, external link BGP version 4, remote router ID 10.100.110.1, local router ID 10.100.110.1 BGP state = Established, up for 6d23h58m Last read 00:00:13, Last write 00:00:10 Hold time is 90, keepalive interval is 30 seconds Configured hold time is 90, keepalive interval is 30 seconds Neighbor capabilities: 4 Byte AS: advertised and received Extended Message: advertised AddPath: IPv4 Unicast: RX advertised Long-lived Graceful Restart: advertised and received Address families by peer: Route refresh: advertised and received(old & new) Enhanced Route Refresh: advertised Address Family IPv4 Unicast: advertised and received Hostname Capability: advertised (name: lr202007009846,domain name: n/a) not received Graceful Restart Capability: advertised and received Remote Restart timer is 120 seconds Address families by peer: none Graceful restart information: End-of-RIB send: IPv4 Unicast End-of-RIB received: IPv4 Unicast Local GR Mode: Helper* Remote GR Mode: Helper R bit: False Timers: Configured Restart Time(sec): 120 Received Restart Time(sec): 120 IPv4 Unicast: F bit: False End-of-RIB sent: Yes End-of-RIB sent after update: Yes End-of-RIB received: Yes Timers: Configured Stale Path Time(sec): 360 Message statistics: Inq depth is 0 Outq depth is 0 Sent Rcvd Opens: 1 1 Notifications: 0 0 Updates: 3 2 Keepalives: 20157 22313 Route Refresh: 0 0 Capability: 0 0 Total: 20161 22316 Minimum time between advertisement runs is 30 seconds For address family: IPv4 Unicast Update group 3, subgroup 3 Packet Queue length 0 Inbound soft reconfiguration allowed Community attribute sent to this neighbor(all) 1 accepted prefixes Connections established 1; dropped 0 Last reset 01w0d00h, No AFI/SAFI activated for peer Local host: 10.100.11.1, Local port: 179 Foreign host: 10.100.11.2, Foreign port: 49434 Nexthop: 10.100.11.1 Nexthop global: :: Nexthop local: :: BGP connection: shared network BGP Connect Retry Timer in Seconds: 30 Estimated round trip time: 111 ms Read thread: on Write thread: on FD used: 52 lr202007009846# | |
show bgp vrf VRF-11 neighbors 10.100.11.2 advertised-routes show bgp vrf VRF-11 ipv4 neighbors 10.100.11.2 received-routes advertised and received routes lr202007009846# show bgp vrf VRF-11 neighbors 10.100.11.2 advertised-routes <cr> json JavaScript Object Notation route-map Route-map to modify the attributes wide Increase table width for longer prefixes lr202007009846# show bgp vrf VRF-11 ipv4 neighbors 10.100.11.2 advertised-routes BGP table version is 2, local router ID is 10.100.110.1, vrf id 2 Default local pref 100, local AS 65110 Status codes: s suppressed, d damped, h history, * valid, > best, = multipath, i internal, r RIB-failure, S Stale, R Removed Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self Origin codes: i - IGP, e - EGP, ? - incomplete RPKI validation codes: V valid, I invalid, N Not found Network Next Hop Metric LocPrf Weight Path *> 10.100.12.0/24 0.0.0.0 1000000 32768 ? *> 10.100.110.11/32 0.0.0.0 0 65111 i Total number of prefixes 2 lr202007009846# show bgp vrf VRF-11 ipv4 neighbors 10.100.11.2 received-routes BGP table version is 2, local router ID is 10.100.110.1, vrf id 2 Default local pref 100, local AS 65110 Status codes: s suppressed, d damped, h history, * valid, > best, = multipath, i internal, r RIB-failure, S Stale, R Removed Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self Origin codes: i - IGP, e - EGP, ? - incomplete RPKI validation codes: V valid, I invalid, N Not found Network Next Hop Metric LocPrf Weight Path *> 10.100.110.11/32 10.100.11.2 0 65111 i Total number of prefixes 1 lr202007009846# |