Notice how we’ve configured the Fa0/1 port on a switch (the port connected to the router’s Fa0/0 interface) as a trunk port. But first, here is the switch configuration: Each host is in a different VLAN, so we need to divide the physical router’s interface Fa0/0 into logical interfaces, one for each VLAN. We have a simple network of three hosts, a switch and a router. (config-subif)# ip address IP_ADDRESS SUBNET_MASK – sets the IP address for the subinterface.(config-subif)# encapsulation dot1q VLAN_ID – sets the subinterface to trunk and associates it with a specific VLAN.(config)# interface TYPE NUMBER.SUBINTERFACE – creates the subinterface and enters the subinterface command mode.To configure trunking on a router, the following commands are used: For example, the command interface Gi0/0.1 creates a subinterface. The subinterface number begins with the period and it is usually the same as the VLAN the subinterface will be in. The physical interface is divided into logical interfaces (also known as subinterfaces), one for each VLAN.Ī subinterface is created with the interface TYPE NUMBER.SUBINTERFACE command. This scenario is called router on a stick (ROAS) and allows all VLANs to communicate through a single physical interface. To enable inter-VLAN communication, you can divide a single physical interface on a router into logical interfaces that will be configured as trunk interfaces.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |