Assigning a trunk port to Switch & Router in beetween.
here we configured 0/2 as trunk port. in inter vlan routing talking, there are
some encapsulation methods. no 1. is 802.1Q or dot1q and 2 is ISL it's Ciso proprietary
only for Cisco devices while 802.1Q or dot1q for supports
the multi-vendor encapsulation method.
here we taken cisco 2950 switch that support dot1q Encapsulation method
Next is to define the native VLAN and if you want to, you can define which
VLANs are allowed to cross that trunk port, See below command
C2950 (config-if)# switchport trunk native vlan 2
C2950 (config-if)# switchport trunk allowed vlan add 2, 3, 4, 5
Assign Switch ports to Vlan by command
C2950 (config)# interface fa0/2
C2950 (config-if)# switchport mode access
C2950 (config-if)# switchport access vlan 2
we can assign switch port individual
like this,when they are not in sequential order
C2950 (config)# interface range fa0/1 - 5, fa0/1 - 15, fa0/24
their is another way when more than one ports we want to assign the same vlan the ,fallowing comming
the command syntax is "interface first port no-last port no ".
C2950 (config)# interface range fa0/2 - 6
C2950 (config-if-range)# switchport mode access
C2950 (config-if-range)# switchport access vlan 2
Assign switch port 0/6 to 0/12 to vlan 3
C2950 (config)# interface range fa0/6 - 12
C2950 (config-if-range)# switchport mode access
C2950 (config-if-range)# switchport access vlan 3
0 comments:
Post a Comment