![ping network is unreachable linux to different vlan ping network is unreachable linux to different vlan](http://qnapsupport.net/wp-content/uploads/2012/07/pingok.png)
We will configure Core switch to be VTP Server and others as client. We will configure VTP on Core switch which will use trunk links to propagate VLANs to SW1 and SW2. So, it does not give you the option to specify encapsulation type.
PING NETWORK IS UNREACHABLE LINUX TO DIFFERENT VLAN SERIES
Switches SW1 and SW series switches which does not support multiple tagging methods. This is because Core switch is Cisco 3560 which is a layer-3 switch and it supports multiple trunking methods such as ISL and dot1q as we have discussed above in VLAN Tagging Protocols section. You will notice that only switchport trunk encapsulation command is new in Core switch. The configuration of Core switch is same as SW1 and SW2. Command rejected: An interface whose trunk encapsulation is "Auto" can not be configured to "trunk" mode.Ĭore(config-if-range)# switchport trunk encapsulation dot1qĬore(config-if-range)# switchport mode trunkĬore(config-if-range)# switchport trunk native vlan 105Ĭore(config-if-range)# switchport trunk allowed vlan 100-105 SW2(config-if-range)# switchport trunk allowed vlan 100-105Ĭore(config-if-range)# switchport mode trunk Command rejected: An interface whose trunk encapsulation is "Auto" can not be configured to "trunk" mode. SW2(config-if-range)# switchport trunk native vlan 105 %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, changed state to up
![ping network is unreachable linux to different vlan ping network is unreachable linux to different vlan](https://access.redhat.com/webassets/avalon/d/Red_Hat_OpenStack_Platform-16.1-Networking_Guide-en-US/images/cc390d3d97ea50f3a65244f58ec7a886/vlan-provider.jpg)
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to down SW2(config-if-range)# switchport mode trunk By default all the VLANs are allowed through trunk ports but we can use the switchport trunk allowed vlan command to specify the vlans that are allowed through trunk ports. Remember that by-default native VLAN is 1 but we have changed native VLAN to be 105 as a security measure. The switchport trunk native vlan command sets the native vlan to 105. In above configuration commands, I have selected both fastEthernet0/1 and fastEthernet0/2 interfaces using interface range command and then the command switchport mode trunk will set these interfaces in trunk mode. SW1(config-if-range)# switchport trunk allowed vlan 100-105
![ping network is unreachable linux to different vlan ping network is unreachable linux to different vlan](https://i.ibb.co/C58WZ8w/server-set.png)
SW1(config-if-range)# switchport trunk native vlan 105 SW1(config-if-range)# switchport mode trunk SW1(config)# interface range fastEthernet 0/1-2 Now, we will configure links between these switches as Trunk. Switches SW1 and SW2 are connected to Core switch using 2 links. You know that the trunk links are used to carry the traffic belonging to multiple VLANs. To assign an interface to VLAN, you need to go to each interface and tell it which VLAN to be a part of. VLANs are now created but each VLAN is unusable until any switchport is assigned to it. Remember that you cannot modify or delete default VLANs i.e. You can see the VLANs 100, 101 and 105 listed along with other VLANs that exists by default on switch and every interface is assigned to VLAN 1 by default. Core# show vlan briefġ00 Sales active 101 HR active 105 Management active If you want to see the brief details about VLANs, you can use show vlan brief command as shown below. VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2 Core#show vlanġ default active Fa0/3, Fa0/4, Fa0/5, Fa0/6
![ping network is unreachable linux to different vlan ping network is unreachable linux to different vlan](https://forum.netgate.com/assets/uploads/files/1589958666835-8d797a9d-1365-4a62-875b-78a4d84595a0-image.png)
This command will show you complete details of VLANs. Now, lets take a look at VLANs on switch using show vlan command. The command vlan followed by a number will create a VLAN and then name command will assign the descriptive name to VLAN, however name command is not mandatory. End with CNTL/Z.Ĭore(config)# vlan ? WORD ISL VLAN IDs 1-4094Īccess-map Create vlan access-map or enter vlan access-map command mode Enter configuration commands, one per line.