You are browsing a read-only backup copy of Wikitech. The live site can be found at

SONiC: Difference between revisions

From Wikitech-static
Jump to navigation Jump to search
(Initial page creation)
Line 42: Line 42:

<code>sudo config ntp add <server IP></code>
<code>sudo config ntp add <server IP></code>
===Interface mapping ===
<code>show interfaces description</code>
on S5232F-ON
Sonic side  switch side
Ethernet0 =  E1/1
Ethernet4 =  E1/2

=== Known limitations ===
=== Known limitations ===

Revision as of 04:14, 29 September 2021


Currently tested on the April 2021 release.


All configuration change done with sudo config need at some point a sudo config save to make them permanent (eg. device reboot)


sudo config hostname dell-spine1


SONiC supports having the management interface in a dedicated VRF, so the default management route (to mr1) doesn't risk impacting production traffic.

sudo config vrf add mgmt

sudo config interface ip add eth0 10.x.x.x/16 10.x.0.1

show management_interface address


Have SNMP listen on its mgmt IP

sudo config snmpagentaddress add 10.x.x.x -v mgmt -p 161

In the tested release, sudo config snmp is not a valid configuration keyword.

Workaround to set the SNMP community:

sudo vim /etc/sonic/snmp.yml

sudo systemctl restart snmp


sudo config ntp add <server IP>

Interface mapping

show interfaces description on S5232F-ON

Sonic side switch side

Ethernet0 = E1/1

Ethernet4 = E1/2

Known limitations

  • It is not possible to configure a DNS resolver, all configuration needs to be done using IPs
  • It is not possible to change the syslog facility
  • cgexec -g l3mdev:mgmt is supposed to run commands from the mgmt VRF, but fails with "cgroup change of group failed"