Border Gateway Protocol- FAQ (Broadcom SoNiC)

Border Gateway Protocol- FAQ (Broadcom SoNiC)

 

1. How do I configure BGP hold and keepalive timers? 
Use timers <keepalive> <hold>. 

 

2. How do I enable BGP in SONiC? 

Use router bgp <AS_number> to enter BGP configuration mode. 

 

3. What does neighbor mean in BGP configuration? 
neighbor defines the IP address of the remote peer with whom BGP will establish a connection. 

 

4.How do I specify a remote AS for a BGP neighbor? 
Use neighbor <IP> and then remote-as <AS_number> to configure the remote AS. 

 

5.What is the purpose of update-source in BGP? 
update-source <ip> sets the source IP address for BGP updates to the neighbor. 

 

6. How do I create a BGP peer group? 
Use peer-group <name> in BGP configuration mode. 
 

7. How can I view BGP sessions in SONiC? 
use show bgp ipv4 unicast summary to display BGP session information. 
 

 

8. How do I enable logging of BGP adjacency changes? 
Use log-neighbor-changes to log BGP neighbor events. 
 

 

9.What command advertises only the best path to each AS? 
Use addpath-tx-bestpath-per-as to advertise the best path per AS. 

 

10.How do I set a description for a BGP neighbor? 
Use neighbor <IPand then description <text> to set a description for the neighbor. 
 

11. What is maximum-paths in BGP? 
maximum-paths <paths> sets the number of paths for load balancing. 
 

 

12. How do I configure a route reflector in BGP? 
Use route-reflector-client for a route reflector client configuration. 

             

              13. How do I activate a specific address family for a BGP peer? 
               Use address-family <type> (e.g., ipv4 unicast) in neighbor configuration mode. 
 

 

14. What is as-path filtering in BGP? 
as-path filtering allows specific AS paths to be permitted or denied. 

 

15. How do I reset BGP connections for a neighbor? 
Use clear bgp <IP> to reset a specific BGP session. 

 

16. How do I advertise a network in BGP? 
Use network <IP_address> / <subnet_mask> to advertise a network. 
 

17. What does aggregate-address do in BGP? 
It summarizes routes, reducing the number of advertised routes. 

 

18. How do I configure a BGP community list? 
Use bgp community-list followed by permit or deny rules. 

 

19. What is next-hop-self used for in BGP? 
next-hop-self sets the local router's IP as the next hop for the neighbor. 

 

20. which command enables enforcement first as number for bgp neighbour? 
Use enforce-first-as. 
 

               21. How do I limit the number of prefixes that BGP can learn? 
               Use neighbor <IP> and then maximum-prefix <number>. 

 

22.  What does  allowas-in do? 
It allows BGP to accept updates from its own AS. 

 

23.How do I configure BGP route dampening? 
Use dampening to suppress frequently flapping routes. 

 

24. How do I enable BGP graceful restart? 
Use graceful-restart enable 

 

25. How is a policy map applied to incoming BGP routes? 
Use route-map <name> in. 

 

26. How do I prevent BGP from advertising default routes? 
Use no default-originate. 
 

 

27What does soft-reconfiguration inbound do? 
It enables BGP to store received routes for updates without resetting sessions. 
 

 

28How do I set a local preference for BGP routes? 
Use set local-preference <value> in a route map. 
 

 

29.How do I enable IPv6 for a BGP neighbor? 
Use address-family ipv6 unicast. 
 

 

30. How can I change the BGP keepalive interval? 
Use timers keepalive <interval>. 

 
 

31.  What does  remove-private-as do? 
This removes private AS numbers from outbound updates to external peers. 
 

 

               32. How can I set a Route-map to selectively unsuppress suppressed routes? 
               Use unsuppress-map. 
                

 

33. How do I set the BGP router ID? 
Use bgp router-id <ID>. 
 

 

34. How can I redistribute static routes into BGP? 
Use redistribute static in BGP configuration. 
 

 

35. How do I configure BGP graceful shutdown? 
Use graceful-shutdown. 
 

 

36. What does activate do in BGP? 
It activates a BGP neighbor under an address family. 
 

 

37. How do I control BGP route advertisements with a route map? 
Use  route-map <map_name> out. 
 

 

38. How do I ignore MED in BGP best path selection? 
Use bestpath med. 
 

 

39. How do I enable all BGP paths to be advertised? 
Use addpath-tx-all-paths. 
 

 

40. How can I view detailed ipv4 BGP information? 
Run show bgp ipv4 unicast neighbors. 
 

 

41. What is local-as in BGP? 
This command specifies an alternate AS for this BGP process when interacting with the specified peers in a peer-group. 
 

 

42. How do I enable BGP dampening ? 
Use dampening parameters in BGP configuration. 
 

 

43. What is route-map in BGP? 
A route-map in BGP controls updates and filters routes based on criteria. 
 

 

44. How does the update-source for BGP? 
This command specifies the IPv4 or IPv6 source address to use for the BGP session to this neighbor. 
 

 

45. How do I apply a filter list to BGP routes? 
Use filter-list <list_name> in|out. 
 

 

46. How can I  allow BGP neighbor to accept as-path with its own AS number present in it.? 
Use bgp allowas-in <value>. 
 

                

   47. How do I Clear peers with address of peer_ip and this address-family activated?  
               Use clear bgp all <A.B.C.D/A::B> 
                 

 

48. What is bgp always-compare-med? 
This setting enables MED comparison between routes from different ASes. 
  

 

49. How can I reset all BGP connections? 
Use clear bgp all to reset all sessions. 
 

50 .How do I create a BGP instance in a VRF on SONiC? 
Use the command router bgp <AS_number> vrf <vrf-name> to create an instance of BGP within a specific VRF. If no VRF is specified, it defaults to the global instance. 
 


    • Related Articles

    • IP Helper Configuration on Broadcom SoNiC

      1. To Display IP helper global information Command: show ip forward-protocol 2. To Displays IP helper server addresses configured on interface Command: show ip helper-address [ <iface> ] 3.To Display IP helper packet counters and statistics on ...
    • Syslog server configuration in Broadcom SoNiC

      1. To Configure remote syslog server to forward syslog messages Command: logging server <host> [ message-type { audit | auditd-system | event | log } ] [ remote-port <vrport> ] [ protocol { tcp | tls | udp } ] [ source-interface { Ethernet | Loopback ...
    • Configuring AAA in Broadcom sonic

      AAA Authentication Fail through Description: Configures AAA authentication fail through. Syntax: aaa authentication failthrough <enable> Parameters: enable: Enable or disable the feature. Example: sonic(config)# aaa authentication failthrough enable ...
    • DHCP Snooping configuration on Broadcom Sonic

      Enabling DHCP Snooping Command: ip dhcp snooping This command enables DHCP Snooping globally on the device, helping monitor and block unauthorized DHCP servers. Disable DHCP snooping sonic-cli# configure terminal sonic-cli(config)# no ip dhcp ...
    • What is the procedure for Installation of SONiC ?

      Install SONiC ONIE Image Connect to switch via serial console. (Optional) Some switches may come with a NOS which will require you to uninstall the existing NOS first before you install SONiC. To do so, simply boot into ONIE and select Uninstall OS: ...