[SwitchA-GigabitEthernet1/0/10] traffic-remark-vlanid inbound link-group 4002
remark-vlan 100
[SwitchA-GigabitEthernet1/0/10] traffic-remark-vlanid inbound link-group 4003
remark-vlan 200
[SwitchA-GigabitEthernet1/0/10] quit
Perform the same VLAN mapping configuration on Switch B. The detailed configuration
procedure is similar to that of Switch A and thus is omitted here.
Traffic Mirroring and Traffic Redirecting Configuration Example
Network requirements
A company uses a switch to interconnect all the departments. As shown in
The marketing department is connected to GigabitEthernet 1/0/1 of the switch. The
hosts of the marketing department are on network segment 192.168.1.0/25 and access
the Internet through the switch.
The R&D department is connected to GigabitEthernet 1/0/2 of the switch. The hosts of
the R&D department are on network segment 192.168.2.0/25 and access the Internet
through the switch.
The data monitoring device is connected to GigabitEthernet 1/0/3 of the switch.
Configure traffic redirecting and traffic mirroring to satisfy the following requirements:
From 8:00 to 18:00 in working days, mirror the HTTP traffic from the marketing
department to the Internet to the data monitoring device.
From 8:00 to 18:00 in working days, redirect the HTTP traffic from the R&D department
to the Internet to the data monitoring device.
On the data monitoring device, the network administrator can analyze the HTTP traffic from
each department to the Internet.
Figure 1-13 Network diagram for traffic redirecting and traffic mirroring configuration
1-50
Figure
1-13,