Home > Networking Solutions > Enterprise/Data Center Networking Solutions > Enterprise SONiC Networking Solutions > Guides > Zero Touch Deployment of Open Dell Switches with SONiC > SONiC config_db
SONiC stores its configuration default in /etc/sonic/config_db.json. You can merge your settings into the configuration, or you can overwrite the file completely. The settings of this file are in json. The settings in the following example were prepared to be merged into the default configuration. Keys that are already defined in the on-box configuration are replaced by the ones in the ZTP prepared config file. Store this file as: /tftpboot/sonic/config/first_boot_config.json.
Note: Keep in mind that the initial config is only a staging config. Normally, the use case is to have a secure minimum configuration loaded, which ensures that the switch can be managed remotely. You could set specific usernames or passwords, setup or specific access-lists, or protocol activation as a minimum. Then, finish the final configuration with a configuration controller like Ansible or a REST API client.
{
"MGMT_PORT": {
"eth0": {
"admin_status": "up",
"autoneg": "true",
"description": "dhcp managed interface",
"mtu": "1500",
"speed": "1000"
}
},
"DEVICE_METADATA": {
"localhost": {
"hostname": "ztp-config-db-staged"
}
},
"COREDUMP": {
"config": {
"enabled": "true"
}
},
"VRF": {
"default": {
"enabled": "true"
}
},
"MGMT_VRF_CONFIG": {
"vrf_global": {
"mgmtVrfEnabled": "false"
}
},
"SSH_SERVER_VRF": {
"default": {
"port": "22"
}
}
}