10-17-2021 01:51 PM
On a Cisco SG350-28P, putting a port into trunk mode, adding the desired VLAN's to it, and trying to set the default VLAN doesn't hold after a reboot - it reverts back every time to just the default VLAN and the Voice VLAN.
Here's the switchport configuration before reboot:
!
interface GigabitEthernet1
storm-control broadcast level 10
storm-control multicast level 10
port security max 10
port security mode max-addresses
port security discard trap 60
no spanning-tree portfast
switchport mode trunk
switchport trunk native vlan 100
switchport trunk allowed vlan 1,75,100,200,300,400
macro description ip_phone_desktop
!next command is internal.
macro auto smartport dynamic_type ip_phone_desktop
!
after reboot:
!
interface GigabitEthernet1
storm-control broadcast level 10
storm-control multicast level 10
port security max 10
port security mode max-addresses
port security discard trap 60
no spanning-tree portfast
switchport mode trunk
switchport trunk native vlan 100
switchport trunk allowed vlan 1,75,100,200,300,400
macro description ip_phone_desktop
!next command is internal.
macro auto smartport dynamic_type ip_phone_desktop
!
Firmware version 2.5.8.12.
What am I missing?
10-17-2021 02:18 PM
If I am not mistaken, I do not see any difference in both configs, both look the same?
10-17-2021 02:31 PM
ciao volvofw
when you say "trying to set the default VLAN" are you mean native vlan?
Sorry but there is no difference from before and after.. am I missing any outputs?
thanks!
FabioN
10-17-2021 05:26 PM
Yes, native VLAN;
Sorry, had a partial copy-paste malfunction, this pre-reboot:
!
interface GigabitEthernet1
storm-control broadcast level 10
storm-control multicast level 10
port security max 10
port security mode max-addresses
port security discard trap 60
no spanning-tree portfast
switchport mode trunk
switchport trunk native vlan 100
macro description ip_phone_desktop
!next command is internal.
macro auto smartport dynamic_type ip_phone_desktop
!
and this is post:
!
interface GigabitEthernet1
storm-control broadcast level 10
storm-control multicast level 10
port security max 10
port security mode max-addresses
port security discard trap 60
no spanning-tree portfast
switchport mode trunk
switchport trunk allowed vlan 1,200
macro description ip_phone_desktop
!next command is internal.
macro auto smartport dynamic_type ip_phone_desktop
!
10-18-2021 01:27 AM
ciao volvofw
can you share with us these outputs:
pre-reload
show running-config interface GigabitEthernet1
show startup-config (only interface GigabitEthernet1 is needed)
show interface trunk
show interface GigabitEthernet1 switchport
show version
post-reload
show running-config interface GigabitEthernet1
show startup-config (only interface GigabitEthernet1 is needed)
show interface trunk
show interface GigabitEthernet1 switchport
thanks!
FabioN
10-18-2021 01:31 AM
where is this connecting to other switch ?
i see 2 reasons
1 - if you only aplly not save it will be not saved to startup
2. this is because port in auto smart macro
no macro description ip_phone_desktop
no macro auto smartport dynamic_type ip_phone_desktop
if this is connecting to other switch, make sure you remove security, this limit to number of device and port will not allow more than 10.
port security max 10
port security mode max-addresses
port security discard trap 60
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide