This page describes how to configure management port and front panel interfaces.
Default settings:
admin@sonic:~$ sudo config interface ip add eth0 192.168.0.126/24 admin@sonic:~$ sudo config interface ip add eth0 2001::8/64
# show ip interfaces Interface Master IPv4 address/mask Admin/Oper BGP Neighbor Neighbor IP ----------- -------- ------------------- ------------ -------------- ------------- Loopback0 10.1.0.1/32 up/up N/A N/A docker0 240.127.1.1/24 up/down N/A N/A eth0 192.168.0.126/24 up/up N/A N/A lo 127.0.0.1/16 up/up N/A N/A # show ipv6 interfaces Interface Master IPv6 address/mask Admin/Oper BGP Neighbor Neighbor IP ----------- -------- --------------------------------------- ------------ -------------- ------------- Bridge fe80::b4d1:a3ff:fec0:207d%Bridge/64 up/down N/A N/A Loopback0 fe80::845c:fdff:fe2c:7143%Loopback0/64 up/up N/A N/A docker0 fd00::1/80 up/down N/A N/A fe80::1%docker0/64 up/down N/A N/A eth0 2001::8/64 up/up N/A N/A fe80::72b3:d5ff:fecc:f7f3%eth0/64 up/up N/A N/A lo ::1/128 up/up N/A N/A
# show management_interface address Management IP address = 192.168.0.126/24 Management Network Default Gateway = 192.168.0.1 Management IP address = 2001::8/64 Management Network Default Gateway = 2001::1
admin@sonic:~$ sudo config save -y
root@sonic:/home/admin# vi /etc/sonic/config_db.json "MGMT_INTERFACE": { "eth0|192.168.0.126/24": { "gwaddr": "192.168.0.1" }, "eth0|2001::8/64": { "gwaddr": "2001::1" } },
admin@sonic:~$ sudo config interface ip add Ethernet0 172.18.0.1/24 admin@sonic:~$ sudo config interface ip add Ethernet0 2002::1/64
admin@sonic:~$ sudo show ip interfaces Interface Master IPv4 address/mask Admin/Oper BGP Neighbor Neighbor IP ----------- -------- ------------------- ------------ -------------- ------------- Ethernet0 10.0.0.0/31 up/down N/A 10.0.0.1 172.18.0.1/24 up/up N/A N/A Loopback0 10.1.0.1/32 up/up N/A N/A docker0 240.127.1.1/24 up/down N/A N/A eth0 192.168.0.126/24 up/up N/A N/A lo 127.0.0.1/16 up/up N/A N/A admin@sonic:~$ sudo show ipv6 interfaces Interface Master IPv6 address/mask Admin/Oper BGP Neighbor Neighbor IP ----------- -------- --------------------------------------- ------------ -------------- ------------- Bridge fe80::8013:9ff:feb5:5bc6%Bridge/64 up/down N/A N/A Ethernet0 2002::1/64 up/up N/A N/A Loopback0 fe80::744f:d2ff:fe6f:8c8e%Loopback0/64 up/up N/A N/A docker0 fd00::1/80 up/down N/A N/A fe80::1%docker0/64 up/down N/A N/A eth0 2001::8/64 up/up N/A N/A fe80::72b3:d5ff:fecc:f7f3%eth0/64 up/up N/A N/A lo ::1/128 up/up N/A N/A
admin@sonic:~$ sudo config save -y
To configure interfaces and ports on SONiC, modify the INTERFACE hierarchy statements in the /etc/sonic/config_db.json file.
"INTERFACE": { "Ethernet0": {}, "Ethernet0|172.18.0.1/24": {}, } "PORT": { "Ethernet0": { "admin_status": "up", "alias": "Ethernet0", "fec": "rs", "index": "0", "lanes": "121,122,123,124", "mtu": "9100", "speed": "100000" },
admin@sonic:~$ sudo config interface ip add PortChannel01 192.168.0.100/24 admin@sonic:~$ sudo config interface ip add PortChannel01 2002::1/64
admin@sonic:~$ show ip interfaces Interface Master IPv4 address/mask Admin/Oper BGP Neighbor Neighbor IP ------------- -------- ------------------- ------------ -------------- ------------- Loopback0 10.1.0.1/32 up/up N/A N/A PortChannel01 192.168.0.100/24 up/down N/A N/A docker0 240.127.1.1/24 up/down N/A N/A eth0 192.168.0.126/24 up/up N/A N/A lo 127.0.0.1/16 up/up N/A N/A admin@sonic:~$ show ipv6 interfaces Interface Master IPv6 address/mask Admin/Oper BGP Neighbor Neighbor IP ------------- ------------- ---------------------------------------- ------------ -------------- ------------- Bridge fe80::3049:73ff:fef0:271%Bridge/64 up/down N/A N/A Loopback0 fe80::5c79:5bff:fe2e:f6fb%Loopback0/64 up/up N/A N/A PortChannel01 2002::1/64 up/down N/A N/A docker0 fd00::1/80 up/down N/A N/A fe80::1%docker0/64 up/down N/A N/A eth0 fe80::72b3:d5ff:fecc:f7f3%eth0/64 up/up N/A N/A lo ::1/128 up/up N/A N/A
Save settings to config_db.json
admin@sonic:~$ sudo config save -y
Modify the PORTCHANNEL hierarchy statements in the /etc/sonic/config_db.json file.
"PORTCHANNEL": { "PortChannel01": { "admin_status": "up", "mtu": "9100" } }, "PORTCHANNEL_INTERFACE": { "PortChannel01": {}, "PortChannel01|192.168.0.100/24": {}, "PortChannel01|2002::1/64": {} }, "PORTCHANNEL_MEMBER": { "PortChannel01|Ethernet0": {}, "PortChannel01|Ethernet12": {} },
Taipei, Taiwan 8th of November 2021. Netberg’s SONiC platform code for Aurora 715 and Aurora 615 Innovium Teralynx-based switches is accepted into the official GitHub repository.
Taipei, Taiwan 1st of June 2021. Netberg, a leading open networking vendor, announces two new Aurora 715 and Aurora 615 models - high-performance 25/100G switches for future-proof Cloud, Enterprise, and Edge data centers.
Taipei, Taiwan 17th of November 2020. Netberg announces new services - custom networking software and hardware development.
Taipei, Taiwan 1st of September 2020. Netberg enables the era of next-gen SDN with its programmable Aurora 610, Aurora 710, and Aurora 750 switches.
Taipei, Taiwan 11th of August 2020. Netberg confirms its commitment to open standards and open source communities by joining the Telecom Infra Project (TIP).
Taipei, Taiwan 19th of February 2020. Today Netberg launches a new Academia and Research Program, designed to meet a constantly increasing demand from the research community for high-performance and programmable Tofino-based platforms.