Skip to main content

About this free course

Download this course

Share this free course

Discovering computer networks: hands on in the Open Networking Lab
Discovering computer networks: hands on in the Open Networking Lab

Start this free course now. Just create an account and sign in. Enrol and complete the course for a free statement of participation or digital badge if available.

10.4 Configure an IP address

The video below explains how to configure an IP address on a router. As you will see, you can use Packet Tracer or PT Anywhere to emulate this task. However, not all routers have the same interfaces, so first it’s necessary to determine what interfaces your router has. The common interface types are:

  • FastEthernet
  • GigabitEthernet
  • Serial.

Watch the video below (which is about 3 minutes long) to see how to discover a router’s interfaces and configure their IP addresses.

Note that the presenter uses the Tab key to complete certain commands; in PT Anywhere the Tab key cannot be used in this way.

Add an IP address

Download this video clip.Video player: 62_add_an_ip_address.mp4
Copy this transcript to the clipboard
Print this transcript
Show transcript|Hide transcript
 
Interactive feature not available in single page view (see it in standard view).

Activity 4 Test yourself

5 minutes

1. By default, are router interfaces turned on?

a. 

(a) No.


b. 

(b) Yes.


The correct answer is a.

2. Which IOS modes allow you to issue the show IP interface brief command?

a. 

(a) Privileged exec


b. 

(b) User exec


c. 

(c) Global configuration


d. 

(d) Interface configuration


The correct answers are a and b.

3. Which of these are a valid IPv4 host on the network 192.168.0.0/24?

a. 

(a) 192.168.0.254


b. 

(b) 192.168.0.255


c. 

(c) 192.168.0.0


d. 

(d) 172.16.0.12


e. 

(e) 192.168.1.1


The correct answer is a.

Activity 5 Try it out

10 minutes

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.

  1. Drag two routers and a switch onto the work area.
  2. Connect each router to the switch using a GigabitEthernet port. (Using a switch between the routers avoids complications that can arise when connecting routers directly in PT Anywhere.)
  3. Configure an IP address on the connected interface on each router.
  4. Attempt to ping between the routers.

Discussion

By now you should be familiar with the commands for entering global configuration mode. If in doubt, look back to Activity 3 in Section 10.3. Once in global configuration mode, you should have entered the command interface g0/?, replacing the question mark with the number of the interface that you chose. The next command should be no shutdown to turn the interface on. You could have used the command show ip interface brief to check your settings.

Was your ping successful? If not, check that you were pinging the correct IP address for the other router and that this was correctly configured.