C
HAPTER
2
| Initial Switch Configuration
Basic Configuration
– 43 –
◆ Dynamic — The switch can send an IPv4 configuration request to
DHCP address allocation servers on the network, or can automatically
generate a unique IPv6 host address based on the local subnet address
prefix received in router advertisement messages.
MANUAL CONFIGURATION
You can manually assign an IP address to the switch. You may also need to
specify a default gateway that resides between this device and
management stations that exist on another network segment. Valid IPv4
addresses consist of four decimal numbers, 0 to 255, separated by periods.
Anything outside this format will not be accepted by the CLI program.
N
OTE
:
An IPv4 address for this switch is obtained via DHCP by default.
ASSIGNING AN IPV4 ADDRESS
Before you can assign an IP address to the switch, you must obtain the
following information from your network administrator:
◆ IP address for the switch
◆ Network mask for this network
◆ Default gateway for the network
To assign an IPv4 address to the switch, type
“ip setup ip-address ip-mask ip-router vid”
where “ip-address” is the switch’s IP address, “ip-mask” is the mask for the
network portion of the address, “ip-router” is the IP address of the default
gateway, and “vid” is the VLAN identifier for the interface to which this
address will be assigned. Press <Enter>.
>ip setup ?
Description:
------------
Set or show the IP setup.
Syntax:
-------
IP Setup [<ip_addr>] [<ip_mask>] [<ip_router>] [<vid>]
Parameters:
-----------
<ip_addr> : IP address (a.b.c.d), default: Show IP address
<ip_mask> : IP subnet mask (a.b.c.d), default: Show IP mask
<ip_router>: IP router (a.b.c.d), default: Show IP router
<vid> : VLAN ID (1-4095), default: Show VLAN ID
>ip setup 192.168.0.10 255.255.255.0 192.168.0.1 1
>