Dec 19, 2015 04:03 PM
(This post was last modified: Dec 19, 2015 04:12 PM by Cimex.)
Hello everyone, I decided to type with little guide for the people that want to learn more about Cisco and using the command line when messing with equipment etc. It is a way for me contribute rather than money-orientated contribution 😑
Note: If you feel any of the information provided is incorrect, feel free to post and I will credit you for corrections 🤫
![[Image: phmKDap.png]](https://i.imgur.com/phmKDap.png)
Table of Contents:
1. Introduction
2. Where to practice
3. The basic commands
4. IPv4 configuration
5. IPv6 configuration - Coming soon, can't fit on thread.
![[Image: phmKDap.png]](https://i.imgur.com/phmKDap.png)
1. Introduction
The purpose of this guide is to allow people to have a little insight on the basics of Cisco networking. If you wanted to learn and advance into networking in College / University, you will most likely start on CCNA1. The information in this thread will help you towards getting you prepared for CCNA1 and other Cisco courses.
![[Image: phmKDap.png]](https://i.imgur.com/phmKDap.png)
2. Where to practice.
I would personally recommend getting a copy of Cisco Packet Tracer Student Edition. I cannot provide information how to get a copy, as if you are eligible for one, you would probably know by now.
You could invest in your own equipment if you want. Investing in a Cisco router in your price range would be a great investment, and if you really wanted to, then eventually invest in to buying a switch to practice setting things up.
![[Image: phmKDap.png]](https://i.imgur.com/phmKDap.png)
3. The basic commands
Alright, now let's get into the commands shall we? I will supplying examples of these commands being used in Cisco Packet Tracer as well as explaining what they do.
Here's the network I will be using:
Spoiler (Click to View)
Red commands are full commands, yellow commands are shortened down examples.
enable / en - This command enables the router. Once the router has booted up, you will automatically be in "user exec" mode. Typing this command will move you to "privilege exec" mode.
configure terminal / config t / conf t - You use this command when you're in privilege exec mode. It enters "global configuration" mode - the name is self explanatory. You configure things.
hostname - sets the hostname of the router
no ip domain-lookup - stops the attempts to resolution of DNS.
banner motd #Message# - Displays a configured message to all connecting terminals.
interface fastethernet0/0 / int fa0/0 - allows you to access the configuration of that socket / port (The 0/0 is the port on the router) - I will go back to this in IP configuration!
ip address / ip add - add an IP address to an interface - I will go back to this in IP configuration!
no shutdown / no shut - enables the interface you're in (I commonly type "no shit" accidentally... it will happen... trust me 🤦♂)
![[Image: phmKDap.png]](https://i.imgur.com/phmKDap.png)
4. IPv4 configuration
Alright! Now to the good stuff!
I mentioned three commands above which are vital for IPv4 configuration. They are also similarly used in IPv6, but there's a little more to IPv6.
So, in the network diagram example I am using, you see the Fa0/0? That's the port which I am using. Nothing is connected to Fa0/1 on the router.
1. Access the interface.
Notice "config-if"? yeah... you're in!
2. Add the IP address and subnet mask.
On the network diagram I shown you on earlier in the thread, you saw I put a label above the router "192.168.100.10", therefore I am assigning that address to the router as planned. The "255.255.255.0" is the subnet mask. The .0 does not need to be changed as we have no subnets, which I will explain later.
3. Enabling the interface.
You will see some text which is a confirmation telling you that the interface state has changed to up.
And would you look at that, the line is now active:
Spoiler (Click to View)
4. PC configuration. This is different on packet tracer than Windows, but I will show you for both what to do. You need to make note of the default gateway IP (router IP) and the IP you're about to assign to the PC.
When you're going this you will be on Ethernet. So follow these steps but ignore "Wi-Fi", that will say "Ethernet" in your case.
4.1 - Access "Network and Sharing Center" on Windows.
4.2 - Click the blue "Ethernet" text"
Spoiler (Click to View)
4.3 - Click properties
4.4 - Click IPv4 so it is highlighted, then click properties.
Here is a diagram of the PC IPv4 configuration:
Spoiler (Click to View)
Do the same for PC2 but with a host ID of .30 (192.168.100.30)
5. Packet Tracer Configuration
5.1 - Click a PC
5.2 - Click "Desktop Tab"
5.3 - Click "IP Configuration"
Here is what is should look like:
Spoiler (Click to View)
Repeat this for all other PCs, in this case one more - remember to change host ID.
Alright, now to test the connectivity all we have to do is make sure both PCs can ping eachother and the router.
You can locate command prompt under "Desktop" tab of the PC when you're using packet tracer... if you don't know how to do it on Windows , open run and type "cmd" but I hope you knew that already... please.
Results:
CimexPC1 to CimexPC2 & Router:
CimexPC2 to CimexPC1 & Router:
![[Image: phmKDap.png]](https://i.imgur.com/phmKDap.png)
Note: If you feel any of the information provided is incorrect, feel free to post and I will credit you for corrections 🤫
![[Image: phmKDap.png]](https://i.imgur.com/phmKDap.png)
Table of Contents:
1. Introduction
2. Where to practice
3. The basic commands
4. IPv4 configuration
5. IPv6 configuration - Coming soon, can't fit on thread.
![[Image: phmKDap.png]](https://i.imgur.com/phmKDap.png)
1. Introduction
The purpose of this guide is to allow people to have a little insight on the basics of Cisco networking. If you wanted to learn and advance into networking in College / University, you will most likely start on CCNA1. The information in this thread will help you towards getting you prepared for CCNA1 and other Cisco courses.
![[Image: phmKDap.png]](https://i.imgur.com/phmKDap.png)
2. Where to practice.
I would personally recommend getting a copy of Cisco Packet Tracer Student Edition. I cannot provide information how to get a copy, as if you are eligible for one, you would probably know by now.
You could invest in your own equipment if you want. Investing in a Cisco router in your price range would be a great investment, and if you really wanted to, then eventually invest in to buying a switch to practice setting things up.
![[Image: phmKDap.png]](https://i.imgur.com/phmKDap.png)
3. The basic commands
Alright, now let's get into the commands shall we? I will supplying examples of these commands being used in Cisco Packet Tracer as well as explaining what they do.
Here's the network I will be using:
Spoiler (Click to View)
Red commands are full commands, yellow commands are shortened down examples.
enable / en - This command enables the router. Once the router has booted up, you will automatically be in "user exec" mode. Typing this command will move you to "privilege exec" mode.
Code
Router>en
Router#configure terminal / config t / conf t - You use this command when you're in privilege exec mode. It enters "global configuration" mode - the name is self explanatory. You configure things.
Code
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname - sets the hostname of the router
Code
Router(config)#hostname cimex
cimex(config)#no ip domain-lookup - stops the attempts to resolution of DNS.
Code
cimex(config)#no ip domain-lookup
cimex(config)#banner motd #Message# - Displays a configured message to all connecting terminals.
Code
cimex(config)#banner motd #Cisco Cimex#
cimex(config)#exit
cimex#
%SYS-5-CONFIG_I: Configured from console by console
cimex#exit
cimex con0 is now available
Press RETURN to get started.
Cisco Cimex
cimex>interface fastethernet0/0 / int fa0/0 - allows you to access the configuration of that socket / port (The 0/0 is the port on the router) - I will go back to this in IP configuration!
ip address / ip add - add an IP address to an interface - I will go back to this in IP configuration!
no shutdown / no shut - enables the interface you're in (I commonly type "no shit" accidentally... it will happen... trust me 🤦♂)
![[Image: phmKDap.png]](https://i.imgur.com/phmKDap.png)
4. IPv4 configuration
Alright! Now to the good stuff!
I mentioned three commands above which are vital for IPv4 configuration. They are also similarly used in IPv6, but there's a little more to IPv6.
So, in the network diagram example I am using, you see the Fa0/0? That's the port which I am using. Nothing is connected to Fa0/1 on the router.
1. Access the interface.
Code
cimex>en
cimex#conf t
Enter configuration commands, one per line. End with CNTL/Z.
cimex(config)#int fa0/0
cimex(config-if)#Notice "config-if"? yeah... you're in!
2. Add the IP address and subnet mask.
Code
cimex(config-if)#ip add 192.168.100.10 255.255.255.0
cimex(config-if)#On the network diagram I shown you on earlier in the thread, you saw I put a label above the router "192.168.100.10", therefore I am assigning that address to the router as planned. The "255.255.255.0" is the subnet mask. The .0 does not need to be changed as we have no subnets, which I will explain later.
3. Enabling the interface.
Code
cimex(config-if)#no shut
cimex(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
cimex(config-if)#You will see some text which is a confirmation telling you that the interface state has changed to up.
And would you look at that, the line is now active:
Spoiler (Click to View)
4. PC configuration. This is different on packet tracer than Windows, but I will show you for both what to do. You need to make note of the default gateway IP (router IP) and the IP you're about to assign to the PC.
When you're going this you will be on Ethernet. So follow these steps but ignore "Wi-Fi", that will say "Ethernet" in your case.
4.1 - Access "Network and Sharing Center" on Windows.
4.2 - Click the blue "Ethernet" text"
Spoiler (Click to View)
4.3 - Click properties
4.4 - Click IPv4 so it is highlighted, then click properties.
Here is a diagram of the PC IPv4 configuration:
Spoiler (Click to View)
Do the same for PC2 but with a host ID of .30 (192.168.100.30)
5. Packet Tracer Configuration
5.1 - Click a PC
5.2 - Click "Desktop Tab"
5.3 - Click "IP Configuration"
Here is what is should look like:
Spoiler (Click to View)
Repeat this for all other PCs, in this case one more - remember to change host ID.
Alright, now to test the connectivity all we have to do is make sure both PCs can ping eachother and the router.
You can locate command prompt under "Desktop" tab of the PC when you're using packet tracer... if you don't know how to do it on Windows , open run and type "cmd" but I hope you knew that already... please.
Results:
CimexPC1 to CimexPC2 & Router:
Code
PC>ping 192.168.100.30
Pinging 192.168.100.30 with 32 bytes of data:
Reply from 192.168.100.30: bytes=32 time=8ms TTL=128
Reply from 192.168.100.30: bytes=32 time=1ms TTL=128
Reply from 192.168.100.30: bytes=32 time=0ms TTL=128
Reply from 192.168.100.30: bytes=32 time=0ms TTL=128
Ping statistics for 192.168.100.30:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 8ms, Average = 2msCimexPC2 to CimexPC1 & Router:
Code
PC>ping 192.168.100.20
Pinging 192.168.100.20 with 32 bytes of data:
Reply from 192.168.100.20: bytes=32 time=1ms TTL=128
Reply from 192.168.100.20: bytes=32 time=0ms TTL=128
Reply from 192.168.100.20: bytes=32 time=1ms TTL=128
Reply from 192.168.100.20: bytes=32 time=0ms TTL=128
Ping statistics for 192.168.100.20:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 1ms, Average = 0ms
PC>ping 192.168.100.10
Pinging 192.168.100.10 with 32 bytes of data:
Reply from 192.168.100.10: bytes=32 time=1ms TTL=255
Reply from 192.168.100.10: bytes=32 time=0ms TTL=255
Reply from 192.168.100.10: bytes=32 time=0ms TTL=255
Reply from 192.168.100.10: bytes=32 time=0ms TTL=255
Ping statistics for 192.168.100.10:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 1ms, Average = 0ms![[Image: phmKDap.png]](https://i.imgur.com/phmKDap.png)
5. IPv6 configuration
![[Image: phmKDap.png]](https://i.imgur.com/phmKDap.png)
Alright! You've made it this far, well done 🤐 don't worry! IPv6 isn't that bad!
Let's go back to the terminal!
Here is the series of commands you will be doing.
So, you're already familiar with some of these commands... but let's go into some detail on some new ones.
ipv6 unicast-routing:
Without this command, the router will act like an IPv6 host. If you wanted to forward packets across the network, you need this command. Without it, there would be no net flow.
ipv6 add 2001:8db:ACAD::/48 eui-64:
2001:8db:ACAD is that network host I decided to chose. The /48 is the prefix length I am using. The reason it is after two colons is because of the eui-64 command afterwards. This command is used to deploy and automatic host ID to the IPv6 network ID for the router. I will go into more detail about that later.
You may choose your own IPv6 address remember. But stick with "2001" at the beginning.
Once you have followed those series of commands, let's go find what IP address was deployed to the router.
Exit back to privilege exec mode (en) and type this command in:
show ipv6 int brief
As you can see we have our 2001 address up and running on fa0/0. Now you have that, time to configure the PCs. Save that IP to a text document or keep it up on your screen.
The same way you accessed your IPv4 settings, open your IPv6 settings on Windows and here's what I have:
Spoiler (Click to View)
I just took this part of the IPv6 address 2001:8DB:ACAD, added two semi colons, and gave the PC a host ID of 1.
There is the prefix length we setup and the default gateway.
You can also do this on packet tracer, the same section where you setup IPv4.
Ping results:
PC1 to Router & PC2:
PC2 to Router & PC1:
That ends this tutorial. I will expand on it in the future, just thought I would put this out first. Thank you all for reading :)
![[Image: phmKDap.png]](https://i.imgur.com/phmKDap.png)
![[Image: phmKDap.png]](https://i.imgur.com/phmKDap.png)
Alright! You've made it this far, well done 🤐 don't worry! IPv6 isn't that bad!
Let's go back to the terminal!
Here is the series of commands you will be doing.
Code
cimex>en
cimex#conf t
Enter configuration commands, one per line. End with CNTL/Z.
cimex(config)#ipv6 unicast-routing
cimex(config)#int fa0/0
cimex(config-if)#ipv6 add 2001:8db:ACAD::/48 eui-64
cimex(config-if)#no shutSo, you're already familiar with some of these commands... but let's go into some detail on some new ones.
ipv6 unicast-routing:
Without this command, the router will act like an IPv6 host. If you wanted to forward packets across the network, you need this command. Without it, there would be no net flow.
ipv6 add 2001:8db:ACAD::/48 eui-64:
2001:8db:ACAD is that network host I decided to chose. The /48 is the prefix length I am using. The reason it is after two colons is because of the eui-64 command afterwards. This command is used to deploy and automatic host ID to the IPv6 network ID for the router. I will go into more detail about that later.
You may choose your own IPv6 address remember. But stick with "2001" at the beginning.
Once you have followed those series of commands, let's go find what IP address was deployed to the router.
Exit back to privilege exec mode (en) and type this command in:
show ipv6 int brief
Code
cimex#show ipv6 int brief
FastEthernet0/0 [up/up]
FE80::2E0:B0FF:FE57:1601
2001:8DB:ACAD:0:2E0:B0FF:FE57:1601
FastEthernet0/1 [administratively down/down]
Vlan1 [administratively down/down]
cimex#As you can see we have our 2001 address up and running on fa0/0. Now you have that, time to configure the PCs. Save that IP to a text document or keep it up on your screen.
The same way you accessed your IPv4 settings, open your IPv6 settings on Windows and here's what I have:
Spoiler (Click to View)
I just took this part of the IPv6 address 2001:8DB:ACAD, added two semi colons, and gave the PC a host ID of 1.
There is the prefix length we setup and the default gateway.
You can also do this on packet tracer, the same section where you setup IPv4.
Ping results:
PC1 to Router & PC2:
Code
PC>ping 2001:8DB:ACAD::2
Pinging 2001:8DB:ACAD::2 with 32 bytes of data:
Reply from 2001:8DB:ACAD::2: bytes=32 time=1ms TTL=128
Reply from 2001:8DB:ACAD::2: bytes=32 time=0ms TTL=128
Reply from 2001:8DB:ACAD::2: bytes=32 time=1ms TTL=128
Reply from 2001:8DB:ACAD::2: bytes=32 time=1ms TTL=128
Ping statistics for 2001:8DB:ACAD::2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 1ms, Average = 0ms
PC>ping 2001:8DB:ACAD:0:2E0:B0FF:FE57:1601
Pinging 2001:8DB:ACAD:0:2E0:B0FF:FE57:1601 with 32 bytes of data:
Reply from 2001:8DB:ACAD:0:2E0:B0FF:FE57:1601: bytes=32 time=1ms TTL=255
Reply from 2001:8DB:ACAD:0:2E0:B0FF:FE57:1601: bytes=32 time=0ms TTL=255
Reply from 2001:8DB:ACAD:0:2E0:B0FF:FE57:1601: bytes=32 time=0ms TTL=255
Reply from 2001:8DB:ACAD:0:2E0:B0FF:FE57:1601: bytes=32 time=0ms TTL=255
Ping statistics for 2001:8DB:ACAD:0:2E0:B0FF:FE57:1601:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 1ms, Average = 0msPC2 to Router & PC1:
Code
PC>ping 2001:8DB:ACAD:0:2E0:B0FF:FE57:1601
Pinging 2001:8DB:ACAD:0:2E0:B0FF:FE57:1601 with 32 bytes of data:
Reply from 2001:8DB:ACAD:0:2E0:B0FF:FE57:1601: bytes=32 time=1ms TTL=255
Reply from 2001:8DB:ACAD:0:2E0:B0FF:FE57:1601: bytes=32 time=1ms TTL=255
Reply from 2001:8DB:ACAD:0:2E0:B0FF:FE57:1601: bytes=32 time=0ms TTL=255
Reply from 2001:8DB:ACAD:0:2E0:B0FF:FE57:1601: bytes=32 time=0ms TTL=255
Ping statistics for 2001:8DB:ACAD:0:2E0:B0FF:FE57:1601:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 1ms, Average = 0ms
PC>ping 2001:8DB:ACAD::1
Pinging 2001:8DB:ACAD::1 with 32 bytes of data:
Reply from 2001:8DB:ACAD::1: bytes=32 time=1ms TTL=128
Reply from 2001:8DB:ACAD::1: bytes=32 time=0ms TTL=128
Reply from 2001:8DB:ACAD::1: bytes=32 time=0ms TTL=128
Reply from 2001:8DB:ACAD::1: bytes=32 time=0ms TTL=128
Ping statistics for 2001:8DB:ACAD::1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 1ms, Average = 0msThat ends this tutorial. I will expand on it in the future, just thought I would put this out first. Thank you all for reading :)
![[Image: phmKDap.png]](https://i.imgur.com/phmKDap.png)


![[Image: OS9OGyK.png]](https://i.imgur.com/OS9OGyK.png)
![[Image: D0l2fwx.png]](https://i.imgur.com/D0l2fwx.png)
![[Image: Wo44EYZ.png]](https://i.imgur.com/Wo44EYZ.png)
![[Image: L99Ikp2.png]](https://i.imgur.com/L99Ikp2.png)
![[Image: NsXLsri.png]](https://i.imgur.com/NsXLsri.png)
![[Image: PBlRFFS.png]](https://i.imgur.com/PBlRFFS.png)

![[Image: Z5YQIwQ.gif]](https://i.imgur.com/Z5YQIwQ.gif)
![[Image: Btc2oyr.gif]](https://i.imgur.com/Btc2oyr.gif)

![[Image: boostdroid-signature.gif]](https://boostdroid.com/assets/images/boostdroid-signature.gif)

![[Image: Untitled-1.gif]](https://imghost.io/images/2018/05/05/Untitled-1.gif)