setting means that the IP address should be learned by DHCP. For example:
ip device add ether ether dhcp
Note that DHCP is not supported on all interface types. For more information, refer to ip device on page 80.
If the IP process is given a command line (a
For example, if the IP process is defined in the system file as:
Process ip is tcp_ip/ip //bridge //lec1
(and //bridge and //lec1 can be opened), then the equivalents of the commands:
device add ether1 ether //bridge
device add ether2 ether //lec1
will be processed, in addition to the others above. Configuration saving saves the interface configuration.
10.7.3 Example
mymachine> ip device |
|
|
| |
# | type | dev file | IP address | |
device ether | ether | //edd mtu 1500 | 192.168.2.1 | |
device flane | ether | //lec1 mtu 1500 | 192.168.55.1 | |
mymachine> ip device add loop loop 127.0.0.1 | ||||
mymachine> ip device delete flane |
| |||
mymachine> ip device |
|
|
| |
# | type | dev file | IP address | |
device ether | ether | //edd | mtu 1500 | 192.168.2.1 |
device flane | ether | //lec1 mtu 1500 | 192.168.55.1 | |
device loop | loop | - | mtu 2048 | 127.0.0.1 |
10.8 disable
10.8.1 Syntax
disable [<i/f>]
10.8.2 Description
Disables all interfaces, or just a specified interface.
10.8.3 Example
mymachine> ip disable flane
mymachine> ip device
# | type dev file | IP address |