279
1.877.877.2269
BLACKBOX.COM
NEED HELP?
LEAVE THE TECH TO US
LIVE 24/7
TECHNICAL
SUPPORT
1.877.877.2269
CHAPTER 15: CONFIGURATION FROM THE COMMAND LINE
Run the following 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 -r auth
15.1.20 SERVICES
You can manually enable or disable network servers from the command line. For example, if you wanted to guarantee the following
server configuration:
TABLE 15-17. SERVER CONFIGURATION
SERVER
STATE
HTTP server
enabled
HTTPS server
disabled
Telnet server
disabled
SSH server
enabled
SNMP server
disabled
Respond to ICMP echo requests (Ping replies)
disabled
TFTP server
enabled