Broadcom SONiC Cheat Sheet
Broadcom SONiC Cheat Sheet
SONiC (Software for Open Networking in the Cloud) is an open source network operating system that provides a fully-featured network stack that
can run on various commodity hardware. SONiC is designed to be flexible and modular, allowing it to support a wide range of networking devices
and configurations. Here are some common SONiC commands used in the management of network operating systems:
To access the Broadcom SONiC CLI, you first need to log into a device running SONiC using a secure shell (SSH) client such
Login: admin
as PuTTY or OpenSSH. Here are the steps to access the Broadcom SONiC CLI:
Password: YourPaSsWoRd
1. Connect to your SONiC device's use IP address, hostname or serial com cable
2. Enter your username and password to log in. Use the default username and password for SONiC
3. Once you have logged in, you can access the Broadcom SONiC CLI by typing "sonic-cli" on the command line default authentication
You should now be in the Broadcom SONiC CLI and can start using the available commands.
show commands
show version Shows information about the SONiC software version running on the device, including the version number, build date, and other details
show running-configuration Displays the current configuration of the device, including any changes that have been made since the last reboot
show system uptime Displays the amount of time since the device was last rebooted
show interfaces Displays information about the network interfaces on the device, including their status, MAC addresses, IP addresses, and other details
show interface <interface-name> Displays detailed information about a specific network interface, including its status, MAC address, IP address, and
configuration
show interfaces status Shows the status of all interfaces on the device, including whether they are up or down, connected or disconnected, and the
speed and duplex settings
show bgp summary Shows the status of all Border Gateway Protocol (BGP) sessions, including the number of established and active sessions, as well as
any errors or warnings
show route Displays the current routing table, including all routes and their associated next-hop addresses
show vlan Shows the current VLAN configuration, including all configured VLANs and their associated interfaces
ping <destination> Sends a ping packet to a specified destination, allowing you to test network connectivity
SCAN ME
traceroute <destination> Traces the route that packets take to reach a specified destination, showing each hop along the way
show lldp neighbors Displays information about the neighbors discovered through the Link Layer Discovery Protocol (LLDP), including their device ID,
port ID, and capabilities