196
Chapter 14: Command Line Configuration
Note:NotalldeviceshaveamanagementLANinterface.
To configure a failover device in case of an outage:
# config -s config.interfaces.wan.failover.address1='ip address'
# config -s config.interfaces.wan.failover.address2='ip address'
# config -s config.interfaces.wan.failover.interface=[ eth1 | console | modem ]
The network interfaces can also be configured automatically:
# config -s config.interfaces.wan.mode=dhcp
# config -s config.interfaces.lan.mode=dhcp
The following command will synchronize the live system with the new configuration:
# /bin/config –-run=ipconfig
The following command will synchronize the live system with the new configuration:
# config -r ipconfig
14.1.18 Date & Time settings
ToenableNTPusingaserveratpool.ntp.orgissuethefollowingcommands:
# config -s config.ntp.enabled=on
# config -s config.ntp.server=pool.ntp.org
Alternatively,youcanmanuallychangetheclocksettings:
To change running system time:
# date 092216452005.05 Format is MMDDhhmm[[CC]YY][.ss]
Then the following command will save this new system time to the hardware clock:
# /bin/hwclock -systohc
Alternatively,tochangethehardwareclock:
# /bin/hwclock -- set --date=092216452005.05 Format is MMDDhhmm[[CC]YY][.ss]
Then the following command will save this new hardware clock time as the system time:
# /bin/hwclock -hctosys
To change the timezone:
# config -s config.system.timezone=US/Eastern
The following command will synchronize the live system with the new configuration:
# config -r time
14.1.19 Dial-in settings
Toenabledial-inaccessontheDB9serialportfromthecommandlinewiththefollowingattributes:
LocalIPAddress 172.24.1.1
RemoteIPAddress 172.24.1.2
Authentication Type: MSCHAPv2
Serial Port Baud Rate: 115200
Serial Port Flow Control: Hardware
Custom Modem Initialization: ATQ0V1H0
Callbackphone 0800223665
Usertodialas user1
Password for user secret
Run the following commands:
# config -s config.console.ppp.localip=172.24.1.1
# config -s config.console.ppp.remoteip=172.24.1.2
# config -s config.console.ppp.auth=MSCHAPv2
# config -s config.console.speed=115200