User`s manual

22
DWS-1008 User’s Manual
D-Link Systems, Inc.
Configuration (continued)
Conguration
Conguring IP Connectivity
To congure IP connectivity:
1. Congure a VLAN, assign a port to the VLAN that can provide IP connectivity through
the network for administrative purposes, and congure an IP address on the VLAN. (See
“Conguring VLANs and IP Addresses” below.)
2. Congure a default route. (See “Conguring a Default Route” on page 28.)
3. Test the IP conguration. (See “Verifying IP Connectivity” on page 29.)
Conguring VLANs and IP Addresses
Any or all VLANs on the switch can have an IP address. User trafc also requires VLANs,
although you do not need to congure every user’s VLAN on every DWS-1008 switch.
To congure a VLAN and an IP address, use the following commands:
set vlan vlan-num name name
set vlan vlan-id port port-list [tag tag-value]
set interface vlan-id ip {ip-addr mask | ip-addr/mask-length}
Note: The vlan-id parameter can be the VLAN number or the VLAN name.
To verify the changes, use the following commands:
show vlan config
show interface
The following commands congure a VLAN named mgmt and two additional VLANs over an
802.1Q trunk link for network trafc:
DWS-1008# set vlan 2 name mgmt
success: change accepted.
DWS-1008# set vlan mgmt port 5
success: change accepted.
DWS-1008# set vlan 3 name red
success: change accepted.
DWS-1008# set vlan red port 5 tag 30
success: change accepted.
DWS-1008# set vlan 4 name blue
success: change accepted.
DWS-1008# set vlan blue port 5 tag 20
success: change accepted.