ONIE static IP Configuration

  • 20 October 2017
  • 9 replies
  • 2051 views

Hi,

I have a switch which is in ONIE, I need to Install the OS so I need to assign the IP address for accessing Via SCP. I don't have DHCP server to provide the IP. Now how can I set the Static IP for ONIE?

9 replies

Userlevel 1
Hi Darshan,
ONIE supports various ways of installing the image: Dhcp/web server, Web server, ftp/tftp, local file and usb. Without an IP local file or USB may be the best way to go.
See https://opencomputeproject.github.io/onie/design-spec/discovery.html#installer-discovery
There's also a section on Ethernet Port Management Configuration whereby you could statically configure the management port.
Hope this helps
Hi Darshan,
ONIE supports various ways of installing the image: Dhcp/web server, Web server, ftp...
I dont have access of any of the server, so only I am using WinSCP so for that I need an IP to access. Is there any way to configure the Static IP?
Userlevel 1
Hi Darshan,
ONIE supports various ways of installing the image: Dhcp/web server, Web server, ftp...
Yes, try this:

onie# onie-discovery-stop
ONIE:/ #ip addr add 10.1.2.3/24 dev eth0
Use SCP to copy the image file to the switch
Run installer manually
ONIE:/ #onie-nos-install /path/to/local/file/cumulus-install-[platform].bin
Hi Darshan,
ONIE supports various ways of installing the image: Dhcp/web server, Web server, ftp...
How can I Configure the Gateway?
Userlevel 1
Hi Darshan,
ONIE supports various ways of installing the image: Dhcp/web server, Web server, ftp...
Easiest way is to put your laptop on the same network as you selected above. If you can't do that,
ONIE:/ route add default gw
Hi Darshan,
ONIE supports various ways of installing the image: Dhcp/web server, Web server, ftp...
Thank you - excellent
Userlevel 1
In the Cumulus 3.4 user guide, page 36, there's a good procedure to use ONIE in discovery mode, specifying the IP you want to use on the management port.
Userlevel 4
In the Cumulus 3.4 user guide, page 36, there's a good procedure to use ONIE in discovery mode, s...Or if you're on the web, page 36 of the user guide translates to this section: https://docs.cumulusnetworks.com/display/DOCS/Installing+a+New+Cumulus+Linux+Image#InstallingaNewCum...

Hi Darshan,
ONIE supports various ways of installing the image: Dhcp/web server, Web server, ftp...
Easiest way is to put your laptop on the same network as you selected above. If you can't do that,
ONIE:/ route add default gw

route add default gw x.x.x.x

Reply