0% found this document useful (0 votes)
1K views

GNS3 Commands

The document provides instructions for configuring interfaces and static routes on routers R0 and R1 using GNS3. It also describes how to configure a router interface using DHCP or a static IP and perform basic connectivity tests by pinging addresses, the default gateway and a public domain name.

Uploaded by

sameer43786
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1K views

GNS3 Commands

The document provides instructions for configuring interfaces and static routes on routers R0 and R1 using GNS3. It also describes how to configure a router interface using DHCP or a static IP and perform basic connectivity tests by pinging addresses, the default gateway and a public domain name.

Uploaded by

sameer43786
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

GNS3 Commands:

Configuring interfaces on R0

R0(config)#interface s0/0
R0(config-if)#ip address 12.12.12.1 255.255.255.0
R0(config-if)#no shutdown
R0(config-if)#interface lo0
R0(config-if)#ip address 10.0.0.1 255.0.0.0
R0(config-if)#exit

Configuring interfaces on R1

R0(config)#interface s0/0
R0(config-if)#ip address 12.12.12.2 255.255.255.0
R0(config-if)#no shutdown
R0(config-if)#interface lo0
R0(config-if)#ip address 172.16.0.1 255.255.0.0
R0(config-if)#exit

Now if we check the routing table of R0 & R1 by the command show ip route on both
R0 and R1

On R0:
R0# show ip route

R1# show ip route

Configuring static route on R0

R0(config)#ip route 172.16.0.0 255.255.0.0 12.12.12.2

Configuring static route on R1

R1(config)#ip route 10.0.0.0 255.0.0.0 12.12.12.1

To start router configuration type command:


configure terminal

Option 1: DHCP

If using DHCP, configure R1 as follows:

R1# configure terminal


R1(config)# interface FastEthernet 0/0
R1(config-if)# ip address dhcp
R1(config-if)# no shutdown
R1(config-if)# end
R1#

Result: An IP address is allocated to the router by the DHCP server:

R1#
*Mar 1 00:03:14.831: %DHCP-6-ADDRESS_ASSIGN: Interface FastEthernet0/0 assigned
DHCP address 192.168.1.29, mask 255.255.255.0, hostname R1

Option_2:_Manual_configuration

If configuring static IP address, configure R1 with an IP address in the same


subnet as your local PC:

R1# configure terminal


R1(config)# interface FastEthernet 0/0
R1(config-if)# ip address 192.168.1.123 255.255.255.0
R1(config-if)# no shutdown
R1(config-if)# exit

Configure a default gateway:

R1(config)# ip route 0.0.0.0 0.0.0.0 192.168.1.249


R1(config)# end

Ping the router�s default gateway:

R1# ping 192.168.1.249

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 192.168.1.249, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 8/17/36 ms
R1#

Result Pings should succeed.

Ensure that the router is configured to use the correct DNS server:

R1# configure terminal

R1(config)# ip domain-lookup
R1(config)# ip name-server 8.8.8.8
R1(config)# end
R1#

Ping google.com:

R1# ping google.com

You might also like