Enterprise Advanced SONiC: Login and Configuration 3.2 Management Interface and Hostname Configuration If you use the gwaddr option to configure the management interface, all traffic originating from the management IP address on the switch and all locally switched traffic on the management interface is forwarded to the device with the configured gwaddr IP address. If this is not the intended behavior, configure the management VRF (via ip vrf mgmt ) when assigning the gwaddr IP address to the management interface.
The recommendation is to configure the management VRF so that the management interface is automatically added and that management traffic is fully isolated from other configured VRFs. 1. Configure an Out-of-Band management interface by entering its IP address, subnet mask, and default gateway that can then be used to manage the switch via SSH. sonic(config)# interface Management0 sonic(conf-if-Management0)# description Management0 sonic(conf-if-Management0)# ip address 100.94.189.13/24 gwaddr 100.94.189.254 sonic(conf-if-Management0)# ipv6 address 2000::13/64 sonic(conf-if-Management0)# 2. Verify the management interface configuration.
sonic# show interface Management0 Management0 is up, line protocol is up Hardware is MGMT, address is 0c:29:ef:e1:f8:00 Description: Management0 IPV4 address is 100.94.189.13/24 Mode of IPV4 address assignment: MANUAL IPV6 address is 2000::13/64,fe80::e29:efff:fee1:f800/64 Mode of IPV6 address assignment: DHCP IP MTU 1500 bytes LineSpeed 1GB, Auto-negotiation True Input statistics: 75106 packets, 15083074 octets 28980 Multicasts, 0 error, 1553 discarded Output statistics: 17