294
10.2.2.1 Ipv4 Address Configuration
Configure the IPv4 address of three-layer interface
Command
Explanation
Interface Mode
ip address <ip-address> <mask> [secondary]
no ip address [<ip-address> <mask>]
Configure IP address of VLAN
interface; the
no ip address
[<ip-address> <mask>]
command cancels IP address
of VLAN interface.
10.2.2.2 Command For Ipv4 Address
10.2.2.2.1 ip address
Command:ip address <ip-address> <mask> [secondary]
no ip address [<ip-address> <mask>] [secondary]
Function:
Set IP address and net mask of switch; the “
no ip address [<ip-address>
<mask>] [secondary]
” command deletes the IP address configuration.
Parameter: <ip-address>
is IP address, dotted decimal format;
<mask>
is subnet mask,
dotted decimal format; what
[secondary]
represents means the configured IP address is
slave IP address.
Command Mode:
Interface 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 master IP
address of VLAN interface; if optional parameter
secondary
is configured, then that
means the IP address is the slave IP address of VLAN. One VLAN interface can only
have one master IP address and more than one slave IP addresses. Master IP and Slave
IP all can be used on SNMP/Web/Telnet management. Furthermore, the switch also
provides BOOTP/DHCP manner to capture 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
10.2.3 IPv6 Configuration
The configuration Task List of IPv6 is as follows:
1. IPv6
basic
configuration
(
1
)
Globally enable IPv6
(
2
)
Configure interface IPv6 address