ipv6 address [address/prefix]
Assigns a 128-bit IPv6 address to an interface using Classless Inter-Domain Routing (CIDR) slash notation. Unlike IPv4, which rejects traditional subnet masks assigned concurrently on a single port, a single Cisco interface can happily hold dozens of distinct IPv6 addresses simultaneously.
Syntax Breakdown
CLI Deployment Scenarios
Scenario 1: Manual Global Unicast Provisioning
Deploying a standard, routable Global Unicast address (GUA) with a compressed interface ID.
Scenario 2: Hardcoding Link-Local Addresses
By default, the router automatically generates a complex Link-Local address (FE80::) using EUI-64 or random hashes. You can override this to make gateway documentation much easier.
CCNA Exam Gotchas
No Overwrite Behavior
In IPv4, typing a new ip address command automatically overwrites and deletes the old IP on that interface. IPv6 does not do this. If you type a new IPv6 address, it appends to the interface configuration, creating a multi-homed stack. If you made a typo, you must explicitly issue a no ipv6 address [old-address] to clean up the configuration file.