06-01-2020 07:04 AM
hi i am learning for ccna and i always understood what vlan do but i didnt realize why should i give it an ip address
and on the physical port how do change the native vlan, from what i learned you give the port ip and not puting the
encapsulation command
thanks for the help
06-01-2020 07:08 AM
By default native vlan - its 1 vlan. But you cant assign ip address to vlan, you need interface vlan 1.
06-01-2020 07:25 AM
06-01-2020 07:33 AM
Hi
Native VLAN is Dot1q Trunking concept. With Dot1q and Trunk native vlan doesn't exist.
You give an IP address to the SVI for the VLAN not the VLAN it self.
For example, for native vlan 1 the IP address will be on interface vlan 1
06-01-2020 07:56 AM
06-01-2020 08:38 AM
By default the native vlan is on the physical interface of the router.
When the router is doing inter-vlan routing .. something like router-on-a-stick (Google it :))
then you will have different vlans .. you config the switch port connect to the router as a trunk port and on the router side you configure sub-interfaces for each vlan for inter-vlan routing.
On Router - for normal vlan interface GigabitEthernet0/0/1.10 encapsulation dot1Q 10 On Router - for native vlan interface GigabitEthernet0/0/1.999 encapsulation dot1Q 999 native On Switch vlan 10 <<< normal vlan 999 <<< native interface GigabitEthernet0/0 switchport trunk encapsulation dot1q switchport mode trunk switchport trunk native vlan 999
06-01-2020 08:43 AM
This is config for interface without sunbintarface
interface GigabitEthernet0/0/0
description to_3850
ip address 192.168.70.1 255.255.255.0
But if you want to create subinterface
interface GigabitEthernet0/0/0.22
description to_2960
encapsulation dot1Q 22
ip address 192.168.17.1 255.255.255.0
encapsulation dot1Q 22 - in this particular case 22 it means vlan 22
interface GigabitEthernet0/0/0.1
description to_hypervisor
encapsulation dot1Q 1 native
ip address 192.168.13.1 255.255.255.0
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide