cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1102
Views
0
Helpful
3
Replies

What do cisco marco's do

nygenxny123
Level 1
Level 1

I have read cisco's doc on what macro's do and am still unclear..

I found this configuration in a switch that we are taking over

I dont see the word macro in the config in any other place but this interface

interface GigabitEthernet0/17

switchport trunk encapsulation dot1q

switchport trunk allowed vlan 14,17

switchport mode trunk

macro description cisco-switch | cisco-switch | cisco-switch

auto qos voip trust

spanning-tree link-type point-to-point

nyc-swi#show parser macro name cisco-switch

Macro name : cisco-switch

Macro type : default interface

# macro keywords $native_vlan

# Access Uplink to Distribution

# Do not apply to EtherChannel/Port Group

switchport trunk encapsulation dot1q

# Define unique Native VLAN on trunk ports

# Recommended value for native vlan should not be 1

switchport trunk native vlan $native_vlan

# Update the allowed VLAN range such that it

# includes data, voice and native VLANs

switchport trunk allowed vlan ALL

# Hardcode trunk

switchport mode trunk

# Configure qos to trust this interface

auto qos voip trust

# 802.1w defines the link as pt-pt for rapid convergence

spanning-tree link-type point-to-point

3 Replies 3

paolo bevilacqua
Hall of Fame
Hall of Fame

The hardcoded macro doesn't show in configuration but you have correctly visualized its definitions.

Then it's up to you to decide if these are appropriate for your application.

Ok..so basically i could make

a macro that for examples

makes all interfaces 100 full duplex

set for vlan 5

and portfast?

than just apply this macro to the interfaces

that i want to have the configuration?

and as you said...cisco ships with

default macros?

Yes. Try show parser macro to see them all.

Review Cisco Networking products for a $25 gift card