How To Use VPCS in GNS3

In order to perform CCNA and CCNP lab exercises, first, you need to create a topology. We know that arranging hardware devices such as router, switch, and PCs are not possible for everyone. Fortunately, there are various simulators such as Cisco Packet Tracer and GNS3 are available that can be used to perform all the lab exercises for the learning purpose. In the previous posts, we have discussed a lot about how to download Cisco Packet Tracer and GNS3 simulators. In this post, we will explain how to use VPCS in GNS3.

If you are new with these simulators, first, visit the following links to know how to use Cisco Packet Tracer and GNS3.

Adding VPCS in GNS3

We assume that you have already installed GNS3 on your system. Once you are familiar with the GNS3 simulator, let see how to use VPCS in GNS3. In order to use VPCS in GNS3, you need to following steps:

  • In the GNS3 console, drag an Ethernet Switch in the work view area.
  • Drag two VPCS machines in the work view area.
  • Connect PC1 to port 1 of Ethernet switch and connect PC2 to port 2 of Ethernet switch.
  • Right-click on PC1 and then select Start to start it. Similarly, start PC2 also.
  • The following figure shows how to add VPCS in GNS3.Add VPCS in GNS3

Syntax to configure IP address on VPCS in GNS3

Once you have created the preceding topology in GNS3, the next task is configuring IP addresses and other TCP/IP settings on VPCS machines. In order to configure IP addresses on VPCS in GNS3, you need to perform the following steps:

  1. Select and right-click PC1 and select Console to open its console. The CLI prompt window will be displayed.
  2. In the CLI prompt window, use the following syntax to configure TCP/IP settings on the VPCS.
    ip <IP Address> </Subnet Mask> <Default Gateway>
  3. Next, use the following syntax to configure DNS server IP address.
    ip dns <DNS server IP address>
  4. If you want to obtain TCP/IP setting on VPCS machine using the DHCP server, use the following syntax to obtain the TCP/IP settings from the DHCP server.
    ip dhcp
  5. Once you have configured appropriate IP addresses on a VPCS machine, use the following command to view the TCP/IP settings.
    show ip
  6. In this lab exercise, we will configure the TCP/IP settings on VPCS machines as mentioned in the following table.Configure TCP/IP settings on VPCS in GNS3

Configure TCP/IP settings on VPCS PC1

  1. First, execute the following command on PC1 to configure 192.168.1.1/24 IP address and 192.168.1.100 as the default gateway.
    PC1>ip 192.168.1.1 /24 192.168.1.100
  2. Next, execute the following command to configure 192.168.1.100 as DNS server IP address.
    PC1>ip dns 192.168.1.100
  3. Next, execute the following command to view the TCP/IP settings on VPCS PC1.
    PC1>show ip
  4. The following figure shows the TCP/IP configuration of VPCS PC1.

Use VPCS in GNS3

Configure TCP/IP settings on VPCS PC2

  1. Execute the following command on PC2 to configure 192.168.1.1/24 IP address and 192.168.1.100 as the default gateway.
    PC2>ip 192.168.1.2 /24 192.168.1.100
  2. Next, execute the following command to configure 192.168.1.100 as DNS server IP address.
    PC2>ip dns 192.168.1.100
  3. Next, execute the following command to view the TCP/IP settings on VPCS PC2.
    PC2>show ip
  4. The following figure shows the TCP/IP configuration of VPCS PC2.Configure IP address on VPCS machine in GNS3
  5. If you have misconfigured the TCP/IP settings or want to remove the TCP/IP setting on a VPCS machine, use the following command.
    PC>clear ip

    how to Remove TCP/IP settings on VPCS in GNS3

In the preceding output, you can see that the TCP/IP settings on VPCS PC2 have been removed.

In this post, you have learned how to configure IP addresses on VPCS and how to use VPCS in GNS3. Hope, it helped you. Please like and share the article if you think it might help to others too.

Posted in CCNA, Cisco, GNS3 Tutorials Tagged with: ,

Leave a Reply

Your email address will not be published. Required fields are marked *

*