Setup SONiC on Cisco 8000 Series Routers

After logging into the router, you can set up the SONiC system using the following methods:

  • Command Line Interface (CLI)
  • Configuration JSON file config_db.json

SONiC manages configuration using a database that allows applications to generate the running configuration. The configurations are stored in a JSON file config_db.json located at /etc/sonic/ in the image. When the system boots, configurations are loaded from the JSON file into the database. The content of the database is not written back into the file automatically. You must manually save the configuration to the file. The content in the JSON file is the initial configuration, and the content in the database is the running configuration. This document explains setting up the SONiC system using CLI.

Note: You must have root user privileges to run the configuration commands. To obtain the root user privileges, either use sudo keyword before the configuration commands or enter the root prompt using sudo -i command.