intro
around 2 years ago, i started studying for the ccna. i started from practically no knowledge, but finally reached a point of enlightenment. here i'll be building a whole sample codebase for cisco routers, switches, and end device configurations
basic device configuration
a few simple commands (in no particular order) for routers and switches goes as follows:
"no ip domain look"
"enable secret _____"
"line con 0" "password _____" "login"
"hostname _____"
"show run"
"show ip int bri"
"reload"
"copy run start"
"banner motd _________"
"service password-encryption"
"no shutdown"
router specific commands
"int g0/1"
"int range g0/1-2"
"ip add [ip] [subnet mask]"
"ip route [destination network] [mask] [next-hop ip]"
"ip route [destination network] [mask] [exit-interface]"
"ip route 0.0.0.0 0.0.0.0 [next-hop ip]"
"router rip"
"version [1|2]"
"network [network address]"
"no auto-summary"
"router ospf [process-id]"
"router-id [id]"
"network [network] [wildcard-mask] area [area-id]"
"router eigrp [asn]"
"network [network address] [wildcard mask]"
"no auto-summary"
"ip dhcp excluded-address [start ip] [end ip]"
"ip dhcp pool [name]"
"network [network address] [mask]"
"default-router [gateway ip]"
"dns-server [dns ip]"
"domain-name [domain]"
"interface [type][slot/port]"
"ip helper-address [dhcp server ip]"
"ipv6 unicast-routing"
"interface [type][slot/port]"
"ipv6 address [ipv6 address]/[prefix-length]"
"ipv6 dhcp pool [name]"
"address prefix [ipv6 prefix]/[length]"
"dns-server [ipv6 dns]"
"domain-name [domain]"
"interface [type][slot/port]"
"ipv6 dhcp server [pool name]"
"ipv6 nd managed-config-flag"
"access-list [number] permit [source] [wildcard]"
"access-list [number] deny [source] [wildcard]"
"interface [type][slot/port]"
"ip access-group [number] [in|out]"
"ip nat inside source list [acl-number] interface [outside-interface] overload"
"interface [inside-interface]"
"ip nat inside"
"interface [outside-interface]"
"ip nat outside"
"show ip interface brief"
"show running-config"
"show ip route"
"show ip protocols"
"show arp"
"ping [ip]"
"traceroute [ip]"
switch specific commands
"vlan [vlan-id]"
"name [vlan-name]"
"interface [type][slot/port]"
"switchport mode access"
"switchport access vlan [vlan-id]"
"description [text]"
"interface [type][slot/port]"
"switchport mode trunk"
"switchport trunk allowed vlan [vlan-list]"
"interface vlan [vlan-id]"
"ip address [ip] [subnet mask]"
"ip default-gateway [ip]"
"interface range [type][slot/port]-[end-port]"
"switchport mode access"
"switchport access vlan [vlan-id]"
"spanning-tree mode [pvst|rapid-pvst]"
"spanning-tree vlan [vlan-id] priority [value]"
"spanning-tree portfast"
"spanning-tree bpduguard enable"
"interface [type][slot/port]"
"switchport port-security"
"switchport port-security maximum [number]"
"switchport port-security violation [protect|restrict|shutdown]"
"switchport port-security mac-address sticky"
"interface [type][slot/port]"
"speed [auto|10|100|1000]"
"duplex [auto|full|half]"
"show vlan brief"
"show interfaces status"
"show mac address-table"
"show running-config"
"show spanning-tree"
"show port-security interface [type][slot/port]"
"show interfaces trunk"