Chapter 5
60
It is necessary to save the configuration (e.g. with ip config
save) and restart the system (e.g. with ip restart). Device will
display both the current interfaces and those that have been
configured but are not yet in effect. (Other commands apply
only to the devices in effect, rather than those configured.
When adding a device, one may need to issue the device add
command, then the config save and reboot, then issue any other
configuration command that depend on the existence of the
device, and config save again).
5.4.7.3
disable
Syntax:
disable [<i/f>]
Description:
Disables all interfaces, or just a specified interface.
Example:
mymachine> ip disable vlane
mymachine> ip device
# typedevfileIP address
device ether ether //nice mtu 1500192.168.2.1
device vlane ether //lane mtu1500 192.168.55.1# DISABLED
5.4.7.4
enable
Syntax:
enable [<i/f> [mtu <size>] [<IP address>]]
Description:
Enables all interfaces, or just a specified interface. Can also be
used to set the MTU and IP address on an interface when
enabling it (or change them on an interface that is already
enabled); see the device command for details. Configuration
saving saves the MTU and IP addresses, but not the disabled/
enabled state.
Example:
mymachine> ip enable vlane 192.168.56.3
ip/vlane: IP address 192.168.56.3
mymachine> ip device
# typedevfileIP address
device etherether//nicemtu 1500 192.168.2.1