Cisco Certified Network Associate (ccna) Practice Lab


Task 3 - Configuring an IP Address on an Interface



Download 1.21 Mb.
Page13/38
Date21.09.2022
Size1.21 Mb.
#59567
1   ...   9   10   11   12   13   14   15   16   ...   38
Cisco CCNA Lab 1

Task 3 - Configuring an IP Address on an Interface


When configuring an IP address on a router, the address is applied to a physical interface. In this task, you will configure an IP address on a router interface.

Step 1


Connect to the NYEDGE1 router and enter the interface configuration mode of GigabitEtherent 0/0 by entering the following commands (press Enter after each command):
NYEDGE1#
configure terminal
NYEDGE1(config)#
interface gigabitEthernet 0/0
You will see the following output:
NYEDGE1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
NYEDGE1(config)#interface gigabitEthernet 0/0
NYEDGE1(config-if)#

Step 2


Next, configure the IP address of this interface to be 192.168.16.1 with a subnet mask of 255.255.255.0 and enable the interface.
Type the following commands (press Enter after each command):
NYEDGE1(config-if)#
ip address 192.168.16.1 255.255.255.0
NYEDGE1(config-if)#
no shutdown
NYEDGE1(config-if)#
exit
NYEDGE1(config)#
exit
You will see the following output:
NYEDGE1(config-if)#ip address 192.168.16.1 255.255.255.0
NYEDGE1(config-if)#no shutdown
NYEDGE1(config-if)#exit
NYEDGE1(config)#exit
*Sep 16 17:30:20.607: %LINK-3-UPDOWN: Interface GigabitEthernet0/0, changed state to up
*Sep 16 17:30:21.607: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to up
NYEDGE1#
Note: Notice that by default, router interfaces are in a shutdown state. Interestingly, there is no command to enable them directly. The command to enable an interface is the negation of the shutdown command, which is no shutdown.

Assuming the NYCORE1 switch has finished booting up already, you should see syslog messages on NYEDGE1 similar to the above indicating that the GigabitEthernet 0/0 interface has changed state to up.
Note: IP addresses on routers are assigned to their interfaces. Because routers have multiple interfaces, they will also have multiple IP addresses. This means that when you are attempting to remotely connect to a router, you must use an IP address of one of the active interfaces that have been assigned an IP address.

Download 1.21 Mb.

Share with your friends:
1   ...   9   10   11   12   13   14   15   16   ...   38




The database is protected by copyright ©ininet.org 2024
send message

    Main page