# Cisco Commands ## Basic info ### Router #### Factory default `erase startup-config` verwijder de huidige startup configuratie `reload` het systeem heropstarten #### Basic commands ##### Start configuratie commands `conf t` opent de config terminal `no ip domain-lookup` disable domain lookup (verspilt veel tijd als je je mistyped) `end` of `exit` de config terminal verlaten `hostname <name>` de hostname aanpassen van de huidige router **name** ##### Configure interface commands `int fa 0/0` select specifieke interface om te configureren `ip add 10.8.8.1 255.255.255.0` een ip addres toekennen aan de interface `descr LAN` of `no shutdown` beschrijving van de verbinding `no shut` de interface aanzetten, niet laten uitgaan `no ip proxy-arp` dissable proxy arp over subnets ##### Configure routes commands `ip route 0.0.0.0 0.0.0.0 <ip>` alles wat niet gekend is doorsturen naar **ip** ##### Configuratie storage commands `copy running-config startup-config` of `copy r s` de huidige configuratie opslaan in nvram ##### Show commands `show running-config` of`sho run` huidige configuratie tonen `sho ip int` returns alle interfaces > gi0/0 -- Gigabiteternet 0/0 fa1/1 -- Fastethernet 1/1 se0/1/0 -- Serial 0/1/0 `show ip route` of `sho ip route` show ip routing table `sho cont ser` of `show controllers serial` toont de informatie van de interface hardware `sho int status` de status van de interface opvragen `show version` of `sho ver` software en hardware info opvragen `show running-config` of `sho run` de running config tonen ##### create DHCP service It's important to configure a relay aswel when using the mikrotik with arp disabled. (without the disabled arp it won't work) `ìp dhcp excluded-address <ip_address>` remove an ip address from the pool `ip dhcp pool <pool_name>` name the pool you will create `network <network_addr> <subnetmask>` `default-router <gateway_addr>` of `default-gateway` voor een default gateway toe te voegen aan de dhcp pool `dns-server <ip_add>` adding ip address with a dns server `service dhcp` assign inteface to dhcp (confusing command?) ### Securing Enable security for line console 0 (usualy the only console port) ![](https://i.imgur.com/cOAOHr7.png) Enable priviliged exec ![](https://i.imgur.com/AJbmqb5.png) Securing SSH/Telnet ![](https://i.imgur.com/tFnTty5.png) Encrypt given passwords ![](https://i.imgur.com/myMkc8c.png) ### Random FYI Change banner text: ![](https://i.imgur.com/hBmGljo.png) ### Switch #### Factory default `del vlan.dat` alle vlan data verwijderen `erase startup-config` de huidige startup configuratie verwijderen `reload` het systeem heropstarten ### Save config and push to pc `copy r s` copy running config to saved config `copy run tftp` command to start tftp config, you'll have to give the ip_addres it will try to reach followed by the folder