mac

Commands for Layer 3 Management
271
mask, dotted decimal notation; [secondary] indicates that the IP address is configured
as secondary IP address.
Command Mode: VLAN interface configuration mode
Default: The system default is no IP address configuration.
Usage Guide: This command configures IP address on VLAN interface manually. If
optional parameter secondary is not configured, then it is configured as the primary IP
address of VLAN interface; if optional parameter secondary is configured, then that
means the IP address is the secondary IP address of VLAN. One VLAN interface can
only have one primary IP address and more than one secondary IP addresses. Primary
IP and Secondary IP all can be used on SNMP/Web/Telnet management. Furthermore,
the switch also provides BOOTP/DHCP manner to get IP address.
Example: The IP address of switch VLAN1 interface is set to 192.168.1.10/24.
Switch(Config-if-Vlan1)#ip address 192.168.1.10 255.255.255.0
21.2.9 ip default-gateway
Command: ip default-gateway <A.B.C.D>
no ip default-gateway <A.B.C.D>
Function: Configure the default gateway of the router. The no command cancels the
configuration.
Parameter: <A.B.C.D> is gateway address, for example 10.1.1.10.
Command mode: Global mode.
Default: There is no default gateway.
Usage Guide: Configure the default gateway of the router to specify the default next hop
address to which the packets will be sent.
Example:
Specify a default gateway:
Switch(config)# ip default-gateway 10.1.1.10
Cancel the setting of a default gateway:
Switch(config)# no ip default-gateway 10.1.1.10
21.2.10 ip route
This command is not supported by the switch.
21.2.11 ipv6 address
Command: ipv6 address <ipv6-address|prefix-length> [eui-64]
no ipv6 address <ipv6-address|prefix-length> [eui-64]