HP MSR2000/3000/4000 Router Series Layer 2 - LAN Switching Configuration Guide

62
# Configure port Ethernet 2/3 as a trunk port, and assign it to VLANs 100 and 200, enabling
Ethernet 2/3 to forward packets of VLANs 100 and 200 to Router B.
[RouterA] interface ethernet 2/3
[RouterA-Ethernet2/3] port link-type trunk
[RouterA-Ethernet2/3] port trunk permit vlan 100 200
Please wait... Done.
2. Configure Router B in the same way Router A is configured.
3. Configure hosts:
{ Configure Host A and Host C to be on the same IP subnet. For example, 192.168.100.0/24.
{ Configure Host B and Host D to be on the same IP subnet. For example, 192.168.200.0/24.
Verifying the configuration
# Verify that Host A and Host C can ping each other, but they both fail to ping Host B.
# Verify that Host B and Host D can ping each other, but they both fail to ping Host A.
# Verify that VLANs 100 and 200 are correctly configured on Router A.
[RouterA-Ethernet2/3] display vlan 100
VLAN ID: 100
VLAN type: Static
Route interface: Not configured
Description: VLAN 0100
Name: VLAN 0100
Tagged ports:
Ethernet2/3
Untagged ports:
Ethernet2/1
[RouterA-Ethernet2/3] display vlan 200
VLAN ID: 200
VLAN type: Static
Route interface: Not configured
Description: VLAN 0200
Name: VLAN 0200
Tagged ports:
Ethernet2/3
Untagged ports:
Ethernet2/2