Assigning a 127-bit subnet mask to an IPv6 address
To conserve address space, you can assign a 127-bit subnet mask to an IPv6 address.
You can configure an IPv6 address with a 127-bit subnet mask on any interface.
- On device 1, enter global configuration mode.
- Enter interface configuration mode.
- Configure an IPv6 address with a 127-bit subnet mask.
- On device 2, enter global configuration mode.
- Enter interface configuration mode.
- Configure an IPv6 address with a 127-bit subnet mask.
The following example assigns a 127-bit subnet mask to an IPv6 address on two devices.
device1# configure terminal device1(config)# interface ethernet 1/1/5 device1(config-if-e1000-1/1/5)# ipv6 address 2001:1::0/127 device2# configure terminal device2(config)# interface ethernet 1/1/5 device2(config-if-e1000-1/1/5)# ipv6 address 2001:1::1/127