Technician's Handbook
Layer 2 Switch Settings Example
Table 49 and Table 50 below are example of settings on
a Cisco and an HP Layer 2 switch for this example. See
Figure 19 for the port numbers.
Table 49. Cisco Layer 2 Switch Settings for Network
Port
Table 50. HP Layer 2 Switch Settings for Typical
Port
220
These settings also apply for the other
Note:
network configuration examples.
Configuration Examples
Use
Command
A
Access
None (by default, all ports belong to
port for
VLAN 1)
B
VLAN 1
C
Access
Router(config-if)#switchport mode
port for
access
VLAN 2
Router(config-if)#switchport access
D
vlan 2
Trunk
Router(config)#interface fast 0/5
port with
Router(config-if)#switchport mode
Dot1q for
E
trunk
IP Phone
Router(config-if)#switchport trunk
encapsulation dot1q
Configurations
Use
A
Access port for
VLAN 1
B
C
Access port for
VLAN 2
D
E
Trunk port
Command (on HP VLAN menu)
VLAN 1 = untagged
VLAN 2 = NO
VLAN 1 = NO
VLAN 2 = untagged
VLAN 1 = untagged
VLAN 2 = tagged