Programming instructions
319
Typical Network Configurations
Layer 2 Switch Settings (Example)
Table 87 and Table 88 below show examples of settings on a Cisco and
an HP Layer 2 switch for this example. See Figure 71 for the port numbers.
Tip: These settings also apply for the other network configuration examples.
Table 87: Cisco Layer 2 Switch Settings Example
(Configurations 1, 2 and 3)
Port Use Command
A Access port
for VLAN 1
None (by default, all ports belong to VLAN 1)
B
C Access port
for VLAN 2
Router(config-if)#switchport mode access
Router(config-if)#switchport access VLAN 2
D
E Trunk port with
Dot1q for IP
Phone
Router(config)#interface fast 0/5
Router(config-if)#switchport mode trunk
Router(config-if)#switchport trunk encapsulation dot1q
Table 88: HP Layer 2 Switch Settings Example
(Configurations 1, 2 and 3)
Port Use Command (on HP VLAN menu)
A
Access port for VLAN 1
VLAN 1 = untagged
VLAN 2 = NO
B
C
Access port for VLAN 2
VLAN 1 = NO
VLAN 2 = untagged
D
E Trunk port
VLAN 1 = untagged
VLAN 2 = tagged