mac

228
Switch(Config-if-Vlan1)#ip address 192.168.1.10 255.255.255.0
10.2.7 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
10.2.8 ip route
This command is not supported by the switch.
10.2.9 ipv6 address
Command: ipv6 address <ipv6-address|prefix-length> [eui-64]
no ipv6 address <ipv6-address|prefix-length> [eui-64]
Function: Configure aggregately global unicast address, site-local address and link-local
address for the interface.
Parameter: Parameter <ipv6-address> is the prefix of IPv6 address, parameter
<prefix-length> is the prefix length of IPv6 address, which is between 3-128, eui-64
means IPv6 address is generated automatically based on eui64 interface identifier of the
interface.
Command Mode: Interface Configuration Mode.
Default: None.
Usage Guide: IPv6 address prefix can not be multicast address or any other specific IPv6
address, and different layer 3 interfaces can not configure the same address prefix. For
global unicast address, the length of the prefix must be greater than or equal to 3. For