Cheat sheets for various stuff
sudo screen /dev/ttyUSB0 9600
| Task | Command |
|---|---|
| Show IPv4 settings | show ip interface brief |
| Show IPv6 settings | show ipv6 interface brief |
| Show routing table | show ip route |
| Show config | show running-config |
| Show VLAN (switch) info | show vlan |
Getting started:
Router>enable
Router#configure terminal
Router(config)#
config-ifSet an IPv6 address:
Router(config)#interface G0/0/0
Router(config-if)#ipv6 address 2001:DB8:0:1::/64
Router(config-if)#ipv6 enable
Router(config-if)#no shutdown
Router(config-if)#exit
| Task | Command |
|---|---|
| Enable crossover cable autodetect | mdix auto |
enableip tftp source-interface INTERFACEcopy tftp runExample:
#copy tftp running-config
Address or name of remote host []? IP_ADDRESS
Source filename []? FILENAME
Destination filename [running-config]?
Accessing tftp://IP_ADDRESS/FILENAME...
Loading FILENAME from IP_ADRESS (via INTERFACE): !
[OK - 1273 bytes]
...
| Task | Command |
|---|---|
| Set default GW | ip route 0.0.0.0 0.0.0.0 GW_ADDR |
| Route to network | ip route NET_ADDR NET_MASK NEXT_HOP |
| Task | Command |
|---|---|
| Enable routing | ipv6 unicast-routing |
| Directly attached static route | ipv6 route 2001:DB8::/32 g1/0/0 |
| Recursive static route | ipv6 route 2001:DB8::/32 2001:DB8:3000:1 |
Resources:
ip nat insideip nat outsideip nat inside source list 1 interface G0/0/0 overloadaccess-list 1 permit NET_ADDR WILDCARD, e.g.
access-list 1 permit 192.168.0.0 0.0.0.255Router(config)#ip dhcp pool POOL_NAME
Router(dhcp-config)#network NET_ADDR NET_MASK
Router(dhcp-config)#default-router GW_ADDR
Router(dhcp-config)#dns-server DNS_ADDR
Router(dhcp-config)#ip dhcp excluded-address START END
option 150 ip TFTP_ADDRshow ip int brshow ip ? -> shows possible expansions of an incomplete commandinterface vlan 1ip address 192.168.200.13 225.225.225.248no shutdownenddelete flash:vlan.dat: VLAN-settings verwijderenerase startup-config: alle manuele instellingen verwijderenreload