H3C S3100 Series Operation Manual page 216

H3c s3100 series ethernet switches operation manual
Hide thumbs Also See for S3100 Series:
Table of Contents

Advertisement

Figure 1-8 Network diagram for MAC address replication and VLAN marking configuration
Network
MAC-A
Eth1/0/2
SwitchA
Eth1/0/1
MAC-A
Network
192.168.1.0/24
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
VLAN4
VLAN3
1-13

Advertisement

Chapters

Table of Contents
loading

Table of Contents