HP 6600 Configuration Manual page 114

Table of Contents

Advertisement

Please wait... Done.
[RouterA-GigabitEthernet4/0/1] mac-vlan enable
[RouterA-GigabitEthernet4/0/1] quit
# To enable the laptops to access Server 1 and Server 2, configure the uplink port GigabitEthernet
4/0/2 as a trunk port, and assign it to VLANs 100 and 200.
[RouterA] interface GigabitEthernet 4/0/2
[RouterA-GigabitEthernet4/0/2] port link-type trunk
[RouterA-GigabitEthernet4/0/2] port trunk permit vlan 100 200
[RouterA-GigabitEthernet4/0/2] quit
2.
Configure Router B:
# Create VLANs 100 and 200. Assign GigabitEthernet 4/0/13 to VLAN 100, and assign
GigabitEthernet 4/0/14 to VLAN 200.
<RouterB> system-view
[RouterB] vlan 100
[RouterB-vlan100] port GigabitEthernet 4/0/13
[RouterB-vlan100] quit
[RouterB] vlan 200
[RouterB-vlan200] port GigabitEthernet 4/0/14
[RouterB-vlan200] quit
# Configure GigabitEthernet 4/0/3 and GigabitEthernet 4/0/4 as trunk ports, and assign them
to VLANs 100 and 200.
[RouterB] interface GigabitEthernet 4/0/3
[RouterB-GigabitEthernet4/0/3] port link-type trunk
[RouterB-GigabitEthernet4/0/3] port trunk permit vlan 100 200
[RouterB-GigabitEthernet4/0/3] quit
[RouterB] interface GigabitEthernet 4/0/4
[RouterB-GigabitEthernet4/0/4] port link-type trunk
[RouterB-GigabitEthernet4/0/4] port trunk permit vlan 100 200
[RouterB-GigabitEthernet4/0/4] quit
3.
Configure Router C in the same way Router A is configured.
Verifying the configuration
1.
Laptop 1 can access only Server 1, and Laptop 2 can access only Server 2.
2.
On Router A and Router C, you can see that VLAN 100 is associated with the MAC address of
Laptop 1, and VLAN 200 is associated with the MAC address of Laptop 2.
[RouterA] display mac-vlan all
The following MAC VLAN addresses exist:
S:Static
MAC ADDR
--------------------------------------------------------
000d-88f8-4e71
0014-222c-aa69
Total MAC VLAN address count:2
Configuration guidelines
MAC-based VLAN can be configured only on hybrid ports.
D:Dynamic
MASK
ffff-ffff-ffff
ffff-ffff-ffff
VLAN ID
PRIO
100
0
200
0
105
STATE
S
S

Advertisement

Table of Contents
loading

This manual is also suitable for:

Hsr6600

Table of Contents