To remove the VLAN ID assigned to a subinterface, use the no form of this command. In below configuration example the encapulation is set to IEEE 802.1q for Inter-VLAN routing for VLAN 100. To assign a VLAN ID to a subinterface (or to modify the VLAN ID that is currently assigned to a subinterface), use the dot1q vlan command in subinterface configurationmode.
Now create and configure a sub interface as shown below. 1>enableĮnter configuration commands, one per line.
Each subinterface must belong to a different Layer2 VLAN, with a separate Layer3 subnet. To bring the physical interface from Administrativly down state to up, first go to the physical interface and issue "no shutdown" command as shown below. I am aware of all the background information to native VLANs, just to repeat here that they are used for 'control traffic', that is CDP / VTP / PAgP / DTP.On a router, sub-interfaces can be defin. One of the advantages of the Cisco ASA firewallis that you can configure multiple virtual interfaces (subinterfaces) on the same physical interface, thus extending the number of security zones (firewall legs) on your network. To create a subinterface and configure it with an IP address, use the following commands. If you take the help from Cisco IOS using question mark, we can see the number range which be can used to create subinterfaces. We use Subinterfaces for inter VLAN traffic routing by using a Router-on-a-Stick configuration, NBMA (Non Broadcast Multiple Access) WAN solutions like frame-relay or ATM etc.Ī Subinterface can be configured just like a physical interface. If we have one Router with one physical interface, but needed to have the router connected to two IP networks to route traffic between two routers, we can create two sub interfaces within the physical interface, assign each sub interface an IP address within each subnet and then route the data between two subnets. Subinterfaces are used for a variety of purposes. A sub-interface in a Cisco Router uses the parent physical interface for sending and receiving data. A subinterface is a virtual interface created by dividing one physical interface into multiple logical interfaces.