Administrator Guide

Switch Management Commands 1994
Example
The following example configures a source interface for a VLAN interface
that obtains its address via DHCP:
console#configure
console(config)#interface vlan 1
console(config-if-vlan1)#ip address dhcp
console(config-if-vlan1)#exit
console(config)#ip name-server source-interface vlan 1
This example configures a source interface for a loopback interface. Using a
loopback address is the recommended method for assigning a source
interface.
console#configure
console(config)#interface loopback 0
console(config-if-vlan1)#ip address 129.168.0.13 /32
console(config-if-vlan1)#exit
console(config)#ip name-server source-interface vlan 1
ipv6 address (Interface Configuration)
Use the ipv6 address command to set the IPv6 address of an interface. Use
the no form of this command to reset the IPv6 address to the default.
Syntax
ipv6 address {prefix/prefix-length [eui64] | autoconfig | dhcp}
no ipv6 address
prefix The IPv6 address to be configured.
prefix-length — Designates how many of the high-order contiguous bits of
the address make up the prefix.
eui64 The optional EUI-64 field designates that IPv6 processing on the
interfaces is enabled using an EUI-64 interface ID in the low order 64 bits
of the address. If this option is used, the value of prefix_length must be 64
bits.
autoconfig Use this keyword to enable IPv6 address auto configuration
mode.
dhcp Use this keyword to obtain an IPv6 address via DHCP.