13.4 Configuring devices
In this section all your learning in the first three sections of this session is consolidated by going through the process of building and configuring a fairly simple network. The more often you engage in these practical activities the more confident you will become and the more proficient in using the commands. Your work here starts with a practical video demonstration and then an activity where you become the network manager.
First watch the video below, which is about 6 minutes long. This video demonstrates how to build and configure the network shown in Figure 1. For convenience, the configuration settings are also shown in Table 1.

Device | IP address | Subnet mask | Default gateway |
---|---|---|---|
PC0 | 192.168.0.10 | 255.255.255.0 | 192.168.0.1 |
PC1 | 192.168.1.20 | 255.255.255.0 | 192.168.1.1 |
Router G0/0 | 192.168.0.1 | 255.255.255.0 | – |
Router G0/1 | 192.168.1.1 | 255.255.255.0 | – |
Box _unit8.1.4 Configuring devices

Transcript
In this part I’m going to set up a Packet Tracer Anywhere network, starting from a blank screen, using some of what you’ve already seen in the other sessions.
For the router, which is the most complex device to set up, I will use the command-line interface. Actually, in Packet Tracer Anywhere it is possible to apply the IP addresses and subnet masks using the graphical interface under ‘Edit device’, but it is not possible to issue a no shutdowncommand via the graphical interface. So, as we should have to use the command-line interface for the no shutdown command, I will configure the router’s settings this way. In any case, this is a more realistic way in which we would configure enterprise equipment.
For the PCs, there is no command-line interface, so we will use the graphical interface for those. The switches do not actually require any configuration, as you will see. The router is now booted up and in the command line mode ready for us to start configuring everything. First of all we need to type enableto get into the privilege exec mode. Then we can type show ip interface briefso we can see the state of our current interfaces. As you can see here they are all down, administratively down and the protocol is down.
Now we will have a go at configuring everything so just typing configuration terminal or conf tto get into the configuration mode. Then we type the interface we want to configure. First of all it’s g0. I’m now adding an IP address of 192.168.0.1 with a subnet mask of 255.255.255.0. Then of course the all-important thing we have to add is the no shut command to make sure our interface is now activated.
Now I type interface g0/1to do the second interface. Type in the IP address of 192.168.1.1 and subnet mask of 255.255.255.0 and again no shutto activate our interface. That is all our interfaces changed and you can see the changed state is now up and if we do another show ip interface briefwe can now see what the current state of our interfaces is. And as we can see the status is now up and no longer administratively down but the protocol is still down because the device is not connected to anything. If we now add in our devices; first of all we will add in our two switches, Switch0 and Switch 1. Now we’ll add in our two PCs, PC0 and PC1. Next we need to connect these together. I’ve clicked ‘Connect devices’ and now I’m attaching the cables to each device, selecting in turn the interfaces I need to connect to. So it’s F0 on the switch. Then I take the next …. Now the switch needs to be connected to the router so we select the fast Ethernet and the gigabit ports to these devices. And now we can connect the second switch to the router, again selecting the fast Ethernet and the gigabit ports for these devices. And finally we need to connect PC1 to the switch. We’ll just do that now by selecting the fast Ethernet ports … and now we’re ready to start configuring the devices.
So for the PC I’ll just demonstrate that there’s nothing configured at the moment. You can see that it’s all zero there. I go into ‘Global Settings’ and set the default gateway to be 192.168.0.1 and now I need to configure the interfaces so that’s 192.168.0.10 for the first device, PC0, with a subnet mask of 255.255.255.0. Now we click ‘Submit’ to ensure that’s all connected properly. Now we’ll do the second device PC1. Again I’ll show ipconfigjust to demonstrate that there’s nothing configured at the moment and you can see all the settings are at zero. Now we’ll edit the device and set default gateway to be 192.168.1.1. And now select the ‘Interfaces’ and the IP address for this device is 192.168.1.20 with a subnet mask of 255.255.255.0. Then we ‘Submit’ that.
Now all the devices are configured and we can see whether everything is now working or not. Here’s my configuration for my PC0 and as you can see that’s all now correctly configured with the default gateway. If I now ping the default gateway, this is successful. I’ll now ping PC1, this is also successful. And now looking at PC1 I’ll just show the configuration for that. As you can see that’s all correctly configured with its default gateway set. I will now ping the default gateway; that’s successful. And now I’ll ping PC0; this is also successful.
Thank you for watching.
Activity _unit8.1.3 Activity 4 Try it out
10 minutes
In this activity you will enlarge the network demonstrated in the video above by adding two more PCs and a switch connected as shown in Figure 2.

1. Complete Table 2, choosing suitable values.
Device | IP address | Subnet mask | Default gateway |
---|---|---|---|
PC0 | 192.168.0.10 | 255.255.255.0 | 192.168.0.1 |
PC1 | 192.168.1.20 | 255.255.255.0 | 192.168.1.1 |
PC2 | |||
PC3 | |||
Router G0/0 | 192.168.0.1 | 255.255.255.0 | – |
Router G0/1 | 192.168.1.1 | 255.255.255.0 | – |
Router G0/2 | – |
2. Open PT Anywhere [Tip: hold Ctrl and click a link to open it in a new tab. (Hide tip)] in a new tab or window so you can read these instructions. In this scenario, the completed network from the video above is provided.
3. Add Switch2, PC2 and PC3, and connect them to the network as shown in Figure 2.
4. Configure PC2, PC3 and the router interface G0/2 with the settings you chose in Table 2.
5. Can you ping PC0 from PC3?
6. Can you Ping PC2 from PC3?
Answer
Here are the things to check if your pings were unsuccessful:
- Did you choose suitable values for PC2, PC3 and router interface G0/2?
- Did you correctly set the default gateways for PC2 and PC3?
- Did you remember to include the no shut command when configuring the router interface G0/2?
Suitable values are shown in Table 3. but others could have worked just as well.
Device | IP address | Subnet mask | Default gateway |
---|---|---|---|
PC0 | 192.168.0.10 | 255.255.255.0 | 192.168.0.1 |
PC1 | 192.168.1.20 | 255.255.255.0 | 192.168.1.1 |
PC2 | 192.168.2.30 | 255.255.255.0 | 192.168.2.1 |
PC3 | 192.168.1.10 | 255.255.255.0 | 192.168.1.1 |
Router G0/0 | 192.168.0.1 | 255.255.255.0 | – |
Router G0/1 | 192.168.1.1 | 255.255.255.0 | – |
Router G0/2 | 192.168.2.1 | 255.255.255.0 | – |