
2-24 Command Line Interface Commands Reference
interface ethernet id ip address [{
These commands allow you to set, delete, or show the IP subnet(s) of an Ethernet interface. If the keyword secondary is specified in the first command, the subnet is appended to the list of subnets (assuming that all of the allowed subnets have not yet been configured– the router supports up to eight). If the keyword secondary is not specified, the primary subnet configuration is replaced with the specified values. The mask may be specified either as a slash followed by the number of
The no interface ethernet id ip address command allows you to delete a particular subnet, all secondary subnets, or all subnets associated with the specified Ethernet interface.
Examples:
The following are equivalent ways to set the primary subnet of the Ethernet interface to 192.168.1.1 with a Class C subnet mask:
interface ethernet 0 ip address 192.168.1.1/24
interface ethernet 0 ip address 192.168.1.1 255.255.255.0
To set a secondary subnet of the Ethernet interface to 207.1.1.16/28 (with four host bits):
interface ethernet 0 ip address 207.1.1.16/28 secondary
To delete a particular subnet from the list of subnets, specify the particular subnet:
no interface ethernet 0 ip address 207.1.1.16/28
To delete all secondary subnets:
no interface ethernet 0 ip address secondary
To delete all subnets:
no interface ethernet 0 ip address
To show the IP subnets of the Ethernet interface:
show interface ethernet 0 ip address
interface ethernet id ip dhcp client mode { standard
These commands allow you to set or show the router’s DHCP mode, whether standard or
The connection profile, default profile, and IP configuration structures now include a dhcp client mode setting that selects between the standard RFC 2131