how to add ip address to vlan

24 12 2007

connect to console

switch> enable
Password: [your privileged exec password]

switch#configure terminal
switch(conf)#interface vlan 10
switch(conf-if)#ip address 192.168.0.254 255.255.255.0
switch(conf-if)#ip default-gateway 192.168.1.1
switch(conf-if)#end
switch#

[optional] backup your old configuration
switch#copy startup-config startup-config.241207

save your running configuration (so that it will run on boot)
switch#copy running-config startup-config





how to add | edit cisco switch port description

24 12 2007

This will show you how to add or edit cisco switch port description.

The following example show you how to edit description for switchport1 = FastEthernet0/1 or fa0/1

launch your telnet client/console

Password:[your telnet password]
switch>enable
Password:[your privileged exec password]

switch#configure terminal
switch(config)#interface fa0/1
switch(config-if)#description “This is 1st Port of My Switch”
switch(config-if)#end
switch#

[optional] Backup your old configuration
switch#copy startup-config startup-config.241207

Save your running configuration (so that it will start at boot)
switch#copy running-config startup-config





how to create cisco vlan

24 12 2007

suppose you would like to create the following vlan
vlan 10 = Manager
vlan 11 = Staff

connect to console

Password : [your telnet password]
switch> enable
Password : [your privileged exec password]

switch# vlan database
switch(vlan)# vlan 10 name Manager
vlan 10 added :
name : Manager

switch(vlan)# vlan 11 name Staff
vlan 11 added :
name : Staff

switch(vlan)# exit
Apply completed
Exiting …

switch# configure terminal

switch(config)# interface vlan 10
switch(config-if)#description “VLAN Manager”
switch(config-if)#no shutdown
switch(config-if)#exit

switch(config)# interface vlan 11
switch(config-if)#description “VLAN Staff”
switch(config-if)#no shutdown
switch(config-if)#exit

you’re basically done …
to be able to telnet from network, you should assign an ip address for vlan.
you can find it in my How to add ip address to vlan





how to backup cisco configuration file

24 12 2007

launch your telnet / console

Password : [your telnet password]
switch > enable
Password : [your privileged exec password]

switch # copy startup-config startup-config.241207

note : 241207 is date for better backup archiving.





how to change cisco hostname

24 12 2007

launch your telnet session or console

password : [enter your telnet password here]
switch> en
password : [enter your privileged exec password here]

switch # configure terminal
switch (config) # hostname MYSWITCH
MYSWITCH (config) # end

[optional] Backup your old setup
MYSWITCH # copy startup-config startup-config.bak

Save your running setup (so it will start at boot)
MYSWITCH # copy running-config startup-config