Switch configuration

Posted: March 4, 2011 in Networking, Switch
Tags: , ,


Enable mode: Used to view the switch configuration, port status and basic stuffs.

COMMAND: enable



Config mode: Higher lever mode to view advanced features, configure the device.  It is the mode from where all other modes can be entered.

COMMAND: configure



Interface mode:  used for configuring the interface

COMMAND: interface <ifname>

IDENTIFICATION: (config-if)#



Step 1) Set hostname

# configure

(Config)# hostname <name>


Step2) configure management ip

(Config)# interface vlan 1

(config-if)# ip address <ip add> <mask>


Step3) configure the username & password for Level 15

Config)# username <uname> password <pwd> level 15


Step4) configure default gateway

Config)# ip default-gateway <gatewayip>


Step5) configure http access

Config)# ip http authentication local


Step6) configure telnet, ssh and console password

Config)# line console

Config-line)# password <pwd>


Config)# line  telnet

Config-line)# password <pwd>


Config)# line ssh

Config-line) password <pwd>


Step7) Setup VLAN

Config)# vlan database

Config-vlan)# vlan 250




Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s