And now is the moment you've all been waiting for.
It's time to build our network in three.
So I'm in my host machine and you don't see the three.
It's closed at the moment.
So I'll go to the applications menu and click the three icon to run it.
So let's create a new project, or you can use the project that we created before.
Expand routers from the device's toolbar.
As you see installed items is selected from the combo box above.
The only router available is C 3725.
That's what I imported a few lectures before.
So I'll drag it and drop it into the workspace from the switches menu.
Drag an ether switch router that we created before and drop it into the workspace.
Now go to the end devices and drag and drop a vpcs.
Here Vpcs are the end user computer simulations of three.
They're very lightweight and have a very restricted ability, but it'll be enough to test the network
configurations.
And now I'll just add a second.
Vpcs.
Okay.
Now we have a router, an ether switch and two PCs in our network.
They all have their default names on top given by the Gns3 app.
So now I want to design the network and label the devices accordingly.
Click the labels icon on the toolbar and put a label under the PC one.
This PC will be in IP block of 192.168.10.0 slash 24.
Let's say it's the Vlan ten.
Now to create a new label, you can right click on an existing one and select duplicate.
Right click the label again and select text edit to edit the text.
So let's put the second PC into Vlan 20, which is in the IP block of 192.168.20.0 24.
Now click on the last icon on the Devices toolbar to connect the devices.
Click the router, select the port you want to connect, and then select the switch and select the port
of the switch again.
I connect the fast Ethernet zero zero port of the router with the fast Ethernet one one of the switch.
Good.
So now connect the PC one with the switch.
Click Switch select Fast Ethernet one two and click PC one.
And it already has a single network interface.
Ethernet zero.
Now do the same with the second PC and use a port of the switch.
For example.
Fast Ethernet 110.
We connected all the nodes on the workspace.
So now we can click the connect icon to disable the connect mode.
Then in the toolbar we have a button named show hide interface labels.
If you click it when the labels are hidden, you'll see the labels of each interface connected.
F stands for fast Ethernet and E stands for the Ethernet.
And you can move the labels as you wish.
Now let's start the notes.
We can start them one by one, by right clicking on them and selecting start from the menu or from the
toolbar.
Click the green triangle to start all the nodes at once.
Now all the nodes are running.
So now is the time to create our network topology.
I'll create two VLANs and add the PCs to their VLANs.
First, we'll create the virtual LANs.
Right click on the switch and click console.
Good.
Welcome to the command line interface of a Cisco ether switch.
Look familiar?
So press enter to get started.
Type Vlan database and go there.
You can use the tab key to complete the keywords in this console.
So instead you can use the short form of the keywords directly.
If the keyword is the only available option for that short form.
So for example, I wrote Vlan space d a and hit the tab key.
The key word is completed.
Database.
So that means that database is the only option here for De.
And as a result if I type villain space DA and hit enter here I'd be in the villain database mode.
Right.
So here we are in Vlan database mode to create Vlan ten type vlan id number ten, name it for example
it, HR or whatever you want, I'll name it Vlan ten and leave it at that hit enter and Vlan ten is
created.
So similarly, let's create Vlan 20 with the id number 20.
Type exit to exit the Vlan database mode.
Now, as you exit, the changes are applied.
So that was pretty cool.
Okay, so let's go into the Vlan database mode again to check whether the VLANs were actually created.
So type show current.
And here are the villains we created a couple of seconds ago.
Vlan ten with the ID number of ten and here's Vlan 20 with the id number of 20.
So type exit again and we're on the route of the switch console.
So now is it time to configure interfaces and add the PCs to their VLANs?
The first command we type is configure terminal.
And as mentioned before, you can simply type conf T to enter configuration mode.
Now we need to select the interface to configure.
Type int space F and hit tab.
F will be completed as fast Ethernet.
You see how that works.
So now we can write the identifier of the switch port 1/2.
Alternatively, you can directly type F1/2 as seen in the gns3 workspace.
Now we are in the config mode of the interface F12, which just happens to be the port we connected
to the PC one.
Now to identify the mode of the port.
Type switch port mode access first.
Then to assign the port to the Vlan ten type switch port access Vlan ten.
Where ten is the ID number of Vlan ten.
No.
To shut down and exit.
We exit from the port's config mode, but we are still in the terminal configuration mode.
So while we're here, let's configure the other port which is connected to PC to interface fast Ethernet
one slash ten.
Switchport mode access.
Okay.
Well, right here, I want to show you a well, a tip.
You can use a question mark in any one of the commands.
If you put a question mark after the mode, it says you can either use access or trunk here.
An access port can only have one Vlan configured on the interface.
It can carry traffic for only one Vlan.
Right.
A trunk port can have two or more vlans configured on the interface that can carry traffic for several
Vlan simultaneously.
So Switchport access Vlan 20 goes right here.
No.
Shut down and exit.
Great.
So we've configured the interfaces connected to the PC.
So now let's configure the port connected to the router.
INT for interface F1/1 to enter the config mode of that interface.
Switchport mode is trunk.
Wait a second.
And yes, the port has become a dot one trunk dot one queue is a well known name of the 802.1 queue,
which is the networking standard that supports virtual LANs or VLANs on an I triple E 802.3 Ethernet
network.
Now type Switchport Trunk encapsulation dot one queue.
No to shut down and exit.
Type exit again to exit the config mode completely.
Then type SR to make the configurations persistent.
Excellent.
Now let's configure the router.
Right click on the router and select console.
The ports are being initialized now.
Okay.
Entering into the config mode is the same type config terminal or simply conf t and hit enter.
So the only interface of our router is fast ethernet zero zero.
So type interface F0/0.
No IP address.
No.
Shut down.
And look at that.
The port is up right now.
So hit exit and we'll exit from the interface for now.
So now we're ready to configure the subinterfaces and the settings of the VLANs are decided here.
To enter the Subinterface configuration type interface fast Ethernet 0/0.1 where dot one identifies
the sub interface.
Right Type encapsulation dot one Q and a question mark to see the options.
Look at that here.
Vlan ID is one of the options.
So type encapsulation dot one q ten.
Now type IP address.
192.168.10.1255.255.255.0
and press enter.
192.168.10.1 Is the IP address of the router for this Vlan and 255.255.255.0 is a subnet mask of the
network, so the IP block of the Vlan ten will be 192.168.10.0 slash 24.
No.
To shut down and exit.
And here we are back in the configure terminal mode.
So now we'll apply the same sub config for Vlan 20 type interface f0 slash 0.2.
This time.
Encapsulation one cue and the Vlan ID 20.
So let's use the 192.168.20.0 slash 24 ip block for this Vlan.
So type IP address.
192.168.20.1255.255.255.0.
And no shut down and exit.
Now exit again to exit the configure terminal mode as well and type R to make the configurations persistent.
See what I mean?
It's a it's quite a process, but I'm glad you're hanging in there because we haven't even gotten to
the fun stuff yet.
Now's the time to configure the network interfaces of the PCs.
So right click on the PC and select console.
If you place a question mark and press enter, you'll see all the available commands in VPC console.
So as I mentioned before, this is an end user computer simulation of gns3.
But not to worry, it's enough to test the configurations of the networks that we created earlier.
And as you can see here, IP command is used to configure the IP settings of the VPC.
And here you can show or use the shortcut s h, and that's going to print the information about the
VPC.
So type show IP to see the current IP settings.
And as you can see here, VPC has no IP address at the moment.
So type IP and a question mark.
You'll see the options of the IP command.
And as you can see here, you'll be able to assign an IP address using this command.
And an example is given right there to help as well.
So let's assign an IP address for the VPC.
IP 192.168.10.2 slash 24 To identify the subnet mask and the gateway is 192.168.10.1.
Perfect.
It's our router.
So when you press enter it checks to see if there's any duplication and if everything's okay.
It shows a summary just like this one.
Assigned IP Address, Subnet Mask and Gateway.
So now we can ping the router to check the configuration.
Perfect.
See, this is where we get all the answers.
Now let's configure the other VPC because that one is working perfectly just the way we wanted it to.
The steps are exactly the same.
Right click and open the console.
Type.
IP 192.168.20.2 slash 24.
192.168.20.1 and hit enter.
Ping the router to check the config.
And here are the answers, all the answers you've ever been looking for.
Right.
So go to PC one and ping PC two.
You should be able to see the reply packets just like these ones.
And now ping PC one from PC two.
And everything looks perfect on my side.
What about you?
Right as rain.
Right.
Excellent.
So let's move on.