Interface Configuration in SONiC

Interface Configuration in SONiC

To manage interface settings in SONiC, use the following commands.

Change Interface Speed

To modify the speed of an interface, use the command:
sudo config interface speed <interface> <speed_in_Mbps>

Example:
sudo config interface speed ethernet10 40000

Change Interface Status

Shutdown Interface

To disable an interface, use the command:
sudo config interface shutdown <interface>

Example:
sudo config interface shutdown ethernet10

Startup Interface

To enable an interface, use the command:
sudo config interface startup <interface>

Example:
sudo config interface startup ethernet30

Change MTU Value

To adjust the MTU value of an interface, use the command:
sudo config interface mtu <interface> <MTU_value>

Example:
sudo config interface mtu ethernet30 9100


    • Related Articles

    • How to configure Sub Interface

      Sub interfaces divide the parent interface into two or more virtual interfaces on which you can assign unique Layer 3 parameters such as IP addresses and dynamic routing protocols. The IP address for each sub interface should be in a different subnet ...
    • Management Interface Configuration (SONiC)

      Configure the management interface (eth0) for network administration in SONiC. Default Configuration: By default, eth0 uses DHCP to dynamically obtain an IP address from a DHCP server. Static IP Configuration: Command Line: sudo config interface ip ...
    • How to do Management interface Configuration?

      At root mode Enabling DHCP dhclient eth0 Manual ip configuration config interface ip add eth0 ipaddress/subnetmask gateway Example:-config interface ip add eth0 192.168.1.1/24 192.168.1.100
    • How to do Interface configuration?

      To change interface speed sudo config interface speed interface speed(in Mbps) Example:- sudo config interface speed ethernet48 40000 To change interface status (Startup/Shutdown) Shutdown sudo config interface shutdown interface Example :- sudo ...
    • Where can I get the Configuration guide for SONiC

      Attached document provides the details about the Configuration of SONiC