
Basic Switch Configuration
40
an IP address, which is also the IP address of the switch. All VLAN interface related
configuration commands can be configured under VLAN Mode. Switch provides three IP
address configuration methods:
Manual
BOOTP
DHCP
Manual configuration of IP address is assign an IP address manually for the switch.
In BOOTP/DHCP mode, the switch operates as a BOOTP/DHCP client, send
broadcast packets of BOOTPRequest to the BOOTP/DHCP servers, and the
BOOTP/DHCP servers assign the address on receiving the request. In addition, switch
can act as a DHCP server, and dynamically assign network parameters such as IP
addresses, gateway addresses and DNS server addresses to DHCP clients DHCP Server
configuration is detailed in later chapters.
2.3.1
Switch IP Addresses Configuration Task List
1
.
Enable VLAN port mode
2
.
Manual configuration
3
.
BOOTP configuration
4
.
DHCP configuration
1. Enable VLAN port mode
Command
Explanation
Global Mode
interface vlan
<vlan-id>
no interface vlan
<vlan-id>
Create VLAN interface (layer 3 interface);
the no command deletes the VLAN
interface.
2. Manual configuration
Command
Explanation
VLAN Interface Mode
ip
address
<ip_address>
<mask>
[secondary]
no ip address
<ip_address>
<mask>
[secondary]
Configure IP address of VLAN interface;
the no command deletes IP address of
VLAN interface.
ipv6
address
<ipv6-address
/
prefix-length>
[eui-64]
no
ipv6
address
<ipv6-address
/
Configure
IPv6
address,
including
aggregation global unicast address, local
site address and local link address. The no