General Commands
configure terminal
➔ allows to change the device configurations
(config) hostname [name]
➔ allows to change the name of the device
(config) no ip domain-lookup
➔ prevents miswritten commands from being interpreted
(config) interface [interface name]
➔ access the selected interface configurations
(config-if) no shutdown
➔ will prevent the interface from shutting down
(config-if) ip address [IP address] [subnet mask]
➔ assign an IP address and subnet mask to a device interface
show running-config
➔ shows router configurations
show ip interface brief
➔ shows the status of interfaces available in the device
Routing
(config) ip route 0.0.0.0 0.0.0.0 [next hop address] [priority]
➔ sets the default route
(config) ip route [target network] [network mask] [next hop address] [priority]
➔ sets the route for a target network address
show ip route
➔ shows router paths
(Command Prompt)
ipconfig /all
➔ shows all information regarding address configuration
ipconfig /release
➔ releases the device from the assigned address
ipconfig /renew
➔ send another request for a different address
tracert [target address]
➔ shows all hops done by a sent package
DHCP
(config) ip dhcp excluded–address [low range address] [high range address]
➔ exclude address range or individual address from dhcp
(config) ip dhcp pool [name]
➔ creates dhcp address pool and enter its settings
(dhcp-config) network [network address] [network subnet mask]
➔ defines network address for dhcp server
(dhcp-config) default-router [router address]
➔ defines default router address for dhcp server
(dhcp-config) dns-server [address to DNS server]
➔ defines dns server address for dhcp server
show ip dhcp binding
➔ shows what what addresses have been associated to device MACs
IPv6 & SLAAC
(config) ipv6 unicast-routing
➔ enables ipv6
(config-if) ipv6 address [ipv6 address][prefix]
➔ assign an IPv6 address and prefix to a device interface
Static NAT & PAT (beta)
(config) ip nat inside source static [inside local address] [inside global address]
➔ assigns a static public address to devices associated with private address
(config) access-[list number] permit [apply to addresses with i.e. 192.168.0.0] [mask for
addresses with i.e. 0.0.255.255]
➔ allows NAT to affect addresses and masks in said list
(config) ip nat inside source [list number] interface [inside interface of gateway] overload
➔ makes NAT affect addresses inside said interface
(config) ip nat inside source [list number] pool [pool name]
➔ makes NAT affect addresses inside selected pool of addresses
(config) ip nat inside
➔ declares what interface is the inside interface of NAT
(config) ip nat outside
➔ declares what interface is the outside interface of NAT