cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 
cancel
653
Views
0
Helpful
1
Replies

im can use 2 vlans of 2 different interfaces in switch on mode trunk ?

almir fiorio
Level 1
Level 1

Dear Friends 

Im have two different interfaces

switch is connected in router by gi0/3 .

but im have another Fa0/2 in router with vlan 38 and the switch is in trunk with router..

im want to use one vlan of Fa0/2 and another vla of Gi0/3 on the switch connected by trunk

im can put some ports in this switch on vlan 38 and others ports  in vlan 50 ????

See :

interface GigabitEthernet0/3

duplex auto

speed auto

media-type rj45

negotiation auto

no keepalive

interface GigabitEthernet0/3.50

encapsulation dot1Q 50

ip address 10.135.50.1 255.255.255.0

ip access-group 100 in

ip helper-address 10.132.5.81

interface FastEthernet0/2

bandwidth 100000

duplex auto

speed auto

media-type rj45

negotiation auto

no keepalive

interface FastEthernet0/2.38

encapsulation dot1Q 50

ip address 10.132.38.1 255.255.255.0

ip access-group 100 in

ip helper-address 10.132.38.81

1 Reply 1

srikanth ath
Level 4
Level 4

Trunk ports are usually carry Vlan traffic to the Connected port.

Short answer for this Yes u Can

it depends on ur Requirement to specify what Vlans should be carried from the Trunk port. If you are allowing all the vlans to trunk port it carries all Vlan 38, Vlan 50 and all the specified vlans on your switch.

#switchport mode trunk

#switchport trunk allowed vlan all

If u specify selected vlans to be carried from the trunk it do carry only those vlans with the tags away from the trunk port. like with the simple example to configure trunk port in carrying vlans from 50 to 80.

switch# switchport mode trunk

#switchport allowed vlan 50-80

Hope i answered you, do reply back and give rating if it is satisfying you.

Regards

Srikanth