Misc Smartport Macros

REFERENCE

Configuring Smartports Macros

MEMO

Cat3750-1#show vlan b

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Fa1/0/1, Fa1/0/2, Fa1/0/3
                                                Fa1/0/4, Fa1/0/5, Fa1/0/6
                                                Fa1/0/7, Fa1/0/8, Fa1/0/9
                                                Fa1/0/10, Fa1/0/11, Fa1/0/12
                                                Fa1/0/13, Fa1/0/14, Fa1/0/15
                                                Fa1/0/16, Fa1/0/17, Fa1/0/18
                                                Fa1/0/19, Fa1/0/20, Fa1/0/21
                                                Fa1/0/22, Fa1/0/23, Gi1/0/1
                                                Gi1/0/2
1002 fddi-default                     act/unsup
1003 trcrf-default                    act/unsup
1004 fddinet-default                  act/unsup
1005 trbrf-default                    act/unsup
Cat3750-1#
Cat3750-1#conf t
Cat3750-1(config)#define interface-range EVEN-NUM-IF fa1/0/2,fa1/0/4,fa1/0/6
Cat3750-1(config)#
Cat3750-1(config)#int range macro EVEN-NUM-IF
Cat3750-1(config-if-range)#switchport access vlan 30
% Access VLAN does not exist. Creating vlan 30
Cat3750-1(config-if-range)#end
Cat3750-1#
Cat3750-1#show vlan b

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Fa1/0/1, Fa1/0/3, Fa1/0/5
                                                Fa1/0/7, Fa1/0/8, Fa1/0/9
                                                Fa1/0/10, Fa1/0/11, Fa1/0/12
                                                Fa1/0/13, Fa1/0/14, Fa1/0/15
                                                Fa1/0/16, Fa1/0/17, Fa1/0/18
                                                Fa1/0/19, Fa1/0/20, Fa1/0/21
                                                Fa1/0/22, Fa1/0/23, Gi1/0/1
                                                Gi1/0/2
30   VLAN0030                         active    Fa1/0/2, Fa1/0/4, Fa1/0/6
1002 fddi-default                     act/unsup
1003 trcrf-default                    act/unsup
1004 fddinet-default                  act/unsup
1005 trbrf-default                    act/unsup
Cat3750-1#

コメント