Command Reference NSM Commands
No gateway IP address is configured by default.
Global configuration mode
When the device does not know the destination address of a packet, the device will forward the packet to
the default gateway.
The following example sets the IP address of default gateway to 192.168.1.1.
ip default-gateway 192.168.1.1
Use this command to configure the default network globally. Use the no or default form of this
command to restore the default setting.
ip default-network network
no ip default-network network
default ip default-network network
The default is 0.0.0.0/0.
Global configuration mode
The goal of this command is to generate the default route. The default network must be reachable in the
routing table, but not the directly connected network.
The default network always starts with an asterisk (“*”), indicating that it is the candidate of the default
route. If there is connected route and the route without the next hop in the default network, the default
route must be a static route.
The following example sets 192.168.100.0 as the default network. Since the static route to the network is
configured, the device will automatically generate a default route.
ip route 192.168.100.0 255.255.255.0 serial 0/1