Saturday, February 24, 2007

IOS commands

IOS Command Modes

IOS has several command modes. Each mode can be identified by the prompt.
Switch>           - user mode
Switch#           - enable mode
Switch(vlan)#           - Vlan database mode
Switch(config)#           - global configuration mode
Switch(config-if)#           - interface configuration mode
Switch(config-line)#           - line (vty/aux/console) configuration mode

enable - change to enable/privilige mode
disable - change to user mode
configure terminal - change to global config mode
show interface
show version
show vlan
vlan database - change to vlan database mode
vlan [VlanID] - create a new vlan in vlan database mode
switchport access vlan [VlanID] - change a switch port to a new Vlan

3/4/07

switchport mode trunk - change a switch port to trunk mode
switchport trunk encapsulation [ISL/Dot1q] - change trunk type of a switch port
switchport trunk vlan allow [VlanID] - set allowable vlan to a trunk port
switchport trunk vlan allow add [VlanID] - add allowable vlan to a trunk port
switchport trunk vlan remove [VlanID] - remove allowable vlan from a trunk port

encapsulation dot1q [VlanID] - configure router subinterface as a vlan trunk

show ip interface brief - check current ip interfaces
show running-config - check current configuration
enable password [PASSWORD] - set privilege level password (insecure)
enable secret [PASSWORD] - set privilege level password (secure)
line vty 0 4 - change to vty (telnet) line config mode
line aux 0 - change to aux (modem) line config mode
line console 0 - change to console line config mode
service password-encryption - scramble/encrypt clear text passwords

2 Comments:

Blogger saw said...

can we have access to switch?
how can i install ethereal (wireshark) to linux system?
is ethereal gui or can it run as cli?
reason is i can sit with my laptop (without having cable connected) and access to linux machine and running ethereal.

6:50 PM  
Blogger ေက်ာ္ေက်ာ္ခုိင္ said...

#1 switch access
I do not have a terminal server and it is not trivial to setup remote access without a terminal server.

#2 wireshark/ethereal
Yes is the answer for all the questions about wireshark/etheral.

Detail steps can be found at wireshark.org website. RTMP eh?

8:05 PM  

Post a Comment

<< Home