CMD – Cisco
interface vlan 1: This is a global command used to configure the interface for VLAN.
ip default-gateway [address]:
This is a global command and set default gateway.
ip address [address][subnet mask]:
This command is used to configure the interface and set the ip address
interface fast Ethernet 0/x:
This command put user into user configuration mode.
speed {10/100/1000/auto/nonegotiate}:
This command set the speed of the interface.
duplex {auto/full/half}:
This command sets duplex mode for interface.
switchport port-security mac-address:
This command statically adds MAC address as allowed address on the port.
switchport port-security mac-address sticky:
This command tells switch to learn MAC addresses on the interface and add as secure MACs.
switchport port-security violation {protect/restrict/shutdown}:
This command tells switch what to do if an appropriate MAC tries to access through secure switch port.
switchport port-security maximum [value]:
This command allowed max of secure MAC on the interface.
hostname [name]:
This command assigns hostname to the switch.
line vty 0 15:
This command enters vty configuration mode.
line con 0:
This command enters console configuration mode.
login:
This command tells switch to ask for password.
password[password]:
This command sets the password.
enable password [password]:
This command sets password to enter privileged mode.
enable secret [password]:
This command sets encrypted password.
configure terminal:
This command enters configuration mode.
show interfaces fastethernet 0/x:
This command displays interface status.
show interfaces:
This command displays information about specific interface.
show interfaces vlan 1:
This command displays the ip address configuration.
show [running/startup]-config:
This command displays RAM/NVRAM settings.
show-mac-address-table:
This command displays the MAC address table.
show port-security:
[interface] [address]: This command shows security options on the interface.
show version:
This command displays the hardware and software status of the switch.
show flash:
This command displays the files and directories reside in the flash.
show history:
This command displays the last ten commands.
erase startup-config:
This command erases startup configuration. |
