Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

access vlan vs $native Vlan

SG300-28.  If I config int gi20 to be switchport mode access and then set the access vlan to 100 but I then set the smartport role to desktop it set the $native vlan of 1 so are incoming untagged headers tagged as 100 or 1?  I figure I need to either edit the smartport params or just leave as auto smartport.

         

interface gigabitethernet20

storm-control broadcast enable

storm-control broadcast level 10

storm-control include-multicast

port security max 10

port security mode max-addresses

port security discard trap 60

spanning-tree portfast

switchport mode access

switchport access vlan 100

macro description desktop

switchport forbidden default-vlan

macro auto smartport type desktop $max_hosts 10 $native_vlan 1

      

1 ACCEPTED SOLUTION

Accepted Solutions
Green

access vlan vs $native Vlan

Hi Vini, the port output was written by the macro for whatever you connected there. Your macro native vlan by default is vlan 1 therefore the port change such as   switchport mode access   switchport access vlan 100 is essentially invalid since your connection triggers a macro.

If you require the port to be 100 untagged, you'd have to either disable the smart port or modify the macro that is assigning the role to be native vlan 100.

-Tom
Please mark answered for helpful posts

-Tom Please mark answered for helpful posts http://blogs.cisco.com/smallbusiness/
3 REPLIES
Bronze

access vlan vs $native Vlan

Dear Partner,

Thank you for reaching the Small Business Support Community.

I would think incoming headers will be tagged as 1, but as for the "switchport forbidden default-vlan" command I am not that sure about it.  It's been several days with no comment on this post, I therefore suggest you to open a service request to figure this out;

https://supportforums.cisco.com/community/netpro/small-business/sbcountrysupport

Notice you may also use the 'Partner Helpline" for this matter;

http://www.cisco.com/web/partners/tools/ph.html

http://www.cisco.com/web/partners/tools/helponline/index.html#~1

Please do not hesitate to reach me back if there is any further assistance I may help you with in the meantime.

Kind regards,

Jeffrey Rodriguez S. .:|:.:|:.
Cisco Customer Support Engineer

*Please rate the Post so other will know when an answer has been found.

Jeffrey Rodriguez S. .:|:.:|:. Cisco Customer Support Engineer *Please rate the Post so other will know when an answer has been found.
Green

access vlan vs $native Vlan

Hi Vini, the port output was written by the macro for whatever you connected there. Your macro native vlan by default is vlan 1 therefore the port change such as   switchport mode access   switchport access vlan 100 is essentially invalid since your connection triggers a macro.

If you require the port to be 100 untagged, you'd have to either disable the smart port or modify the macro that is assigning the role to be native vlan 100.

-Tom
Please mark answered for helpful posts

-Tom Please mark answered for helpful posts http://blogs.cisco.com/smallbusiness/
New Member

access vlan vs $native Vlan

Yeah that's pretty much the conclusion I came up with in my OP.  the problem with changing the macro's params is that it's global and would change everything that's already assigned that role. It would be nice if users could add their own roles and define their own params but I get the sense that most good IT guys don't bother with sp roles. My problem is I'm naturally drawn to GUIs so I always end up doing some config via the web and some by cli.  It's weird cuz I am a programmer and I'm comfortable using cli but I can't help but use the gui too.

509
Views
0
Helpful
3
Replies
CreatePlease to create content