Posted: 4/9/2018 4:09:48 AM
In general, the switches and router sub-interfaces cooperate. Because the switch is a Layer 2 switch and there is no Layer 3 routing function, the Layer 3 exchange is transparently transmitted through the router to implement Layer 3 interworking. This is the main reason for this type of networking. purpose. Between router sub-interfaces, each network segment is a direct route. If you want to achieve access control between certain network segments, you usually configure the access control list on the router.
Trunk configuration of the port: Configuration environment parameters: 1. SW1 port Ethernet 0/0/1 belongs to VLAN 10, Ethernet 0/0/2 belongs to VLAN 20, Gigabitethernet0/0/1 and R1 port Gigabitethernet0/0/0 are interconnected; 2. Vlan10 The internal PC address is 192.168.0.2/24, and the gateway is the subinterface address of the router Gigabitethernet0/0/0.1 192.168.0.1/24.
3. The internal PC address of the Vlan20 is 10.10.10.2/24. The gateway is the address of the subinterface Gigabitethernet0/0/0.2 of the router, 10.10.10.1/24. 4. The SW1 manages the virtual interface address of the VLAN100 and the gateway is GigabitEthernet0/0/172.16.0.2/24. 0 interface address 172.16.0.1/24.
Networking requirements: 1. Vlan10, Vlan20, and Vlan100 can be transparently transmitted to routers through switches, and can implement Layer 3 interworking through router sub-interfaces; 2. Data configuration steps.