User hosts of an enterprise use the same services, and are located on different network segments. These user hosts belong to different VLANs and need to communicate with each other.
The following configurations are performed on SwitchA. The configuration roadmap is as follows:
Set all configuration items as follows. Then click to finish the
configuration. Figure 4 displays the configuration
result.
Configure GE0/0/2:
Configure GE0/0/3:
If router A is connected to public networks, you need to configure a NAT policy on router A to implement translation between public and private IP addresses.
You also need to configure a subinterface for the inbound interface of router A to remove tags from VLAN packets.