The following commands are used for IP addressing and subnetting:
| Command | Description |
|---|---|
ip address <ip-value> <subnet-value> |
Assigns an IP and subnet mask |
show ip interface <interface-number> |
Displays the status of a network interface as well as a detailed listing of its IP configurations and related characteristics |
show ip interface brief |
Provides a concise summary of the IP interface status and configuration |
ip address <ip-value> <subnet-value> secondary |
Assigns a secondary IP address |
no ip address |
Removes an IP address |
The output below shows the result from the show ip interface brief command:
NorthOfficeRouter#show ip interface brief Protocol
Interface IP-Address OK? Method Status down
GigabitEthernet0/0/0 unassigned YES unset administratively down down
GigabitEthernet0/0/1 192.168.1.1 YES manual up down down
GigabitEthernet0/0/2 172.16.0.254 YES manual administratively down down
Vlan1 unassigned YES unset administratively
NorthOfficeRouter#