Startup & Running Configuration

Table of Contents

Startup Configuration

Running Configuration

Example model & SONiC version:

  • Aurora 830, Aurora 721, Aurora 621
  • Netberg SONiC: sonic-broadcom-202311-20240802

Startup Configuration

show startupconfiguration bgp

This command displays the startup configuration for the BGP module.

show startupconfiguration bgp

Example:

admin@sonic:~$ show startupconfiguration bgp
Routing-Stack is: frr
!
! Zebra configuration saved from vty
!   2024/10/29 09:11:49
!
frr version 8.5.1
frr defaults traditional
!
hostname sonic
password zebra
enable password zebra
log syslog informational
log facility local4
!
!
!
ip prefix-list PL_LoopbackV4 seq 5 permit 10.1.0.1/32
!
bgp community-list standard allow_list_default_community seq 5 permit no-export
bgp community-list standard allow_list_default_community seq 10 permit 5060:12345
!
!
route-map RM_SET_SRC permit 10
exit
....

Running Configuration

This sub-section has show commands for displaying the running configuration for the following modules:

  1. bgp
  2. interfaces
  3. ntp
  4. snmp
  5. all
  6. acl
  7. ports
  8. syslog

show runningconfiguration all

This command displays the entire running configuration.

show runningconfiguration all

Example:

admin@sonic:~$ show runningconfiguration all

show runningconfiguration bgp

This command displays the running configuration of the BGP module.

show runningconfiguration bgp

Example:

admin@sonic:~$ show runningconfiguration bgp
Building configuration...
Current configuration:
!
frr version 8.5.1
frr defaults traditional
hostname sonic
log syslog informational
log facility local4
agentx
hostname nba621-1
no service integrated-vtysh-config
!
password zebra
enable password zebra
!
ip prefix-list PL_LoopbackV4 seq 5 permit 10.1.0.1/32
!
bgp community-list standard allow_list_default_community seq 5 permit no-export
bgp community-list standard allow_list_default_community seq 10 permit 5060:12345
!
...

show runningconfiguration interfaces

This command displays the running configuration for the “interfaces”.

show runningconfiguration interfaces

Example:

admin@sonic:~$ show runningconfiguration interfaces

show runningconfiguration ntp

This command displays the running configuration of the NTP module.

show runningconfiguration ntp

Example:

admin@sonic:~$ show runningconfiguration ntp
NTP Servers
-------------
1.1.1.1
2.2.2.2

show runningconfiguration syslog

This command displays the running configuration of the syslog module.

show runningconfiguration syslog

Example:

admin@sonic:~$ show runningconfiguration syslog
Syslog Servers
----------------
4.4.4.4
5.5.5.5

show runningconfiguration snmp

This command displays the running configuration of the snmp module.

show runningconfiguration snmp

Example:

admin@sonic:~$ show runningconfiguration snmp

show runningconfiguration acl

This command displays the running configuration of the acls

show runningconfiguration acl

Example:

admin@sonic:~$ show runningconfiguration acl

show runningconfiguration ports

This command displays the running configuration of the ports

show runningconfiguration ports [<portname>]

Examples:

admin@sonic:~$ show runningconfiguration ports
{
    "Ethernet0": {
        "admin_status": "up",
        "alias": "Eth0(Port0)",
        "index": "0",
        "lanes": "1",
        "link_training": "off",
        "mtu": "9100",
        "speed": "10000",
        "subport": "0"
    },
        "Ethernet1": {
        "admin_status": "up",
        "alias": "Eth1(Port1)",
        "index": "1",
        "lanes": "2",
        "mtu": "9100",
        "speed": "10000",
        "subport": "0"
    }
...
}
admin@sonic:~$ show runningconfiguration ports Ethernet0
{
    "Ethernet0": {
        "admin_status": "up",
        "alias": "Eth0(Port0)",
        "index": "0",
        "lanes": "1",
        "link_training": "off",
        "mtu": "9100",
        "speed": "10000",
        "subport": "0"
    }
}
NEWS

Latest news