Use the following command to add addresses to or delete addresses from an interface:
ip address
- host1(config)#interface fastEthernet 0/0
- host1(config-if)#ip address 192.168.2.77 255.255.255.0
- host1(config-if)#ip address 172.31.7.22 255.255.255.0
secondary
- host1(config-if)#ip address 10.8.7.22 255.255.255.0
secondary
![]() |
Note: You can use this command in Interface Configuration mode, Subinterface Configuration mode, or Profile Configuration mode. |