12-25-2017 01:22 PM - edited 03-08-2019 01:12 PM
Hello everybody,
I am testing N9000v image on GNS3, but can't get BGP to work. I tried all versions: 7.0.3.I5.1, 5.2, 6.1, 6.2, 7.1, 7.2, no luck.
here is the config:
SW1 directly connect to SW2
SW1:
feature bgp
!
interface Ethernet1/5
no switchport
ip address 1.1.1.1/24
no shutdown
!
router bgp 10
address-family ipv4 unicast
neighbor 1.1.1.2
remote-as 20
!
SW2:
feature bgp
!
interface Ethernet1/5
no switchport
ip address 1.1.1.2/24
no shutdown
!
router bgp 20
address-family ipv4 unicast
neighbor 1.1.1.1
remote-as 10
!
ping is working:
sw1# ping 1.1.1.2 source-interface e1/5
PING 1.1.1.2 (1.1.1.2): 56 data bytes
64 bytes from 1.1.1.2: icmp_seq=0 ttl=254 time=3.284 ms
64 bytes from 1.1.1.2: icmp_seq=1 ttl=254 time=3.125 ms
64 bytes from 1.1.1.2: icmp_seq=2 ttl=254 time=2.667 ms
64 bytes from 1.1.1.2: icmp_seq=3 ttl=254 time=2.724 ms
64 bytes from 1.1.1.2: icmp_seq=4 ttl=254 time=3.486 ms
when i do "show ip bgp summary", no entry:
sw1# sh ip bgp summary
BGP summary information for VRF default, address family IPv4 Unicast
sw1#
sw1#
i configured address-family, but saying neighbor not configured for AF, is this a bug?
sw2(config)# sh ip bgp neighbors 1.1.1.1
BGP neighbor is 1.1.1.1, remote AS 10, ebgp link, Peer index 1
BGP version 4, remote router ID 0.0.0.0
BGP state = Idle, down for 00:25:39, retry in 0.000000
No address family configured
Last read never, hold time = 180, keepalive interval is 60 seconds
Last written never, keepalive timer not running
Received 0 messages, 0 notifications, 0 bytes in queue
Sent 0 messages, 0 notifications, 0 bytes in queue
Connections established 0, dropped 0
Connection attempts 0
Last reset by us never, due to No error
Last reset by peer never, due to No error
Message statistics:
Sent Rcvd
Opens: 0 0
Notifications: 0 0
Updates: 0 0
Keepalives: 0 0
Route Refresh: 0 0
Capability: 0 0
Total: 0 0
Total bytes: 0 0
Bytes in queue: 0 0
No established BGP session with peer
Peer 1.1.1.1 not configured for AF IPv4 Unicast
please help
Solved! Go to Solution.
12-25-2017 02:31 PM
Hi
Try closing the sentence:
router bgp 20
address-family ipv4 unicast
neighbor 1.1.1.1
remote-as 10
address-family ipv4 unicast
http://docwiki.cisco.com/wiki/Cisco_NX-OS/IOS_BGP_(Basic)_Comparison
:-)
12-25-2017 02:24 PM - edited 12-25-2017 02:29 PM
Hi
Unfortunately I have a limited knowledge about Nexus, but it could be similar to XR-OS, try with:
SW1
route-policy PASS-BGP
pass
router bgp 10
address-family ipv4 unicast
neighbor 1.1.1.2
remote-as 20
address-family ipv4 unicast
route-policy PASS-BGP in
route-policy PASS-BGP out
SW2:
route-policy PASS-BGP
pass
router bgp 20
address-family ipv4 unicast
neighbor 1.1.1.1
remote-as 10
address-family ipv4 unicast
route-policy PASS-BGP in
route-policy PASS-BGP out
Also please check this link, probably adress-family ipv4 unicast is missed:
http://docwiki.cisco.com/wiki/Cisco_NX-OS/IOS_BGP_(Basic)_Comparison
Hope it is useful
:-)
12-25-2017 02:29 PM
hello, thank you for the reply.
i tried, but there is no route-policy command
sw1(config)# route-poli?
^
% Invalid command at '^' marker.
12-25-2017 02:31 PM
Hi
Try closing the sentence:
router bgp 20
address-family ipv4 unicast
neighbor 1.1.1.1
remote-as 10
address-family ipv4 unicast
http://docwiki.cisco.com/wiki/Cisco_NX-OS/IOS_BGP_(Basic)_Comparison
:-)
12-25-2017 02:42 PM
thank you. worked now. oh my god!
router bgp 10
router-id 1.1.1.1
address-family ipv4 unicast
neighbor 1.1.1.2
remote-as 20
address-family ipv4 unicast
sw1(config)# sh ip bgp summary
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
1.1.1.2 4 20 9 11 3 0 0 00:03:08 0
12-25-2017 03:04 PM
Hi
You are welcome, happy to hear that.
Have a great day
:-)
12-25-2017 03:05 PM
12-25-2017 03:06 PM
Merry Christmas too!
:-)
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide