Use this command to define an IPv6 general prefix.
name | Specifies the name assigned the general prefix. |
prefix/length | Specifies the prefix and length of the IPv6 network assigned to the general prefix. |
None.
Global Configuration.
The general prefix is an ease of use feature that allows an assigned name to represent a network prefix from which longer IPv6 addresses can be configured. Network renumbering is simplified by changing the portion of addresses to which the general prefix is assigned, by redefining the general prefix.
When using general prefix to configure an IPv6 address, you can extend the network prefix by adding to the length specified in the ipv6 address command. See ipv6 address for command details.
If you delete the general prefix, any IPv6 addresses based upon the general prefix remain. Use the no ipv6 address command to remove the IPv6 address.
The S- K- and 7100-Series supports the configuration of up to 64 general prefixes on a system.
The following example creates a general prefix named “Doc-Prefix” with a prefix value of 2001:11ac:fd34::/48 and assigns the IPv6 address 2001:11ac:fd34:50:0:0:abcd:33 to VLAN 51. The general prefix Doc-Prefix is followed by ::50:0:0:abcd:33/64. The subnet length is changed to /64 adding :50 to the general prefix to create a network prefix of 2001:11ac:fd34:50/64 for this IPv6 address:
System(su)->configure System(su-config)->ipv6 general-prefix Doc-Prefix 2001:11ac:fd34::/48 System(su-config)->show ipv6 general-prefix ipv6 general-prefix Doc-Prefix 2001:11ac:fd34::/48 System(su-config)->interface vlan 51 System(su-config-intf-vlan.0.51)->ipv6 address Doc-Prefix ::50:0:0:abcd:33/64 System(su-config-intf-vlan.0.51)->show ipv6 interface vlan.0.51 vlan.0.51 is Operationally down, Administratively down IPv6 is enabled link-local address is fe80::211:88ff:fe7c:32c1%vlan.0.51 Global unicast address(es): 2001:11ac:fd34:50:0:0:abcd:33, subnet is 2001:11ac:fd34:50::/64 ... System(su-config-intf-vlan.0.51)->