IPv4 101

Setting an IP Address

1
R(config)#ip address IP-ADDR NETMASK
Copied!
Any combination of IP-ADDR and NETMASK can be used as long as the host portion of the address is not all zeros. One exception is allowed, when using a /31 mask. By default, the router will accept combinations that result in a subnet portion of the address with all zeros, but this behavior can be disabled using:
1
R(config)#no ip subnet-zero
Copied!

Secondary IP Addresses

Multiple IP Addresses can be configured on an interface using the secondary keyword:
1
R(config-if)# ip address IP-ADDR NETMASK secondary
Copied!

IP Unnumbered

This feature allows a router to use the IP address of another interface instead of using a new IP Address. It can only be configured on point-to-point interfaces
1
R(config-if)# ip unnumbered INTERFACE
Copied!
Last modified 2mo ago