cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 
cancel
675
Views
2
Helpful
5
Replies

Cisco 9300 Switch GUI VLANs does not match CLI

Bjorn Dirchsen
Level 1
Level 1

Hi,

I'm trying to document our Cisco switch configuration.

But it seems that the GUI and the CLI does not display the same information which I simply dont' understand.

E.g. In the GUI under Configuration / Interface / Ethernet, I have configured port 48 to forward VLANs 1, 2 and 40:

BjornDirchsen_0-1682513584998.png

But if I list the VLANs using the CLI, port 48 is not listed under any VLANs:
 
CS01#show vlan
 
VLAN Name Status Ports
---- -----------------
1 default active
.
.
Te1/1/4, Ap1/0/1, Gi2/0/10
Te2/1/1, Te2/1/2, Te2/1/3
.
.
2 VLAN0002 active
.
.
Gi2/0/45, Gi2/0/46, Gi2/0/47
Gi3/0/4, Gi3/0/9, Gi3/0/13
.
.
40 VLAN0040 active
Gi1/0/37, Gi1/0/38, Gi1/0/39
Gi1/0/40, Gi1/0/42, Gi1/0/43
Gi4/0/6, Gi4/0/48

Which settings are the correct ones, and why does it display different values depending on where you look from?
 
Thanks, Bjorn
1 Accepted Solution

Accepted Solutions

@Bjorn Dirchsen this is correct. the port you have in GUI is gi 2/0/48 which is trunk port. trunk ports not showing in #show vlan command. to check trunk ports, try #sh int trunk

Please rate this and mark as solution/answer, if this resolved your issue
Good luck
KB

View solution in original post

5 Replies 5

@Bjorn Dirchsen this is correct. the port you have in GUI is gi 2/0/48 which is trunk port. trunk ports not showing in #show vlan command. to check trunk ports, try #sh int trunk

Please rate this and mark as solution/answer, if this resolved your issue
Good luck
KB

Thanks @Kasun Bandara!

That makes kinda sense (I'm not a Cisco guy so forgive my lack of knowledge)

sh int trunk gave me the information, I needed:

Port           Vlans allowed on trunk
Gi2/0/44       2,40
Gi2/0/48       1-2,40
Gi3/0/2        1-2

Thanks!

pieterh
VIP
VIP

in addition to Kasun's reply: you are comparing GUI-configuration with operational status
you should compare with "show running-configuration interface ....."

Show interface trunk <<- this will show you if your config correct or not' show vlan not wotk for trunk port it only for access port 

Bjorn Dirchsen
Level 1
Level 1

Thanks @Kasun Bandara!

That makes kinda sense (I'm not a Cisco guy so forgive my lack of knowledge)

sh int trunk gave me the information, I needed:

Port           Vlans allowed on trunk
Gi2/0/44       2,40
Gi2/0/48       1-2,40
Gi3/0/2        1-2

Thanks!