Config Commands Flashcards
Configure device system name
config t
hostname hostname
Set the encrypted enable password
config t
enable secret password
Set an unencrypted enable password
enable password password
Enable password encryption on all clear text passwords within config file
config t
service password-encryption
Assign IP address to a VLAN
config t
int vlan [vlan number]
ip address [ip address] [subnet mask]
Assign default gateway
config t
ip default-gateway [ip address]
Set interface description
config t
int [interface number]
description description
Add and name a vlan
config t
vlan [vlan number]
name [vlan name]
Configure speed
config t
int [interface number]
speed [10, 100, 1000, auto]
Configure duplex setting
config t
int [interface number]
duplex [auto, full, half]
Assign interface to a VLAN
config t
int [interface]
switchport mode access vlan [vlan number]
Enable Port Security
config t
int [interface]
switchport mode access
switchport port-security mac-address sticky
Configure Telenet sessions with password
config t
line vty [first line] [last line]
login
password [password]
Synchronize console messages
logging synchronous
Set timezone and automatically adjust
config t
clock timezone [timezone] [hours offset from gmt]
clock summer-time [timezone] recurring
Set the switch priority for vlan
config t
spanning-tree vlan [vlan number] priority [priority number]
Enable portfast
config t
int [interface number]
spanning-tree portfast
Enable RSTP/PVST
config t
spanning-tree mode [rapid-pvst, pvst]
Creat vlan
config t
vlan [vlan number]
name [vlan name]
Force interface into trunk
config t
int [interface]
switchport mode trunk
Assign switch to VTP domain
config t
vtp domain [domain name]
Change VTP mode to client
config t
vtp mode client
Enable http server to SDM can be used
config t
ip http server
Define username and password for protocols on router/switch
config t
username [username] password [password]
Disable DNS lookup
config t
no ip domain-lookup
Set logical bandwidth of interface
config t
int [interface]
bandwidth [bandwidth]
(used by routing protocols, SNMP, queuing, etc)
Set physical clock
config t
int [interface]
clock rate 64000
Set the serial interface WAN encapsulation
config t
int s[serial interface]
encapsulation [frame-relay, hdlc, ppp]
Add authentication on PPP
config t
int s[interface number]
encapsulation ppp
ppp authentication [pap, chap]
Add static route
config t
ip route [network/host address] [mask] [address/interface to exit] [OPTIONAL* adminstrative distance number (default is 1)]
Enable RIP v1 on all local interfaces
config t
router rip
network [network ip address]
Enable RIP v2
config t
router rip
network [network ip]
version 2
Enable router as DHCP service
config t
ip dhcp pool [name of pool]
network [network ip] [mask]
default-router [default router IP]
exit
ip dhcp exlcuded-address [ip addys to exclue] [mask]
Create logical subinterface for 802.1q trunking
config t
int [interface address.subinterface]
encapulation dot1q [vlan id]
ip address [vlan ip default ip] [vlan mask]
Enable OSPF
config t
router ospf [ospf instance number]
network [network ip] [wildcard mask] area [area number]
Configure EIGRP
config t
router eigrp [ASN number]
network [network ip] OR
network [network ip] [wildcard mask]
Define Standard ACL
config t
access-list [number of access list] [permit, deny] [ip to permit/deny]
Define Extended ACL
access-list [access list number 100-199] [permit/deny] [eigrp, icmp, ip, osfp, tcp udp] [source address, any, host host ip] [destination ip address, any, host host ip] eq [ftp, smtp, telnet, www]
Attach ACL to interface
config t
int [interface]
ip access-group [access list] [in, out]
Config static NAT
ip nat [inside, outside] source static [inside local IP] interface [interface id to exit]
Define interface which NAT takes place on
config t
int [interface]
ip nat [inside, outside]
Enable RIPng
config t
ipv6 unicast-routing
ipv6 router rip ccna
interface [interface number]
ipv6 rip ccna enable