Configuration procedure – H3C Technologies H3C S3100 Series Switches User Manual
Page 216

1-13
Figure 1-8 Network diagram for MAC address replication and VLAN marking configuration
Eth1/0/1
Network
192.168.1.0/24
Network
MAC-A
VLAN3
MAC-A
VLAN4
SwitchA
Eth1/0/2
Configuration procedure
# Create VLAN 3 and VLAN 4 on Switch A.
<SwitchA> system-view
[SwitchA] vlan 3 to 4
Please wait.... Done.
# Configure Ethernet 1/0/1 as a trunk port and assign it to VLAN 3 and VLAN 4.
[SwitchA] interface Ethernet 1/0/1
[SwitchA-Ethernet1/0/1] port link-type trunk
[SwitchA-Ethernet1/0/1] port trunk permit vlan 3 4
Please wait... Done.
[SwitchA-Ethernet1/0/1] quit
# Configure Ethernet 1/0/2 as a trunk port and assign it to VLAN 3 and VLAN 4.
[SwitchA] interface Ethernet 1/0/2
[SwitchA-Ethernet1/0/2] port link-type trunk
[SwitchA-Ethernet1/0/2] port trunk permit vlan 3 4
Please wait... Done.
[SwitchA-Ethernet1/0/2] quit
# Create ACL 3000 to match packets with source address 192.168.1.0/24.
[SwitchA] acl number 3000
[SwitchA-acl-adv-3000] rule permit ip source 192.168.1.0 0.0.0.255
[SwitchA-acl-adv-3000] quit
# Create ACL 3001 to match packets with destination address 192.168.1.0/24.
[SwitchA] acl number 3001
[SwitchA-acl-adv-3001] rule permit ip destination 192.168.1.0 0.0.0.255
[SwitchA-acl-adv-3001] quit
# Configure VLAN marking on Ethernet 1/0/1 to replace the VLAN tag of packets that matches ACL
3000 with VLAN tag 4.
[SwitchA] interface Ethernet 1/0/1
[SwitchA-Ethernet1/0/1] traffic-remark-vlanid inbound 3000 remark-vlan 4