Experirment-5
Aim: Configure Initial Router Settings
Topology Diagram
Use this syntax checker to practice configuring the initial settings on a router.
Configure the device name.
Secure the privileged EXEC mode.
Secure and enable remote SSH and Telnet access.
Secure all plaintext passwords.
Provide legal notification.
The following tasks should be completed when configuring initial settings on a router.
1. Configure the device name.
Router(config)# hostname hostname
2. Secure privileged EXEC mode.
Router(config)# enable secret password
3. Secure user EXEC mode.
Router(config)# line console 0
Router(config-line)# password password
Router(config-line)# login
4. Secure remote Telnet / SSH access.
Router(config-line)# line vty 0 4
Router(config-line)# password password
Router(config-line)# login
Router(config-line)# transport input {ssh | telnet}
5. Secure all passwords in the config file.
Router(config-line)# exit
Router(config)# service password-encryption
6. Provide legal notification.
Router(config)# banner motd delimiter message delimiter
7. Save the configuration.
Router(config)# end
Router# copy running-config startup-config
Configure Router Interfaces
At this point, your routers have their basic configurations. The next step is to configure their
interfaces. This is because routers are not reachable by end devices until the interfaces are
configured. There are many different types of interfaces available on Cisco routers. For
example, the Cisco ISR 4321 router is equipped with two Gigabit Ethernet interfaces:
GigabitEthernet 0/0/0 (G0/0/0)
GigabitEthernet 0/0/1 (G0/0/1)
The task to configure a router interface is very similar to a management SVI on a switch.
Specifically, it includes issuing the following commands:
Router(config)# interface type-and-number
Router(config-if)# description description-text
Router(config-if)# ip address ipv4-address subnet-mask
Router(config-if)# ipv6 address ipv6-address/prefix-length
Router(config-if)# no shutdown
the description command would be helpful to enter the third-party connection and contact
information. no shutdown command activates the interface and is similar to powering on the
interface.
R1> enable
R1# configure terminal
Enter configuration commands, one per line.
End with CNTL/Z.
R1(config)# interface gigabitEthernet 0/0/0
R1(config-if)# description Link to LAN
R1(config-if)# ip address [Link] [Link]
R1(config-if)# ipv6 address [Link]/64
R1(config-if)# no shutdown
R1(config-if)# exit
R1(config)#
*Aug 1 [Link].435: %LINK-3-UPDOWN: Interface GigabitEthernet0/0/0, changed
state to down
*Aug 1 [Link].447: %LINK-3-UPDOWN: Interface GigabitEthernet0/0/0, changed
state to up
*Aug 1 [Link].447: %LINEPROTO-5-UPDOWN: Line protocol on Interface
GigabitEthernet0/0/0, changed state to up
R1(config)#
R1(config)#
R1(config)# interface gigabitEthernet 0/0/1
R1(config-if)# description Link to R2
R1(config-if)# ip address [Link] [Link]
R1(config-if)# ipv6 address [Link]/64
R1(config-if)# no shutdown
R1(config-if)# exit
R1(config)#
*Aug 1 [Link].170: %LINK-3-UPDOWN: Interface GigabitEthernet0/0/1, changed
state to down
*Aug 1 [Link].171: %LINK-3-UPDOWN: Interface GigabitEthernet0/0/1, changed
state to up
*Aug 1 [Link].171: %LINEPROTO-5-UPDOWN: Line protocol on Interface
GigabitEthernet0/0/1, changed state to up
R1(config)#
Note: Notice the informational messages informing us that G0/0/0 and G0/0/1 are enabled.
Verify Interface Configuration
There are several commands that can be used to verify interface configuration. The most
useful of these is the show ip interface brief and show ipv6 interface brief commands, as
shown in the example.
R1# show ip interface brief
Interface IP-Address OK? Method Status Protocol
GigabitEthernet0/0/0 [Link] YES manual up up
GigabitEthernet0/0/1 [Link] YES manual up up
Vlan1 unassigned YES unset administratively down down
R1# show ipv6 interface brief
GigabitEthernet0/0/0 [up/up]
FE80::201:C9FF:FE89:4501
[Link]
GigabitEthernet0/0/1 [up/up]
FE80::201:C9FF:FE89:4502
[Link]
Vlan1 [administratively down/down]
unassigned
R1#
Configuration Verification Commands
The table summarizes the more popular show commands used to verify interface
configuration.
Table caption
Commands Description
show ip interface The output displays all interfaces, their IP addresses, and their
Table caption
Commands Description
brief current status. The configured and connected interfaces should
show ipv6 interface display a Status of “up” and Protocol of “up”. Anything else would
brief indicate a problem with either the configuration or the cabling.
show ip route Displays the contents of the IP routing tables stored in RAM.
show ipv6 route
Displays statistics for all interfaces on the device. However, this
show interfaces command will only display the IPv4 addressing information.
show ip interfaces Displays the IPv4 statistics for all interfaces on a router.
show ipv6 interface Displays the IPv6 statistics for all interfaces on a router.
R1# show ip interface brief Interface IP-Address OK? Method Status Protocol
GigabitEthernet0/0/0 [Link] YES manual up up GigabitEthernet0/0/1 [Link]
YES manual up up Vlan1 unassigned YES unset administratively down down R1#