Command Line Reference
Basic Configuration
Management Port Configuration
4 min
the management interface (mgmt 0) of asternos can be used by default to obtain an ip address from a dhcp server via a dhcp client, connecting the management interface to a network with a dhcp server on the same network segment the management port can only have one ipv4 address and one ipv6 address, multiple configurations will overwrite the original configuration and the last one will prevail show interface mgmt show interface mgmt \[command] show interface mgmt \[purpose] display management port configuration information \[view] system view \[use cases] sonic# show interface mgmt management ip address = 192 168 1 10/24 management network default gateway = 192 168 0 1 ip address ip address \[command] ip address a b c d/m a b c d \[purpose] configure/modify management port ip address and gateway \[parameter] parameter description a b c d/m ip address with prefix length a b c d optional parameter, gateway ip, ip address without prefix length \[view] management port configuration view \[use cases] sonic# configure sonic(config)# interface mgmt 0 sonic(config mgmt 0)# ip address 10 250 0 103/24 10 250 0 254 vrf mgmt vrf mgmt \[command] vrf mgmt \[purpose] add the management network port to the mgmt vrf \[view] management port configuration view \[notes] by default, the management port and the service port belong to default vrf, if user need to isolate the management port and the service port can add the management port to mgmt vrf \[use cases] sonic# configure sonic(config)# interface mgmt 0 sonic(config mgmt 0)# vrf mgmt
