Port 6 on the Layer 2 switch is configured as the access port for VLAN 20, and IP address 192.168.20.254/24 in 192.168.20.0/24, which is associated with VLAN 20, is configured on Interface 2 of the router. The connection between port 6 of the Layer 2 switch and interface 2 of the router is the physical connection for VLAN 20. In addition, configure the IP address 192.168.10.254 of the VLAN 10 router as the default gateway. These PCs are also configured with IP addresses in 192.168.10.024 that correspond to VLAN 10. In addition, PC1 and PC2 are connected to VLAN10. In the Layer 2 switch, port 5 is configured as the access port for VLAN 10, and the IP address 192.168.10.254/24 in 192.168.10.0/24, which is associated with VLAN 10, is configured in interface 1 of the router. Port 5 of the Layer 2 switch is physically connected to interface (port) 1 of the router. Figure Connection by access link for each VLAN The following figure shows an example of two VLANs, VLAN10 and VLAN20, on a Layer 2 switch being interconnected by a router. By configuring the IP address on the router interface, the router connects the network. The interface (port) on the router side should be configured with the IP address of the network that corresponds to the VLAN to be connected. Configure the port on the Layer 2 switch as the access port for the VLAN you want to connect. Appropriate configuration is required for both the Layer 2 switch and the router. Just physically connecting does not mean that the router has connected the VLAN. For example, if you are creating two VLANs on the Layer 2 switch, you connect the router and the Layer 2 switch with two physical links if there are three VLANs, you connect the router and the Layer 2 switch with three links. From this, the physical connection between a router and a Layer 2 switch is simple and easy to understand: you connect a router and a Layer 2 switch per VLAN. Trunk link between router and Layer 2 switch (Router-on-a-stick)Ĭonnects router and Layer 2 switch with an access link for each VLAN.Connects router and Layer 2 switch with an access link for each VLAN.There are two possible physical connections between routers and Layer 2 switches. In order to interconnect VLANs created by a Layer 2 switch with a router, you must first physically connect the router to the Layer 2 switch. Therefore, routers can be used to interconnect networks that are divided by VLANs. 3 Trunk link between router and Layer 2 switch (Router-on-a-stick)Ī router is a network device that interconnects networks to allow communication between networks.2 Connects router and Layer 2 switch with an access link for each VLAN.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |