Commands For Cisco
Commands For Cisco
Switch> enable
Switch# configure terminal
Switch(config)# hostname [YourSwitchName]
Switch(config)# no ip domain-lookup
# Assign an IP Address and Default Gateway
Switch(config)# interface vlan1
Switch(config-if)# ip address [IP_ADDRESS] [SUBNET_MASK]
Switch(config-if)# no shutdown
Switch(config)# ip default-gateway [GATEWAY_IP]
# Encrypt Clear Text Passwords
Switch(config)# service password-encryption
# Configure Console and VTY Passwords
Switch(config)# line console 0
Switch(config-line)# password cisco
Switch(config-line)# login
Switch(config-line)# logging synchronous
Switch(config)# line vty 0 4
Switch(config-line)# password cisco
Switch(config-line)# login
Switch(config-line)# logging synchronous
# Privileged EXEC Password
Switch(config)# enable secret class
# Banner Configuration
Switch(config)# banner login #Unauthorised access is prohibited and will be strictly prosecuted.#