IPv4 addressing
Local IPv4 addresses are a top-level command set, separate from sub-interfaces. An interface may carry one primary plus any number of secondaries. These are L3 host addresses on the box itself, not routed subnets, and they apply live on commit. IPv6 addressing has its own page.
Local IPv4 addressing
An interface may carry multiple addresses — one primary plus secondaries. The first non-secondary address on an interface is its primary: the source for self-originated traffic and the box's WAN ARP and ICMP identity. Removing the primary promotes the next remaining address on that interface. These apply live on commit with no restart.
ip address add <if> <ip/prefix>
ip address add <if> <ip/prefix> secondary
ip address remove <if> <ip/prefix>
ip address add wan0 203.0.113.6/30
commit ; save
show ip address [<if>] # role: primary / secondary
WAN address and default route
Egress is derived from the connected subnet, so there is no separate WAN or LAN concept in routing — the default gateway is simply the 0.0.0.0/0 route. See the Routing page for the live resolve-then-swap re-point.
# ip.conf ip wan0 203.0.113.6/30 # routing.conf — next-hop only route default 203.0.113.5