cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3932
Views
5
Helpful
20
Replies

Catalyst 3750 Changing port from trunk to access

blait
Level 1
Level 1

Hi.  On my 3750, I had a port that was configured as a trunk.  I changed the configuration of the port to this:

 

interface GigabitEthernet1/0/22
switchport access vlan 172
switchport mode access
switchport voice vlan 100
switchport port-security maximum 3
mls qos trust cos
spanning-tree portfast
end

 

Now, when I do a sh vlan, port G1/0/22 does not appear in any vlan, and the phone connected to the port cannot contact the DHCP server in vlan 172.

 

Switch1#sh vlan

VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Gi1/0/37, Gi1/0/39, Gi1/0/40, Gi2/0/1, Gi2/0/3, Gi2/0/4
Gi2/0/5, Gi2/0/11, Gi2/0/13, Gi2/0/16, Gi2/0/17, Gi2/0/18
Gi2/0/23, Gi2/0/25, Gi2/0/29, Gi2/0/41, Gi3/0/3, Gi3/0/4
Gi3/0/5, Gi3/0/10, Gi3/0/15, Gi3/0/29, Gi3/0/35, Gi3/0/38
Gi3/0/40, Gi3/0/41, Gi3/0/47, Gi3/0/49, Gi3/0/50, Gi3/0/51
Gi3/0/52
10 PIX-Outside active
20 VLAN0020 active Gi2/0/22, Gi3/0/43, Gi3/0/48
99 VLAN0099 active
100 VLAN0100 active Gi1/0/1, Gi1/0/2, Gi1/0/3, Gi1/0/4, Gi1/0/5, Gi1/0/6, Gi1/0/7
Gi1/0/8, Gi1/0/9, Gi1/0/10, Gi1/0/11, Gi1/0/12, Gi1/0/13
Gi1/0/14, Gi1/0/15, Gi1/0/16, Gi1/0/17, Gi1/0/18, Gi1/0/19
Gi1/0/20, Gi1/0/21, Gi1/0/23, Gi1/0/24, Gi1/0/26, Gi1/0/27
Gi1/0/28, Gi1/0/29, Gi1/0/30, Gi1/0/31, Gi1/0/32, Gi1/0/33
Gi1/0/34, Gi1/0/35, Gi1/0/36, Gi1/0/37, Gi1/0/38, Gi1/0/39
Gi1/0/40, Gi1/0/41, Gi1/0/42, Gi1/0/43, Gi1/0/44, Gi1/0/45
Gi1/0/46, Gi1/0/47, Gi1/0/48, Gi2/0/2, Gi2/0/7, Gi2/0/8
Gi2/0/9, Gi2/0/10, Gi2/0/12, Gi2/0/14, Gi2/0/15, Gi2/0/20
Gi2/0/21, Gi2/0/23, Gi2/0/24, Gi2/0/26, Gi2/0/27, Gi2/0/28
Gi2/0/30, Gi2/0/31, Gi2/0/32, Gi2/0/33, Gi2/0/34, Gi2/0/35
Gi2/0/36, Gi2/0/37, Gi2/0/38, Gi2/0/39, Gi2/0/40, Gi2/0/42
Gi2/0/43, Gi2/0/44, Gi2/0/45, Gi2/0/46, Gi2/0/47, Gi2/0/48
Gi3/0/5, Gi3/0/6, Gi3/0/8, Gi3/0/9, Gi3/0/11, Gi3/0/12
Gi3/0/13, Gi3/0/16, Gi3/0/17, Gi3/0/18, Gi3/0/19, Gi3/0/20
Gi3/0/21, Gi3/0/22, Gi3/0/23, Gi3/0/24, Gi3/0/25, Gi3/0/26
Gi3/0/27, Gi3/0/28, Gi3/0/29, Gi3/0/30, Gi3/0/31, Gi3/0/32
Gi3/0/33, Gi3/0/34, Gi3/0/36, Gi3/0/37, Gi3/0/38, Gi3/0/39
Gi3/0/42, Gi3/0/44, Gi3/0/45, Gi3/0/46
102 VLAN0102 active
110 VLAN0110 active
172 VLAN0172 active Gi1/0/1, Gi1/0/2, Gi1/0/3, Gi1/0/4, Gi1/0/5, Gi1/0/6, Gi1/0/7
Gi1/0/8, Gi1/0/9, Gi1/0/10, Gi1/0/11, Gi1/0/12, Gi1/0/13
Gi1/0/14, Gi1/0/15, Gi1/0/16, Gi1/0/17, Gi1/0/18, Gi1/0/19
Gi1/0/20, Gi1/0/21, Gi1/0/23, Gi1/0/24, Gi1/0/25, Gi1/0/26
Gi1/0/27, Gi1/0/28, Gi1/0/29, Gi1/0/30, Gi1/0/32, Gi1/0/33
Gi1/0/34, Gi1/0/35, Gi1/0/36, Gi1/0/38, Gi1/0/41, Gi1/0/42
Gi1/0/43, Gi1/0/44, Gi1/0/45, Gi1/0/46, Gi1/0/47, Gi1/0/48
Gi2/0/2, Gi2/0/6, Gi2/0/7, Gi2/0/8, Gi2/0/9, Gi2/0/10, Gi2/0/14

VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
Gi2/0/15, Gi2/0/19, Gi2/0/20, Gi2/0/21, Gi2/0/24, Gi2/0/26
Gi2/0/27, Gi2/0/28, Gi2/0/30, Gi2/0/31, Gi2/0/32, Gi2/0/33
Gi2/0/34, Gi2/0/35, Gi2/0/36, Gi2/0/37, Gi2/0/38, Gi2/0/39
Gi2/0/40, Gi2/0/42, Gi2/0/43, Gi2/0/44, Gi2/0/45, Gi2/0/46
Gi2/0/47, Gi2/0/48, Gi3/0/1, Gi3/0/6, Gi3/0/7, Gi3/0/8, Gi3/0/9
Gi3/0/11, Gi3/0/12, Gi3/0/13, Gi3/0/14, Gi3/0/16, Gi3/0/17
Gi3/0/18, Gi3/0/19, Gi3/0/20, Gi3/0/21, Gi3/0/22, Gi3/0/23
Gi3/0/24, Gi3/0/25, Gi3/0/26, Gi3/0/27, Gi3/0/28, Gi3/0/30
Gi3/0/31, Gi3/0/32, Gi3/0/33, Gi3/0/34, Gi3/0/36, Gi3/0/37
Gi3/0/42, Gi3/0/44, Gi3/0/45, Gi3/0/46
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup

VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 0 0
10 enet 100010 1500 - - - - - 0 0
20 enet 100020 1500 - - - - - 0 0
99 enet 100099 1500 - - - - - 0 0
100 enet 100100 1500 - - - - - 0 0
102 enet 100102 1500 - - - - - 0 0
110 enet 100110 1500 - - - - - 0 0
172 enet 100172 1500 - - - - - 0 0
1002 fddi 101002 1500 - - - - - 0 0
1003 tr 101003 1500 - - - - - 0 0
1004 fdnet 101004 1500 - - - ieee - 0 0
1005 trnet 101005 1500 - - - ibm - 0 0

Remote SPAN VLANs
------------------------------------------------------------------------------


Primary Secondary Type Ports
------- --------- ----------------- ------------------------------------------

 

20 Replies 20

balaji.bandi
Hall of Fame
Hall of Fame

i do see switch port belong to vlan strange -

 

Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 1 (default)

 

for testing now allocate port to only vlan 172

 

post same output show interface GigabitEthernet1/0/22 switchport

 

show vlan 172

 

BB

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

How to Ask The Cisco Community for Help

Switch1#sh run int g1/0/22
Building configuration...

Current configuration : 39 bytes
!
interface GigabitEthernet1/0/22
end

 

Switch1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch1(config)#int g1/0/22
Switch1(config-if)#switchport mode access
Switch1(config-if)#switchport access vlan 172
Switch1(config-if)#

 

Switch1#sh run int g1/0/22
Building configuration...

Current configuration : 91 bytes
!
interface GigabitEthernet1/0/22
switchport access vlan 172
switchport mode access
end

 

Switch1#sh int g1/0/22 switchport
Name: Gi1/0/22
Switchport: Enabled
Administrative Mode: static access
Operational Mode: down
Administrative Trunking Encapsulation: negotiate
Negotiation of Trunking: Off
Access Mode VLAN: 172 (VLAN0172)
Trunking Native Mode VLAN: 1 (default)
Administrative Native VLAN tagging: enabled
Voice VLAN: none
Administrative private-vlan host-association: none
Administrative private-vlan mapping: none
Administrative private-vlan trunk native VLAN: none
Administrative private-vlan trunk Native VLAN tagging: enabled
Administrative private-vlan trunk encapsulation: dot1q
Administrative private-vlan trunk normal VLANs: none
Administrative private-vlan trunk associations: none
Administrative private-vlan trunk mappings: none
Operational private-vlan: none
Trunking VLANs Enabled: ALL
Pruning VLANs Enabled: 2-1001
Capture Mode Disabled
Capture VLANs Allowed: ALL

Protected: false
Unknown unicast blocked: disabled
Unknown multicast blocked: disabled
Appliance trust: none

 

Switch1#sh vlan name VLAN0172

VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
172 VLAN0172 active Gi1/0/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0/42, Gi3/0/44
Gi3/0/45, Gi3/0/46

VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
172 enet 100172 1500 - - - - - 0 0

Remote SPAN VLAN
----------------
Disabled

Primary Secondary Type Ports
------- --------- ----------------- ------------------------------------------

balaji.bandi
Hall of Fame
Hall of Fame

I can see the  port belong to van 172

 

can you write the config -  post show vlan 172

 

Note : sorry too many test, since long back worked on 12.X  code

BB

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

How to Ask The Cisco Community for Help

I did a write mem.

I can't so show vlan 172, I get

 

Switch1#sh vlan 172
                          ^
% Invalid input detected at '^' marker.

 

I have to do sh vlan name VLAN0172

 

Switch1#sh vlan name VLAN0172

VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
172 VLAN0172 active Gi1/0/1, Gi1/0/2, Gi1/0/3, Gi1/0/4, Gi1/0/5, Gi1/0/6, Gi1/0/7
Gi1/0/8, Gi1/0/9, Gi1/0/10, Gi1/0/11, Gi1/0/12, Gi1/0/13
Gi1/0/14, Gi1/0/15, Gi1/0/16, Gi1/0/17, Gi1/0/18, Gi1/0/19
Gi1/0/20, Gi1/0/21, Gi1/0/23, Gi1/0/24, Gi1/0/25, Gi1/0/26
Gi1/0/27, Gi1/0/28, Gi1/0/29, Gi1/0/30, Gi1/0/32, Gi1/0/33
Gi1/0/34, Gi1/0/35, Gi1/0/36, Gi1/0/38, Gi1/0/41, Gi1/0/42
Gi1/0/43, Gi1/0/44, Gi1/0/45, Gi1/0/46, Gi1/0/47, Gi1/0/48
Gi1/0/49, Gi1/0/50, Gi1/0/51, Gi1/0/52, Gi2/0/2, Gi2/0/6
Gi2/0/7, Gi2/0/8, Gi2/0/9, Gi2/0/10, Gi2/0/14, Gi2/0/15
Gi2/0/19, Gi2/0/20, Gi2/0/21, Gi2/0/24, Gi2/0/26, Gi2/0/27
Gi2/0/28, Gi2/0/30, Gi2/0/31, Gi2/0/32, Gi2/0/33, Gi2/0/34
Gi2/0/35, Gi2/0/36, Gi2/0/37, Gi2/0/38, Gi2/0/39, Gi2/0/40
Gi2/0/42, Gi2/0/43, Gi2/0/44, Gi2/0/45, Gi2/0/46, Gi2/0/47
Gi2/0/48, Gi2/0/49, Gi2/0/50, Gi2/0/51, Gi2/0/52, Gi3/0/1
Gi3/0/2, Gi3/0/6, Gi3/0/7, Gi3/0/8, Gi3/0/9, Gi3/0/11, Gi3/0/12
Gi3/0/13, Gi3/0/14, Gi3/0/16, Gi3/0/17, Gi3/0/18, Gi3/0/19
Gi3/0/20, Gi3/0/21, Gi3/0/22, Gi3/0/23, Gi3/0/24, Gi3/0/25
Gi3/0/26, Gi3/0/27, Gi3/0/28, Gi3/0/30, Gi3/0/31, Gi3/0/32
Gi3/0/33, Gi3/0/34, Gi3/0/36, Gi3/0/37, Gi3/0/42, Gi3/0/44
Gi3/0/45, Gi3/0/46

VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
172 enet 100172 1500 - - - - - 0 0

Remote SPAN VLAN
----------------
Disabled

Primary Secondary Type Ports
------- --------- ----------------- ------------------------------------------

balaji.bandi
Hall of Fame
Hall of Fame

syntax wrong- current one as below :

 

 show vlan id 172

BB

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

How to Ask The Cisco Community for Help

Thanks.

Switch1#show vlan id 172

VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
172 VLAN0172 active Gi1/0/1, Gi1/0/2, Gi1/0/3, Gi1/0/4, Gi1/0/5, Gi1/0/6, Gi1/0/7
Gi1/0/8, Gi1/0/9, Gi1/0/10, Gi1/0/11, Gi1/0/12, Gi1/0/13
Gi1/0/14, Gi1/0/15, Gi1/0/16, Gi1/0/17, Gi1/0/18, Gi1/0/19
Gi1/0/20, Gi1/0/21, Gi1/0/23, Gi1/0/24, Gi1/0/25, Gi1/0/26
Gi1/0/27, Gi1/0/28, Gi1/0/29, Gi1/0/30, Gi1/0/32, Gi1/0/33
Gi1/0/34, Gi1/0/35, Gi1/0/36, Gi1/0/38, Gi1/0/41, Gi1/0/42
Gi1/0/43, Gi1/0/44, Gi1/0/45, Gi1/0/46, Gi1/0/47, Gi1/0/48
Gi1/0/49, Gi1/0/50, Gi1/0/51, Gi1/0/52, Gi2/0/2, Gi2/0/6
Gi2/0/7, Gi2/0/8, Gi2/0/9, Gi2/0/10, Gi2/0/14, Gi2/0/15
Gi2/0/19, Gi2/0/20, Gi2/0/21, Gi2/0/24, Gi2/0/26, Gi2/0/27
Gi2/0/28, Gi2/0/30, Gi2/0/31, Gi2/0/32, Gi2/0/33, Gi2/0/34
Gi2/0/35, Gi2/0/36, Gi2/0/37, Gi2/0/38, Gi2/0/39, Gi2/0/40
Gi2/0/42, Gi2/0/43, Gi2/0/44, Gi2/0/45, Gi2/0/46, Gi2/0/47
Gi2/0/48, Gi2/0/49, Gi2/0/50, Gi2/0/51, Gi2/0/52, Gi3/0/1
Gi3/0/2, Gi3/0/6, Gi3/0/7, Gi3/0/8, Gi3/0/9, Gi3/0/11, Gi3/0/12
Gi3/0/13, Gi3/0/14, Gi3/0/16, Gi3/0/17, Gi3/0/18, Gi3/0/19
Gi3/0/20, Gi3/0/21, Gi3/0/22, Gi3/0/23, Gi3/0/24, Gi3/0/25
Gi3/0/26, Gi3/0/27, Gi3/0/28, Gi3/0/30, Gi3/0/31, Gi3/0/32
Gi3/0/33, Gi3/0/34, Gi3/0/36, Gi3/0/37, Gi3/0/42, Gi3/0/44
Gi3/0/45, Gi3/0/46

VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
172 enet 100172 1500 - - - - - 0 0

Remote SPAN VLAN
----------------
Disabled

Primary Secondary Type Ports
------- --------- ----------------- ------------------------------------------

Review Cisco Networking products for a $25 gift card