Cisco Command
show ip route bgp
show ip bgp summary
show ip bgp neighbor 1.1.1.1 received-routes
show ip bgp neighbor 1.1.1.1 advertised-routes
show ip bgp neighbor
clear ip bgp 172.31.254.2 soft out
clear ip bgp 172.31.254.2 soft in
BGP-Cisco(config-router)#network 100.99.98.0 mask 255.255.255.0
BGP-Cisco(config-router)#network 100.99.97.0 mask 255.255.255.0
BGP-Cisco(config-router)#network 100.99.96.0 mask 255.255.255.0
BGP-Cisco(config-router)#neighbor 172.31.254.2 remote-as 2
BGP-Cisco(config)#router bgp 1
BGP-Cisco(config-router)#neighbor 172.31.254.2 default-originate
BGP-Cisco(config)#router bgp 1
MikroTik Command
ip route print where bgp=yes
routing bgp peer print brief
ip route print where received-from=peer_name
routing bgp advertisements print peer=peer_name
routing bgp peer print status
routing bgp peer resend peer1
routing bgp peer refresh peer1
/routing bgp network
add network=100.89.88.0/24
add network=100.89.87.0/24
add network=100.89.86.0/24
/routing bgp peer
add name=peer1 remote-address=172.31.254.1 remote-as=1
/routing bgp peer
add default-originate=always name=peer1 remote-address=172.31.254.1 remote-as=1
/routing bgp instance
set default as=2
沒有留言:
張貼留言