Cisco Networking
Cisco Networking
Cisco Networking
Cheat Sheet
By Edward Tetz
To create and con gure a Cisco network, you need to know about routers and switches to develop
and manage secure Cisco systems. Become acquainted with Cisco network devices and code
listings; and nd out how to manage static routing and view routing information.
7. Responsible for initiating or services the SMTP, DNS, HTTP, and Telnet
Application request.
https://www.dummies.com/programming/networking/cisco-networking-all-in-one-for-dummies-cheat-sheet/ 1/10
10/28/2019 Cisco Networking All-in-One For Dummies Cheat Sheet - dummies
3. Network Responsible for logical addressing and IP, ICMP, ARP, RIP, IGRP, and routers
routing
2. Data Link Responsible for physical addressing, error MAC address, CSMA/CD, switches, and
correction, and bridges
preparing the information for the media
1. Physical Deals with the electrical signal. Cables, connectors, hubs, and repeaters
User EXEC mode: When you connect to a Cisco device the default con guration mode is user
exec mode. With user exec mode you can view the settings on the device but not make any
changes. You know you are in User EXEC mode because the IOS prompt displays a “>”.
https://www.dummies.com/programming/networking/cisco-networking-all-in-one-for-dummies-cheat-sheet/ 2/10
10/28/2019 Cisco Networking All-in-One For Dummies Cheat Sheet - dummies
Privileged EXEC mode: In order to make changes to the device you must navigate to
Privileged EXEC mode where you may be required to input a password. Privileged EXEC mode
displays with a “#” in the prompt.
Global Con guration mode: Global Con guration mode is where you go to make global
changes to the router such as the hostname. To navigate to Global Con guration mode from
Privileged EXEC mode you type “con gure terminal” or “conf t” where you will be placed at the
“(con g)#” prompt.
Sub Prompts: There are a number of di erent sub prompts from Global Con guration mode
you can navigate to such as the interface prompts to modify settings on a speci c interface, or
the line prompts to modify the di erent ports on the device.
For your router interfaces the following example will set speed, duplex and IP con guration
information for the interface FastEthernet 0/0 (notice the interface reference as slot/port). In the
case of the router, the interface is enabled using the no shutdown command in the nal step;
interfaces on switches are enabled by default.
Router1>enable
Router1#configure terminal
Router1(config)#interface FastEthernet0/0
Router1(config-if)#description Private LAN
Router1(config-if)#speed 100
Router1(config-if)#duplex full
Router1(config-if)#ip address 192.168.1.1 255.255.255.0
Router1(config-if)#no shutdown
https://www.dummies.com/programming/networking/cisco-networking-all-in-one-for-dummies-cheat-sheet/ 3/10
10/28/2019 Cisco Networking All-in-One For Dummies Cheat Sheet - dummies
Switch1>enable
Switch1#configure terminal
Switch1#interface VLAN 1
Switch1(config-if)#ip address 192.168.1.241 255.255.255.0
Router1>enable
Router1#configure terminal
Router1(config)#interface FastEthernet0/0
Router1(config-if)#ip dhcp
Switch1>enable
Switch1#configure terminal
Switch1(config)#interface vlan 2
Switch1(config-if)#description Finance VLAN
Switch1(config-if)#exit
Switch1(config)#interface range FastEthernet 0/1 , FastEthernet 0/12
Switch1(config-if-range)#switchport mode access
Switch1(config-if-range)#switchport access vlan 2
If you are connecting two switches together, then you will want to allow all con gured VLANs to
pass between the two switches. This is accomplished by implementing a trunk port. To con gure
port 24 on your switch to be a trunk port, you will use the following code:
Switch1>enable
Switch1#configure terminal
Switch1(config)#interface FastEthernet 0/24
Switch1(config-if-range)#switchport mode trunk
https://www.dummies.com/programming/networking/cisco-networking-all-in-one-for-dummies-cheat-sheet/ 4/10
10/28/2019 Cisco Networking All-in-One For Dummies Cheat Sheet - dummies
To set EtherChannel to use with of the protocols you will con gure it to support one of the
following modes.
auto: Sets the interface to respond to PAgP negotiation packets, but the interface will start
negotiations on its own.
on: Forces the connection to bring all links up without using a protocol to negotiate
connections. This mode can only connect to another device that is also set to on. When using
this mode, the switch does not negotiate the link using either PAgP or LACP.
active: Sets the interface to actively attempt to negotiate connections with other LACP devices.
passive: Sets the interface to respond to LACP data if it receives negotiation requests from
other systems.
The following example will con gure EtherChannel to use group ports 11 and 12 on the switch
together using PAgP as the protocol. The same type of command would be used on the switch to
which Switch1 is connected.
Switch1> enable
Switch1# configure terminal
Switch1(config)# interface range FastEthernet0/11 -12
Switch1(config-if-range)# switchport mode access
Switch1(config-if-range)# switchport access vlan 10
Switch1(config-if-range)# channel-group 5 mode desirable
https://www.dummies.com/programming/networking/cisco-networking-all-in-one-for-dummies-cheat-sheet/ 5/10
10/28/2019 Cisco Networking All-in-One For Dummies Cheat Sheet - dummies
The following code will enable the Cisco proprietary Rapid Per VLAN Spanning Tree Protocol (PVST)
over the open standard of Multiple Spanning Tree Protocol (MSTP). In addition to con guring STP
on the switch, you will also con gure port 2 on the switch for portfast, which allows the port to
immediately transition to forwarding mode.
Switch1> enable
Switch1# configure terminal
Switch1(config)#spanning-tree mode rapid-pvst
Switch1(config)#interface FastEthernet 0/2
Switch1(config-if)#spanning-tree portfast
%Warning: portfast should only be enabled on ports connected to a single
host. Connecting hubs, concentrators, switches, bridges, etc... to this
interface when portfast is enabled, can cause temporary bridging loops.
Use with CAUTION
%Portfast will be configured in 10 interfaces due to the range command
but will only have effect when the interfaces are in a non-trunking mode.
Router1>enable
Router1#configure terminal
Router1(config)#ip routing
Whether or not you choose to use a dynamic routing protocol, you may add static routes to your
router. The following will add a static route to Router1 to send data to the 192.168.5.0/24 network
using the router with the IP address of 192.168.3.2.
https://www.dummies.com/programming/networking/cisco-networking-all-in-one-for-dummies-cheat-sheet/ 6/10
10/28/2019 Cisco Networking All-in-One For Dummies Cheat Sheet - dummies
Router1>enable
Router1#configure terminal
Router1(config)#ip routing
Router1(config)#ip route 192.168.5.0 255.255.255.0 192.168.3.2
Router2>enable
Router2#configure terminal
Router2(config)#ip routing
Router2(config)#router rip
Router2(config-router)#version 2
Router2(config-router)#no auto-summary
Router1(config-router)#network 192.168.5.0
Router2(config-router)#neighbor 192.168.1.1
Router2>enable
Router2#configure terminal
Router2(config)#ip routing
Router2(config)#router eigrp 100
Router2(config-router)#network 192.168.1.0
Router2(config-router)#network 192.168.5.0
Router2(config-router)#no auto-summary
https://www.dummies.com/programming/networking/cisco-networking-all-in-one-for-dummies-cheat-sheet/ 7/10
10/28/2019 Cisco Networking All-in-One For Dummies Cheat Sheet - dummies
Router2>enable
Router2#configure terminal
Router2(config)#interface loopback 0
Router2(config-if)#ip address 192.168.255.254 255.255.255.0
Router2(config-if)#exit
Router2(config)#router ospf 100
Router2(config-router)#network 192.168.255.254 0.0.0.0 area 0
Router2(config-router)#network 192.168.5.0 0.0.0.255 area 0
Router2>enable
Password:
Router2#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
D 192.168.10.0/24 [90/284160] via 192.168.1.1, 00:04:19, FastEthernet0/0
O 192.168.10.0/24 [110/11] via 192.168.1.1, 00:01:01, FastEthernet0/0
R 192.168.10.0/24 [120/1] via 192.168.1.1, 00:00:07, FastEthernet0/0
C 192.168.5.0/24 is directly connected, FastEthernet0/1
C 192.168.1.0/24 is directly connected, FastEthernet0/0
S 192.168.3.0/24 [1/0] via 192.168.1.1
https://www.dummies.com/programming/networking/cisco-networking-all-in-one-for-dummies-cheat-sheet/ 8/10
10/28/2019 Cisco Networking All-in-One For Dummies Cheat Sheet - dummies
Security is always a concern, and your Cisco network needs to be properly secured. In the following
sections, you see how to secure your Cisco network by con guring NAT, by con guring an ACL, and
by applying that ACL.
Router1>enable
Router1#configure terminal
Router1(config)#access-list 1 permit 10.0.0.0 0.255.255.255
Router1(config)#ip nat inside source list 1 interface FastEthernet 0/0 overload
Router1(config)#interface FastEthernet0/0
Router1(config-if)#ip nat outside
Router1(config-if)#interface FastEthernet0/1
Router1(config-if)#ip nat inside
Standard ACLs, which have fewer options for classifying data and controlling tra c ow than
Extended ACLs. They are only able to manage tra c based on the source IP address. These
ACLs are numbered from 1–99 and from 1300–1999.
Extended ACLs, which o er the ability to lter or control tra c based on a variety of criteria
such as source or destination IP addresses, as well as protocol type such as, ICMP, TCP, UDP,
or IP. These ACLs are numbered from 100–199 and from 2000–2699.
To create a standard ACL, you can use the following example which will create an ACL that allows
tra c for the 192.168.8.0/24 network.
Switch1>enable
Switch1#configure terminal
Switch1(config)#access-list 50 permit 192.168.8.0 0.0.0.255
To create an extended ACL you can use the following example which will create an ACL that allows
tra c with addresses in the 192.168.8.0/24 network and tcp ports of either 80 (http) or 443 (https):
https://www.dummies.com/programming/networking/cisco-networking-all-in-one-for-dummies-cheat-sheet/ 9/10
10/28/2019 Cisco Networking All-in-One For Dummies Cheat Sheet - dummies
Router1>enable
Router1#configure terminal
Router1(config)#access-list 101 remark This ACL is to control the outbound router traffic.
Router1(config)#access-list 101 permit tcp 192.168.8.0 0.0.0.255 any eq 80
Router1(config)#access-list 101 permit tcp 192.168.8.0 0.0.0.255 any eq 443
Router1>enable
Router1#configure terminal
Router1(config)#interface FastEthernet0/1
Router1(config-if)#ip access-group 101 out
https://www.dummies.com/programming/networking/cisco-networking-all-in-one-for-dummies-cheat-sheet/ 10/10