← Resources

SONiC Configuration Guide

Learning tracks

Guides in the order to read them.

Tags
01Enterprise SONiC in GNS3
SONiC Configuration Guide

Enterprise SONiC in GNS3

Build a SONiC lab on your computer without any hardware. This step-by-step guide shows how to download the Enterprise SONiC virtual switch image, generate the GNS3 appliance file (including the macOS fix), import it into GNS3 and boot your first SONiC switch.

GNS3SONIC
02SONiC CLI Basics: Login and Command Modes
SONiC Configuration Guide

SONiC CLI Basics: Login and Command Modes

New to Enterprise SONiC? This guide shows how to log in through the console or SSH, move from the Linux shell to the SONiC CLI, and understand the CLI modes, user roles and the essential commands to navigate and verify your switch.

Getting StartedSONIC
03SONiC Interface Configuration Guide
SONiC Configuration Guide

SONiC Interface Configuration Guide

Get started with interface configuration in Enterprise SONiC. This guide covers setting the port speed and autonegotiation, enabling and disabling interfaces, assigning IP addresses to routed ports and VLAN interfaces, and reading the status outputs.

Getting StartedSONIC
04SONiC Out-of-Band Management Interface
SONiC Configuration Guide

SONiC Out-of-Band Management Interface

Access and manage your SONiC switches remotely over a dedicated out-of-band network. This guide shows how to configure a static IP address and default gateway on the Management0 interface in Enterprise SONiC, and how to verify its configuration and status.

Getting StartedSONIC
05SONiC Running and Startup Configuration
SONiC Configuration Guide

SONiC Running and Startup Configuration

Understand the difference between the running and startup configurations in Enterprise SONiC. This guide shows how to view and save your configuration, and how to safely restore factory defaults with write erase and its options.

Getting StartedSONIC
06Users and Sessions Management
SONiC Configuration Guide

Users and Sessions Management

Manage user accounts in Enterprise SONiC: create local users with admin or operator roles, and configure login lockout to protect your switches against brute-force attacks. Includes commands, defaults and verification steps.

Getting StartedSONIC
07SONiC VLAN Configuration Guide
SONiC Configuration Guide

SONiC VLAN Configuration Guide

A hands-on guide to VLANs in Enterprise SONiC: create VLANs, configure access and trunk ports on two switches, and verify the setup with show vlan, MAC address tables and an end-to-end ping test.

Getting StartedVLANSONIC
08SONiC VLAN Translation Configuration
SONiC Configuration Guide

SONiC VLAN Translation Configuration

Connect network domains that use different VLAN numbering without renumbering. This guide shows how to configure VLAN translation in Enterprise SONiC, from the TD4 prerequisites to CVLAN-to-SVLAN mapping and verification.

AdvancedVLANSONIC
09SONiC Q-in-Q VLAN Tunneling Configuration
SONiC Configuration Guide

SONiC Q-in-Q VLAN Tunneling Configuration

Carry customer VLANs across a provider network while keeping their original tags. This guide explains how Q-in-Q differs from VLAN translation and how to configure dot1q tunneling in Enterprise SONiC, step by step.

AdvancedSONIC
10SONiC Port Channel and LACP Configuration
SONiC Configuration Guide

SONiC Port Channel and LACP Configuration

Bundle multiple physical links into one logical interface for more bandwidth and redundancy. This guide shows how to create a port channel in Enterprise SONiC, configure LACP options such as fast rate and min-links, add members, and verify the result.

AdvancedSONICLink Aggregation
11SONiC Anycast Gateway Configuration
SONiC Configuration Guide

SONiC Anycast Gateway Configuration

Configure a static anycast gateway in Enterprise SONiC so that multiple switches share the same default gateway IP and MAC address. This step-by-step guide covers the configuration, verification, and a failover test with packet capture.

AdvancedVLANAnycast GatewaySONIC
12SONiC MCLAG Configuration Guide
SONiC Configuration Guide

SONiC MCLAG Configuration Guide

Connect a server or switch to two SONiC switches with a single port channel. This step-by-step guide explains the roles of the peer link and keepalive link, shows how to configure an MCLAG domain in Enterprise SONiC, and tests failover with a live ping.

AdvancedSONICLink Aggregation
13SONiC VRRP Configuration Guide
SONiC Configuration Guide

SONiC VRRP Configuration Guide

Give your hosts a highly available default gateway with VRRP. This step-by-step guide shows how to configure a VRRP group, virtual IP, priority and preemption in Enterprise SONiC, then tests gateway failover and recovery in a live lab.

AdvancedVLANSONICVRRP
14SONiC Static Routing Configuration
SONiC Configuration Guide

SONiC Static Routing Configuration

Build end-to-end IP reachability with static routes in Enterprise SONiC. This step-by-step guide shows how to configure interfaces and static routes, read the routing table, test connectivity, and use default and floating static routes.

Getting StartedSONIC
15SONiC OSPF Configuration Guide
SONiC Configuration Guide

SONiC OSPF Configuration Guide

Set up dynamic routing with OSPFv2 in Enterprise SONiC. This step-by-step guide configures OSPF on a four-switch lab, explains how to read neighbor and routing tables, including ECMP and costs, and tests convergence after a link failure.

AdvancedOSPFSONIC
16SONiC BGP Configuration: iBGP and eBGP
SONiC Configuration Guide

SONiC BGP Configuration: iBGP and eBGP

Configure BGP in Enterprise SONiC step by step. This guide builds an iBGP full mesh over loopbacks, peers with an external AS through eBGP, uses next-hop-self on the border router, advertises networks, and explains how to read BGP sessions and tables.

AdvancedBGPSONIC
17SONiC BGP Unnumbered Configuration
SONiC Configuration Guide

SONiC BGP Unnumbered Configuration

Run BGP without IPv4 addresses on your point-to-point links. This guide explains how BGP unnumbered works with IPv6 link-local addresses and RFC 5549, and shows how to convert an eBGP session in Enterprise SONiC step by step, with verification.

AdvancedBGPBGP UnnumberedSONIC
18SONiC EVPN-VXLAN Configuration
SONiC Configuration Guide

SONiC EVPN-VXLAN Configuration

Extend Layer 2 across a routed spine-leaf fabric. This guide shows how to build an EVPN-VXLAN fabric in Enterprise SONiC: eBGP underlay, EVPN control plane, VTEPs and VLAN-to-VNI mapping, then how to verify the tunnels, EVPN routes and MAC learning.

AdvancedBGPL2VNISONICEVPNVXLAN
19SONiC EVPN-VXLAN Inter-VLAN Routing with Asymmetric IRB
SONiC Configuration Guide

SONiC EVPN-VXLAN Inter-VLAN Routing with Asymmetric IRB

Route between VLANs in an EVPN-VXLAN fabric without a central router. This guide adds a second L2VNI in Enterprise SONiC, configures a distributed anycast gateway on every leaf, and explains asymmetric IRB with a packet capture of the routed traffic.

AdvancedAnycast GatewaySONICEVPNVXLAN
20SONiC EVPN-VXLAN Symmetric IRB with L3VNI
SONiC Configuration Guide

SONiC EVPN-VXLAN Symmetric IRB with L3VNI

Route between VLANs through a tenant VRF and an L3VNI. This guide configures symmetric IRB in an Enterprise SONiC EVPN-VXLAN fabric, explains Type-2 and Type-5 routes and router MACs, and shows the L3VNI in a packet capture.

AdvancedBGPL3VNIAnycast GatewaySONICEVPN+1 more
21SONiC Multi-Site Data Center Interconnect (DCI)
SONiC Configuration Guide

SONiC Multi-Site Data Center Interconnect (DCI)

Interconnect two EVPN-VXLAN data centers while keeping them independent. This guide builds two Enterprise SONiC fabrics, then configures border leaves with an external IP and fabric-external BGP peering, and follows a packet across three VXLAN tunnels.

AdvancedBGPSONICEVPNVXLANDCI
22SONiC EVPN-VXLAN Multihoming
SONiC Configuration Guide

SONiC EVPN-VXLAN Multihoming

Connect a device to two leaves with an all-active LACP port channel and no peer link. This guide configures EVPN multihoming and uplink tracking in Enterprise SONiC, explains Ethernet segments, the DF and Type-1/Type-4 routes, and tests three failure scenarios.

AdvancedBGPL2VNIMulti-homingSONICEVPN+1 more
23Lab topology: DHCP server in a third-party container on an Enterprise SONiC switch
SONiC Configuration Guide

SONiC Third-Party Containers: Running a DHCP Server

Run your own applications on Enterprise SONiC with the third-party container framework. This guide installs a dnsmasq DHCP server with tpcm, explains why DHCP broadcasts do not reach the switch CPU by default and how to activate the DHCP trap, and validates a full DHCP exchange with a MikroTik client.

AdvancedSONIC