Entering Commands 4

Configuration Commands

Configuration commands are privileged level commands used to modify switch settings. These commands modify the running configuration only and are not saved when the switch is rebooted. To store the running configuration in non-volatile storage, use the copy running-configstartup-configcommand.

The configuration commands are organized into different modes:

Global Configuration - These commands modify the system level configuration, and include commands such as hostname and snmp-server community.

Access Control List Configuration - These commands are used for packet filtering.

Interface Configuration - These commands modify the port configuration such as speed-duplexand negotiation.

Line Configuration - These commands modify the console port and Telnet configuration, and include command such as parity and databits.

VLAN Configuration - Includes the command to create VLAN groups.

To enter the Global Configuration mode, enter the command configure in Privileged Exec mode. The system prompt will change to “Console(config)#” which gives you access privilege to all Global Configuration commands.

Console#configure

Console(config)#

To enter the other modes, at the configuration prompt type one of the following commands. Use the exit or end command to return to the Privileged Exec mode.

Table 4-2 Configuration Modes

Mode

Command

Prompt

Page

Line

line {console vty}

Console(config-line)#

4-10

 

 

 

 

Access

access-list ip standard

Console(config-std-acl)

4-89

Control List

access-list ip extended

Console(config-ext-acl)

4-91

 

access-list mac

Console(config-mac-acl)

4-96

Class Map

class map

Console(config-cmap)

4-198

 

 

 

 

Interface

interface {ethernet port port-channel id vlan id}

Console(config-if)#

4-120

 

 

 

 

MSTP

spanning-tree mst-configuration

Console(config-mstp)#

4-154

 

 

 

 

Policy Map

policy map

Console(config-pmap)

4-200

 

 

 

 

VLAN

vlan database

Console(config-vlan)

4-167

 

 

 

 

For example, you can use the following commands to enter interface configuration mode, and then return to Privileged Exec mode

Console(config)#interface ethernet 1/5

.

.

.

Console(config-if)#exit

Console(config)#

4-7

Page 249
Image 249
SMC Networks SMC8150L2 manual Configuration Commands, Configuration Modes Command Prompt, Consoleconfig-if# 120