(config)> no service dhcp
(config)> service no dhcp
2.4 Multiple input
Many commands have the property of
, which means that multiple input of a
command has the same effect as as the single input. For example, entering service http
adds a single line “
service http
” to the current settings, and re-entering does not change
anything.
However, some of the commands allow you to add not a single, but multiple records, if
they are entered with different arguments. For example, static routing table entries ip
route or filters access-list are added sequentially and appear in the settings as a list:
Example 2.1. Using a command with multiple input
(config)> ip route 1.1.1.0/24 PPTP0
Network::RoutingTable: Added static route: 1.1.1.0/24 via PPTP0.
(config)> ip route 1.1.2.0/24 PPTP0
Network::RoutingTable: Added static route: 1.1.2.0/24 via PPTP0.
(config)> ip route 1.1.3.0/24 PPTP1
Network::RoutingTable: Added static route: 1.1.3.0/24 via PPTP1.
(config)> show running-config
...
ip route 1.1.1.0 255.255.255.0 PPTP0
ip route 1.1.2.0 255.255.255.0 PPTP0
ip route 1.1.3.0 255.255.255.0 PPTP1
...
Records from such tables can be removed one by one, using prefix no and arguments to
identify the record you want to remove:
(config)> no ip route 1.1.2.0/24
Network::RoutingTable: Deleted static route: 1.1.2.0/24 via PPTP0.
(config)> show running-config
...
ip route 1.1.1.0 255.255.255.0 PPTP0
ip route 1.1.3.0 255.255.255.0 PPTP1
...
2.5 Saving to startup settings
Current and startup settings are stored in the files running-config and startup-config,
respectively. To save the current settings in the non-volatile memory, copy them as shown
below:
(config)> copy running-config startup-config
Copied: running-config -> startup-config
Command Reference Guide — Keenetic Extra (KN-1710)
24
Chapter 2 Introduction to the CLI
Summary of Contents for EXTRA KN-1710
Page 2: ......
Page 6: ...Command Reference Guide Keenetic Extra KN 1710 6 Contents Overview...
Page 20: ...Command Reference Guide Keenetic Extra KN 1710 20 Chapter 1 Product Overview...
Page 26: ...Command Reference Guide Keenetic Extra KN 1710 26 Chapter 2 Introduction to the CLI...
Page 322: ...Command Reference Guide Keenetic Extra KN 1710 322 Chapter 3 Command Reference...
Page 332: ...Command Reference Guide Keenetic Extra KN 1710 332 Glossary...
Page 348: ...Command Reference Guide Keenetic Extra KN 1710 348 Appendix C SNMP MIB...