Avatar of techy98
techy98

asked on 

VLAN and switchport trunk question

There is Cisco 8-port catalyst 3560C and someone configured to connect a Ruckus R500. When I did a sh run in the switch, I found there was a line below and did not see list of vlans. why it was configured?

VLAN internal allocation policy ascending

Also, when I did sh vlan, there were list of default vlans plus vlans that was configured and interfaces g0/2 to g/08 was on default vlan 1. and did not find interface g0/1 assigned to any vlan

But when I did sh run int g0/1, the following was shown.
switchport trunk encapsulation dot1q
switchport mode trunk

Could someone please help to share your comment on why the switch configured?

Below is the configuration:
spanning-tree mode pvst
spanning-tree extend system-id
!
!
!
!
vlan internal allocation policy ascending
!
!
!
interface Port-channel1
 description G0/9-G0/10
 switchport trunk encapsulation dot1q
 switchport mode trunk
!
interface GigabitEthernet0/1
 description connect to Ruckus R500
 switchport trunk encapsulation dot1q
 switchport mode trunk
!
interface GigabitEthernet0/2
!
interface GigabitEthernet0/3
!
interface GigabitEthernet0/4
!
interface GigabitEthernet0/5
!
interface GigabitEthernet0/6
!
interface GigabitEthernet0/7
!
interface GigabitEthernet0/8
!
interface GigabitEthernet0/9
 switchport trunk encapsulation dot1q
 switchport mode trunk
 channel-group 1 mode on
!
interface GigabitEthernet0/10
switchport trunk encapsulation dot1q
 switchport mode trunk
 channel-group 1 mode on
!
interface Vlan1
 no ip address
 shutdown
!
interface Vlan100
 ip address 182.16.0.5 255.255.255.0
!
ip classless
ip http server
ip http secure-server
!
ip sla enable reaction-alerts
!
snmp-server community TESTING
!
privilege interface level 5 shutdown
privilege interface level 5 no shutdown
privilege interface level 5 description
privilege configure level 5 interface
privilege exec level 5 configure terminal
privilege exec level 5 configure
privilege exec level 5 show running-config interface
!
line con 0
 login local
line vty 0 4
 login local
line vty 5 15
 login local
Switches / HubsNetwork ManagementCisco

Avatar of undefined
Last Comment
techy98
Avatar of max_the_king
max_the_king

Hi,
VLAN internal allocation policy ascending
it is a default configuration for cisco switch, leave as it is

g0/1
is configured as a trunk port, so it does not belong to any vlan, it just let vlans pass through on the uplink

g0/9 and g0/10
are configured in port-channel, e.g. they form a unique 2Gb channel

vlan100
ha a public ip address, it may communicate with the router

vlan1
is in shutdown for security reasons

hope this helps
max
Avatar of techy98
techy98

ASKER

Thanks Max. but I still wonder...
usually output of show run will also show list of vlan but not this switch.
when I use show vlan, there is output of list of all vlan icluding default ones. is there any configuration that related?
Avatar of max_the_king
max_the_king

Hi,
the output of
show vlan
will always give you info which you cannot find on show run ... any cisco switch

you can sort output by doing:
sh vlan brief
sh vlan database
sh vlan ?

max
Avatar of techy98
techy98

ASKER

Thanks max for ypur further explanation and patient.
now i understood “vlan internal allocation policj asending” is for all cisco switch.
but I still cannot figure out why only this switch does not show list of vlan in show run.
I cross checked other switches, like 2690, in their output of show run, they have list of vlan.
for example,

!
vlan internal allocation policy ascending
!
vlan 101
name finance dept
!
vlan 102
name administration dept

I just try to learn more if there is something I am not aware.
ASKER CERTIFIED SOLUTION
Avatar of max_the_king
max_the_king

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of techy98
techy98

ASKER

Max, thanks so much! it`s much clear and do help me learning.
Cisco
Cisco

Cisco PIX is a dedicated hardware firewall appliance; the Cisco Adaptive Security Appliance (ASA) is a firewall and anti-malware security appliance that provides unified threat management and protection the PIX does not. Other Cisco devices and systems include routers, switches, storage networking, wireless and the software and hardware for PIX Firewall Manager (PFM), PIX Device Manager (PDM) and Adaptive Security Device Manager (ASDM).

27K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo