S320 OCS Getting Started Guide
19 of 42
When run with the autoconf option, the gxc-config-network script reads all the
input values from the config file and applies the settings to the system. It will abort the
operation if any of the configuration values are not valid.
3.4.1.1 Sample Configuration Script
Following is a sample configuration script with bonding enabled and running autoconf:
#Config file start
# Comments start with a # in the config file.
HOSTNAME=FactorySwitch
BONDING_ENABLE=yes
bond0_IPADDR=192.168.0.2
bond0_NETMASK=255.255.255.0
bond0_GATEWAY=192.168.0.1
PRIMARY_INTERFACE=ethA
ethB_ENABLED=enabled
ethB_IPADDR=0.0.0.0
ethB_NETMASK=0.0.0.0
ethB_GATEWAY=0.0.0.0
ethA_ENABLED=enabled
ethA_IPADDR=0.0.0.0
ethA_NETMASK=0.0.0.0
ethA_GATEWAY=0.0.0.0
PRIMARY_DNS=0.0.0.0
SECONDARY_DNS=0.0.0.0
TERTIARY_DNS=0.0.0.0
DNS_SEARCH_PATH=Factory.default
PRIMARY_NTP_SERVER=0.0.0.0
SECONDARY_NTP_SERVER=0.0.0.0
TERTIARY_NTP_SERVER=0.0.0.0
UTC_TIME=no