Interface
ip address <ip> <mask>
Assign an IPv4 address. Use dotted-decimal mask, not prefix length.
Works on: RouterMode: iface
Example
R1(config-if)# ip address 10.0.0.1 255.255.255.0Run this command live
Don't just read it — type ip address <ip> <mask> in a real network simulator in your browser and watch it take effect. No install, no account needed to start.
Frequently asked
What does the "ip address <ip> <mask>" command do?
Assign an IPv4 address. Use dotted-decimal mask, not prefix length.
Example of "ip address <ip> <mask>"
R1(config-if)# ip address 10.0.0.1 255.255.255.0