197
Chapter 14: Command Line Configuration
# config -s config.console.flow=Hardware
# config -s config.console.initstring=ATQ0V1H0
# config -s config.console.ppp.enabled=on
# config -s config.console.ppp.callback.enabled=on
# config -s config.console.ppp.callback.phone1=0800223665
# config -s config.console.ppp.username=user1
# config -s config.console.ppp.password=secret
To make the dialed connection the default route:
# config -s config.console.ppp.defaultroute=on
Pleasenotethatsupportedauthenticationtypesare'None','PAP','CHAP'and'MSCHAPv2'.
Supportedserialportbaud-ratesare'9600','19200','38400','57600','115200',and'230400'.
Supportedparityvaluesare'None','Odd','Even','Mark'and'Space'.
Supporteddata-bitsvaluesare'8','7','6'and'5'.
Supportedstop-bitsvaluesare'1','1.5'and'2'.
Supportedow-controlvaluesare'Hardware','Software'and'None'.
Ifyoudonotwishtouseout-of-banddial-inaccesspleasenotethattheprocedureforenablingstart-upmessagesonthe
consoleportiscoveredinChapter15-AccessingtheConsolePort.
The following command will synchronize the live system with the new configuration:
# config –a
14.1.20 DHCP server
ToenabletheDHCPserverontheconsolemanagementLAN,withsettings:
Defaultleasetime 200000seconds
Maximum lease time 300000 seconds
DNSserver1 192.168.2.3
DNSserver2 192.168.2.4
Domainname company.com
Defaultgateway 192.168.0.1
IPpool1startaddress 192.168.0.20
IPpool1endaddress 192.168.0.100
ReservedIPaddress 192.168.0.50
MACtoreserveIPfor 00:1e:67:82:72:d9
Nametoidentifythishost John-PC
Issue the commands:
# config -s config.interfaces.lan.dhcpd.enabled=on
# config -s config.interfaces.lan.dhcpd.defaultlease=200000
# config -s config.interfaces.lan.dhcpd.maxlease=300000
# config -s config.interfaces.lan.dhcpd.dns1=192.168.2.3
# config -s config.interfaces.lan.dhcpd.dns2=192.168.2.4
# config -s config.interfaces.lan.dhcpd.domain=company.com
# config -s config.interfaces.lan.dhcpd.gateway=192.168.0.1
# config -s config.interfaces.lan.dhcpd.pools.pool1.start=192.168.0.20
# config -s config.interfaces.lan.dhcpd.pools.pool1.end=192.168.0.100
# config -s config.interfaces.lan.dhcpd.pools.total=1
# config -s config.interfaces.lan.dhcpd.staticips.staticip1.ip=192.168.0.50
# config -s config.interfaces.lan.dhcpd.staticips.staticip1.mac=00:1e:67:82:72:d9
# config -s config.interfaces.lan.dhcpd.staticips.staticip1.host=John-PC
# config -s config.interfaces.lan.dhcpd.staticips.total=1
The following command will synchronize the live system with the new configuration:
# config –a