Installing OPBNOS from ONIE

To install OPBNOS from ONIE, please follow the below steps:

  • Login using the console port and reboot the switch

  • Enter ONIE mode

  • Select 'ONIE: Uninstall OS' to clean up installed images

This step takes a few minutes and reboot the switch after cleanup is complete

  • The Switch will reboot and boot into 'ONIE: Install OS' mode, run the below command to stop auto-discovery

ONIE:/ # onie-discovery-stop 

The 'onie-discovery-stop' command is deprecated and will be removed in 2019.02.

If you are using the latest version of ONIE, Use 'onie-stop' instead.

  • Assign 'eth0' with a management-IP to copy image from remote server

ONIE:/ # ifconfig eth0 <mgmt-ip> netmask <netmask> up
//Example - ifconfig eth0 10.4.4.72 netmask 255.255.254.0 up
  • If server is present on different network using below command to add a default route

ONIE:/ # route add default gw <gw-ip>
//Example - route add default gw 10.4.4.1 
  • Image can be installed using HTTP or SCP:

    • SCP -

//Copy image - 
ONIE:/ # scp <user>@<server-ip>:/<dir>/opb-nos.bin opbnos.bin
//Example - scp aviz@10.2.2.10:/images/opb/opb-nos.bin opbnos.bin 

//Install copied image -
ONIE:/ # onie-nos-install <image-name.bin>
//Example - onie-nos-install opbnos.bin
  • HTTP -

    • start HTTP-server on image directory, on a linux server below command can be used to achieve this

aviz@10.2.2.10:/images/opb$ python3 -m http.server 8030
  • On the switch console use the below command to install the image using HTTP, This will download and install the OPBNOS

ONIE:/ # onie-nos-install http://<IP>:<port>/<opb-nos.bin>
//Example - onie-nos-install http://10.2.2.10:8030/opb-nos-20220714.2.1.1.bin

Last updated