- #Vlan router configuration how to#
- #Vlan router configuration manual#
- #Vlan router configuration Pc#
The lines Access Mode VLAN: 5 (VLAN0005) and Voice VLAN: 20 indicate that the interface is indeed carrying traffic from both VLANs. Operational Trunking Encapsulation: nativeĪdministrative private-vlan host-association: noneĪdministrative private-vlan mapping: none To verify that the interface indeed carries data from both VLANs, we can use the show interfaces Fa0/1 switchport command: Switch#show interfaces fa0/1 switchportĪdministrative Trunking Encapsulation: dot1q The keyword voice indicates that the VLAN 20 will be a voice VLAN. We’ve then placed the port into both VLANs.
#Vlan router configuration Pc#
We’ve created two VLANs – VLAN 5 that will be used for data sent by the PC and VLAN 20 for IP phone’s voice traffic. Here is how we can do that: SW1(config)#vlan 5 To enable this, we need to define two VLANs on the switch port – data VLAN and voice VLAN. The port on the phone connected to the switch can carry both data and voice traffic. One port is connected to the local network, while the other port can be connected to the PC. Since offices usually have only a single UTP cable to each desk, most of the IP phones today include a small switch that enable you to connect your PC to the phone sitting on the desk, and then connect the phone to the local network.Ĭonsider the backside of an IP telephone Yealink T21:Īs you can see from the picture, this phone has two UTP ports. This means that the phones are connect to the same network and use the same cabling as other network devices, such as workstations or routers.
#Vlan router configuration manual#
GigabitEthernet0/0.10 10.1.1.1 YES manual up up GigabitEthernet0/0 unassigned YES unset up up Interface IP-Address OK? Method Status Protocol
Verify the interface using show IP interface brief command- Router#show ip interface brief No shutdown interface GigabitEthernet0/0.20 (For example, the uplink ports connected to a router are usually Gigabit ports.) In the example configurations shown in this section, a controller is connected to the network through its Gigabit Ethernet port 1/25. So, our sub-interface will be ge-0/0.10 for vlan 10 and ge-0/0.20 for vlan 20 and we will give appropriate IP addresses. In this form of inter-VLAN routing, the router has to have as many LAN interfaces as the number of VLANs configured on the switch. Assign to the VLAN the ports t hat you will use to connect the controller to the network.
We will follow vlan number as our sub-interface number. Router(config)#interface gigabitEthernet 0/1.? We need to give our sub-interface a number and this number could be any between 0-4294967295. Now, we will configure sub-interface for VLAN 10. Router(config)interface GigabitEthernet0/0 Keep in mind, without making physical interface UP, whatever you do in sub-interfaces, it will not work. Let’s begin with, no shutdown command for the physical interfaces. According our diagram, we need to configure ge-0/0 for this. To configure inter-vlan routing, we need to configure the interface as sub-interfaces.
#Vlan router configuration how to#
(If you want to learn more about, click how to configure VLAN on Cisco catalyst switch) Inter VLAN routing configuration: