Configuration commands and context configuration modes

You can execute any configuration command in the global configuration mode or in selected context modes. However, using a context mode enables you to execute context-specific commands faster, with shorter command strings.

The switch offers interface (port or trunk group) and VLAN context configuration modes:

Port or trunk-group context. Includes port-or trunk-specific commands that apply only to the selected port(s) or trunk group, plus the global configuration, Manager, and Operator commands. The prompt for this mode includes the identity of the selected port(s):

switch(config)# interface c3-c6
switch(eth-C5-C8)#
switch(config)# interface trk1
switch(eth-Trk1)#

Commands executed at configuration level for entering port and trk1static trunk-group contexts, and resulting prompts showing port or static trunk contexts.

switch(eth-C5-C8)#
switch(eth-Trk1)#
switch(eth-C5-C8)# ?
switch(eth-C5-C8)# ?

Lists the commands you can use in the port or static trunk context, plus the Manager, Operator, and context commands you can execute at this level.

Context-specific commands affecting port context

VLAN context. Includes VLAN-specific commands that apply only to the selected VLAN, plus Manager and Operator commands. The prompt for this mode includes the VLAN ID of the selected VLAN. For example, if you had already configured a VLAN with an ID of 100 in the switch:


switch(config)# vlan 100

Command executed at configuration level to enter VLAN 100 context.


switch(vlan-100)#

Resulting prompt showing VLAN 100 context.


switch(vlan-100)# ?

Lists commands you can use in the VLAN context, plus Manager, Operator, and context commands you can execute at this level.

Context-specific commands affecting VLAN context