Management Port
The Out of Band (OOB) Management Port in OcNOS is identified as “eth0.” This port is automatically mapped to the Management VRF when OcNOS boots, and will remain in same VRF throughout. It cannot be moved out of this VRF.
The IP address of the management port can be configured statically or via DHCP.
Static IP Configuration
A static IP can be configured on the management port during ONIE installation itself, or after installation using the OcNOS CLIs commands. To configure a static IP during ONIE installation, do the following
#onie-stop
#ifconfig eth0 <ip address> netmask <subnet mask> up
Please check the Install Guide for details.
The IP address configured during ONIE installation will be applied to the management port and the same will be retained when OcNOS boot up, and the port becomes part of Management VRF.
#show running-config interface eth0
!
interface eth0
ip vrf forwarding management
ip address 10.12.44.109/24
After getting the OcNOS prompt, this IP address can be changed from the CLI.
#configure terminal | Enter configure mode |
(config)#interface eth0 | Enter interface mode |
(config-if)#ip address 10.12.44.120/24 | Assign an IPv4 address to the interface |
(config-if)#exit | Exit interface mode |
(config)#exit | Exit configuration mode |
If a static IP is not configured during ONIE installation the same can be configured via CLI by following the above steps. Using the OcNOS CLI, DHCP can also be enabled on the Management port.
#configure terminal | Enter configure mode |
(config)#interface eth0 | Enter interface mode |
(config-if)#ip address dhcp | Enable DHCP on interface |
(config-if)#exit | Exit interface mode |
(config)#exit | Exit configuration mode |
Obtaining IP Address via DHCP
During onie installation, the management port attempts to acquire IP address via DHCP automatically unless stopped explicitly using “onie-stop”. So, if management port is getting IP via DHCP, after OcNOS boots, the management port will continue to use DHCP, even when it is part of the Management VRF.
#show running-config interface eth0
!
interface eth0
ip vrf forwarding management
ip address dhcp
After OcNOS boots, the IP address can be changed to any static IP from the command line as shown earlier.
Last modified date: 07-14-2023