What is the procedure for Installation of SONiC ?

What is the procedure for Installation of SONiC ?

Install SONiC ONIE Image

  1. Connect to switch via serial console.

  2. (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:

    GNU GRUB version 2.02~beta2+e4a1fe391

+----------------------------------------------------------------------------+| |*ONIE: Install OS | | ONIE: Rescue | | ONIE: Uninstall OS <----- Select this one | | ONIE: Update ONIE | | ONIE: Embed ONIE | +----------------------------------------------------------------------------+|

Use the ^ and v keys to select which entry is highlighted. Press enter to boot the selected OS, `e' to edit the commands before booting or `c' for a command-line.

3. Reboot the switch into ONIE and select Install OS:

GNU GRUB version 2.02~beta2+e4a1fe391 +----------------------------------------------------------------------------+

|*ONIE: Install OS
| ONIE: Rescue



| ONIE: Uninstall OS
| ONIE: Update ONIE | | ONIE: Embed ONIE | +----------------------------------------------------------------------------+

Use the ^ and v keys to select which entry is highlighted. Press enter to boot the selected OS, `e' to edit the commands before booting or `c' for a command-line.


Install SONiC. Here, we assume you have uploaded SONiC image onto a http server (192.168.2.10). Once you are in ONIE, you can first configure a management IP (192.168.0.2/24)and default gateway (192.168.0.1) for your switch, and then install the SONiC image from the http server.

ONIE:/ # ifconfig eth0 192.168.0.2 netmask 255.255.255.0
ONIE:/ # ip route add default via 192.168.0.1
ONIE:/ # onie-nos-install http://192.168.2.10/sonic-broadcom.bin

When NOS installation finishes, the box will reboot into SONiC by default. GNU GRUB version 2.02~beta2+e4a1fe391

+----------------------------------------------------------------------------+ |*SONiC-OS-7069cef | |ONIE | +----------------------------------------------------------------------------+

SONiC Login prompt. Use username admin and password Your PaSsWoRd to login for the first time. Debian GNU/Linux 8 sonic ttyS0
sonic login:

Note: By default, the SONiC console baud rate is 9600. You may need to change the baud rate in case you cannot see anything from the console after reboot.
SONiC Welcome Message of the Day:

You are on
____ ___ _ _ _ ____

-- Software for Open Networking in the Cloud -- -- Powered by PALC Networks --


    • Related Articles

    • Where can I get the installation guide for SONiC

      Attached document give the steps for the installation of
    • How to Install SONiC from USB via ONIE?

      Topology: Guidelines: Please note that ONIE does not support the NTFS file system. Procedure: 1. Transfer the SONiC installer image file to a USB flash drive and rename it to onie-installer.bin 2. Reboot the switch and connect the USB drive to the ...
    • Managing SONiC Images

      SONiC Installer The SONiC Installer is a command-line utility included with the SONiC software. It allows users to install an alternate image on a designated partition if the device is already running SONiC. This tool facilitates the installation of ...
    • 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 ...
    • How to Upgrade/Downgrade SONiC ?

      SONiC Installer This is a command line tool available as part of the SONiC software. If the device is already running the SONiC software, this tool can be used to install an alternate image in the partition. This tool has the facility to install an ...