Fresh Installation of SONiC NOS
-
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
.
For ARM platforms, useGNU 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.
run onie_uninstall
from UBOOT prompt to uninstall the existing NOS before you install SONiC. -
Reboot the switch into ONIE and select
Install OS
.
For ARM platforms, useGNU GRUB version 2.02~beta2+e4a1fe391 +----------------------------------------------------------------------+ |*ONIE: Install OS <----- Select this one | | 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.
run onie_bootcmd
from UBOOT prompt to load ONIE. -
Assign IP address.
-
Ensure that eth0 is assigned a static IP or via DHCP.
-
For ES1000 x86, ensure eth2 is assigned a static IP or via DHCP.
-
For ES1010/ES1050/EG1050, ensure eth2 is assigned a static IP or via DHCP.
-
Stop ONIE discovery mode using onie-stop.
Note: ES1000 x86 and ES1010/ES1050/EG1050 ONIE eth2 is considered as Management interface. -
-
Install SONiC. Transfer the image into the device using scp / sftp / ftp / http.
ONIE:/ # ifconfig eth0 <ip_address> netmask <netmask_ip> ONIE:/ # ip route add default <gateway_ip> ONIE:/ # onie-nos-install <URL>
- After installation is successful, the device will reboot automatically and boot-up with SONiC.