! Configure directly connected neighbors with iBGP inside a VRF
hostname hub ! vrf definition viasat rd 65000:65000 ! address-family ipv4 exit-address-family ! interface Loopback1 vrf forwarding viasat ip address 1.1.1.2 255.255.255.255 ! interface GigabitEthernet3 vrf forwarding viasat ip address 172.16.0.1 255.255.255.252 ! router bgp 65000 bgp router-id 1.1.1.1 ! address-family ipv4 vrf viasat network 1.1.1.2 mask 255.255.255.255 neighbor 172.16.0.2 remote-as 65000 neighbor 172.16.0.2 activate exit-address-family ! hub# show bgp vrf viasat % Command accepted but obsolete, unreleased or unsupported; see documentation. BGP table version is 3, local router ID is 1.1.1.1 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter, x best-external, a additional-path, c RIB-compressed, t secondary path, L long-lived-stale, Origin codes: i - IGP, e - EGP, ? - incomplete RPKI validation codes: V valid, I invalid, N Not found Network Next Hop Metric LocPrf Weight Path Route Distinguisher: 65000:65000 (default for vrf viasat) *> 1.1.1.2/32 0.0.0.0 0 32768 i *>i 2.2.2.3/32 172.16.0.2 0 100 0 i ! hub#ping 2.2.2.3 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 2.2.2.3, timeout is 2 seconds: ..... Success rate is 0 percent (0/5) hub#ping vrf viasat 2.2.2.3 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 2.2.2.3, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/2 ms ! hub#show bgp vrf viasat neighbors % Command accepted but obsolete, unreleased or unsupported; see documentation. BGP neighbor is 172.16.0.2, vrf viasat, remote AS 65000, internal link BGP version 4, remote router ID 2.2.2.2 BGP state = Established, up for 00:10:47 ! --------------------------- hostname two ! vrf definition viasat rd 65000:65000 ! address-family ipv4 exit-address-family ! interface Loopback1 vrf forwarding viasat ip address 2.2.2.3 255.255.255.255 ! interface GigabitEthernet3 vrf forwarding viasat ip address 172.16.0.2 255.255.255.252 ! router bgp 65000 bgp router-id 2.2.2.2 bgp log-neighbor-changes ! address-family ipv4 vrf viasat network 2.2.2.3 mask 255.255.255.255 neighbor 172.16.0.1 remote-as 65000 neighbor 172.16.0.1 activate exit-address-family ! two# show bgp vrf viasat % Command accepted but obsolete, unreleased or unsupported; see documentation. BGP table version is 3, local router ID is 2.2.2.2 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter, x best-external, a additional-path, c RIB-compressed, t secondary path, L long-lived-stale, Origin codes: i - IGP, e - EGP, ? - incomplete RPKI validation codes: V valid, I invalid, N Not found Network Next Hop Metric LocPrf Weight Path Route Distinguisher: 65000:65000 (default for vrf viasat) *>i 1.1.1.2/32 172.16.0.1 0 100 0 i *> 2.2.2.3/32 0.0.0.0 0 32768 i ! two#ping 1.1.1.2 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 1.1.1.2, timeout is 2 seconds: ..... Success rate is 0 percent (0/5) two#ping vrf viasat 1.1.1.2 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 1.1.1.2, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms