User`s manual
22
DWS-1008 User’s Manual
D-Link Systems, Inc.
Configuration (continued)
Conguration
Conguring IP Connectivity
To congure IP connectivity:
1. Congure a VLAN, assign a port to the VLAN that can provide IP connectivity through
the network for administrative purposes, and congure an IP address on the VLAN. (See
“Conguring VLANs and IP Addresses” below.)
2. Congure a default route. (See “Conguring a Default Route” on page 28.)
3. Test the IP conguration. (See “Verifying IP Connectivity” on page 29.)
Conguring VLANs and IP Addresses
Any or all VLANs on the switch can have an IP address. User trafc also requires VLANs,
although you do not need to congure every user’s VLAN on every DWS-1008 switch.
To congure 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 congure a VLAN named mgmt and two additional VLANs over an
802.1Q trunk link for network trafc:
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.