cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
477
Views
5
Helpful
3
Replies

Switch Port config quick question

yeahyeah1
Level 1
Level 1

Hello

 

Need to replace two switches and need some assistance to clarify the port config

 

Switchport set as trunk

So it will send tagged voice traffic via the voice vlan

And untagged to native vlan 3?

 

 

interface FastEthernet1/0/14
description **** IP PHONE OR PC ****
switchport trunk encapsulation dot1q
switchport trunk native vlan 3
switchport trunk pruning vlan 5-1001
switchport mode trunk
switchport voice vlan 203

 

Thank you 

 

 

3 Replies 3

balaji.bandi
Hall of Fame
Hall of Fame

Is this Port Trunk between Switch or End device ?

Between Switch Trunk as below : so you taking control to allow only Data and Voice VLAN :


interface fastethernet x/x
switchport mode trunk
switchport trunk native vlan 3
switchport trunk allowed vlan 2,203

 

Access port to device connected : ( depends on requirement) most case we use as below :


interface FastEthernet1/0/14
description **** IP PHONE OR PC ****
switchport mode access
switchport access vlan 3
switchport voice vlan 203

 

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Steven Case
Level 1
Level 1

Yeah, this configuration makes very little sense. Based on what you have here I can only infer that the device that was connected to the phone was virtualizing a network card (like a Hypervisor software of some kind). If this is the whole configuration on the port, it's saying the following:

 

Allow a phone to be connected and run in a different VLAN as data (switchport voice vlan 203)

The data coming through this device will be tagged with multiple VLANs present (switchport mode trunk)

As it's a trunk, here's the encapsulation (switchport trunk encapsulation dot1q)

Don't tag VLAN 3 (switchport trunk native vlan 3)

On this trunk, as VTP is used, don't learn or allow VLANS 5 through 1001 (switchport trunk pruning 5 - 1001)

 

Now the description in the most alarming part to me... this implies that this is the default configuration for all ports on the switch, and possibly throughout the entire network. I don't see a BPDUGuard on a port that is always up as a trunk, nor any spanning tree, so... I mean... switching loops and VTP domain jacking is possible. That's fun.

 

I know you didn't ask for advice, but here's what I would do:

 

switchport access vlan 3 (looks like that's what the admin was going for)

switchport voice vlan 203 (if no phone, then no problem)

 

If you do port security or plan on it in the future, definitely explicitly add:

 

switchport mode access

 

Call it a day. Get that trunk stuff off of those ports.

 

 

Hello

In short yes it will

Data vlan 3 =untagged
Voice vlan203 = Tagged


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul
Review Cisco Networking for a $25 gift card