0% found this document useful (0 votes)
5 views9 pages

Basic Router Configuration Guide

This document provides a comprehensive guide on basic router configuration, including initial settings, interface configuration, and verification commands. It details commands for setting hostnames, enabling passwords, configuring interfaces with IP addresses, and verifying configurations using various show commands. Additionally, it explains the importance of default gateways for hosts and switches in network communication.

Uploaded by

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

Basic Router Configuration Guide

This document provides a comprehensive guide on basic router configuration, including initial settings, interface configuration, and verification commands. It details commands for setting hostnames, enabling passwords, configuring interfaces with IP addresses, and verifying configurations using various show commands. Additionally, it explains the importance of default gateways for hosts and switches in network communication.

Uploaded by

balsbry570
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd

Module 10: Basic Router Configuration

Configure Initial Router Settings


Basic Router Configuration Example
• Commands for basic router R1(config)# hostname R1
R1(config)# enable secret class
configuration on R1.
R1(config)# line console 0
R1(config-line)# password cisco
• Configuration is saved to R1(config-line)# login
NVRAM. R1(config-line)# line vty 0 4
R1(config-line)# password cisco
R1(config-line)# login
R1(config-line)# transport input ssh telnet
R1(config-line)# exit
R1(config)# service password encryption
R1(config)# banner motd #
Enter TEXT message. End with a new line and the #
***********************************************
WARNING: Unauthorized access is prohibited!
**********************************************
R1(config)# exit
R1# copy running-config startup-config

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 1
Configure Interfaces
Configure Router Interfaces Example
The commands to configure interface G0/0/0 on R1 are shown here:

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 2001:db8:acad:10::1/64
R1(config-if)# no shutdown
R1(config-if)# exit
R1(config)#
*Aug 1 01:43:53.435: %LINK-3-UPDOWN: Interface GigabitEthernet0/0/0, changed state to down
*Aug 1 01:43:56.447: %LINK-3-UPDOWN: Interface GigabitEthernet0/0/0, changed state to up
*Aug 1 01:43:57.447: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0/0,
changed state to up

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 2
Configure Interfaces
Verify Interface Configuration
To verify interface configuration use the show ip interface brief
and show ipv6 interface brief commands shown here:

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
2001:DB8:ACAD:10::1
GigabitEthernet0/0/1 [up/up]
FE80::201:C9FF:FE89:4502
2001:DB8:FEED:224::1
Vlan1 [administratively down/down]
unassigned
R1#

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 3
Configure Interfaces
Configure Verification Commands

The table summarizes show commands used to verify interface configuration.

Commands Description

show ip interface brief Displays all interfaces, their IP addresses, and their
show ipv6 interface brief current status.
show ip route Displays the contents of the IP routing tables stored in
show ipv6 route RAM.
show interfaces Displays statistics for all interfaces on the device. Only
displays the IPv4 addressing information.
show ip interfaces Displays the IPv4 statistics for all interfaces on a router.

show ipv6 interfaces Displays the IPv6 statistics for all interfaces on a router.

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 4
Configure Interfaces
Configure Verification Commands (Cont.)
Display the contents of the IP routing tables with the show ip route and show ipv6
route commands as shown here:
R1# show ip route
< output omitted>
Gateway of last resort is not set
[Link]/24 is variably subnetted, 2 subnets, 2 masks
C [Link]/24 is directly connected, GigabitEthernet0/0/0
L [Link]/32 is directly connected, GigabitEthernet0/0/0
[Link]/24 is variably subnetted, 2 subnets, 2 masks
C [Link]/30 is directly connected, GigabitEthernet0/0/1
L [Link]/32 is directly connected, GigabitEthernet0/0/1
R1#

R1# show ipv6 route


<output omitted>
C 2001:DB8:ACAD:10::/64 [0/0]
via GigabitEthernet0/0/0, directly connected
L 2001:DB8:ACAD:10::1/128 [0/0]
via GigabitEthernet0/0/0, receive
C 2001:DB8:FEED:224::/64 [0/0]
via GigabitEthernet0/0/1, directly connected
L 2001:DB8:FEED:224::1/128 [0/0]
via GigabitEthernet0/0/1, receive
L FF00::/8 [0/0]
via Null0, receive
R1# © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 5
Configure Interfaces
Configure Verification Commands (Cont.)
Display IPv4 statistics for router interfaces with the Display statistics for all interfaces with the show
show ip interface command, as shown here: interfaces command, as shown here:
R1# show ip interface g0/0/0 R1# show interfaces gig0/0/0
GigabitEthernet0/0/0 is up, line protocol is up GigabitEthernet0/0/0 is up, line protocol is up
Internet address is [Link]/24 Hardware is ISR4321-2x1GE, address is a0e0.af0d.e140 (bia
a0e0.af0d.e140)
Broadcast address is [Link]
Description: Link to LAN
Address determined by setup command Internet address is [Link]/24
MTU is 1500 bytes MTU 1500 bytes, BW 100000 Kbit/sec, DLY 100 usec,
Helper address is not set reliability 255/255, txload 1/255, rxload 1/255
Directed broadcast forwarding is disabled Encapsulation ARPA, loopback not set
Outgoing Common access list is not set Keepalive not supported
Outgoing access list is not set Full Duplex, 100Mbps, link type is auto, media type is RJ45
Inbound Common access list is not set output flow-control is off, input flow-control is off
Inbound access list is not set ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:01, output 00:00:35, output hang never
Proxy ARP is enabled
Last clearing of "show interface" counters never
Local Proxy ARP is disabled Input queue: 0/375/0/0 (size/max/drops/flushes); Total output
Security level is default drops: 0
Split horizon is enabled Queueing strategy: fifo
ICMP redirects are always sent Output queue: 0/40 (size/max)
ICMP unreachables are always sent 5 minute input rate 0 bits/sec, 0 packets/sec
ICMP mask replies are never sent 5 minute output rate 0 bits/sec, 0 packets/sec
IP fast switching is enabled 1180 packets input, 109486 bytes, 0 no buffer
IP Flow switching is disabled Received 84 broadcasts (0 IP multicasts)
0 runts, 0 giants, 0 throttles
<output omitted> <output omitted>
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 6
R1# R1#
Configure Interfaces
Configure Verification Commands (Cont.)
Display IPv6 statistics for R1# show ipv6 interface g0/0/0
GigabitEthernet0/0/0 is up, line protocol is up
router interfaces with the IPv6 is enabled, link-local address is
FE80::868A:8DFF:FE44:49B0
show ipv6 interface No Virtual link-local address(es):
command shown here: Description: Link to LAN
Global unicast address(es):
2001:DB8:ACAD:10::1, subnet is 2001:DB8:ACAD:10::/64
Joined group address(es):
FF02::1
FF02::1:FF00:1
FF02::1:FF44:49B0
MTU is 1500 bytes
ICMP error messages limited to one every 100 milliseconds
ICMP redirects are enabled
ICMP unreachables are sent
ND DAD is enabled, number of DAD attempts: 1
ND reachable time is 30000 milliseconds (using 30000)
ND NS retransmit interval is 1000 milliseconds

R1#

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 7
Configure the Default Gateway
Default Gateway on a Host
• The default gateway is used when a host sends a
packet to a device on another network.
• The default gateway address is generally the router
interface address attached to the local network of
the host.
• To reach PC3, PC1 addresses a packet with the
IPv4 address of PC3, but forwards the packet to its
default gateway, the G0/0/0 interface of R1.
• Default Gateway on a Switch
• A switch must have a default gateway address
configured to remotely manage the switch from
another network. Note: The IP address of the host
• To configure an IPv4 default gateway on a switch, and the router interface must be
use the ip default-gateway ip-address global in the same network.
configuration command.
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 8
‫عملي الباب الثامن والعاشر‬
-:‫ كالتالي‬R1 ‫ للروتر‬Rip ‫برمجة بروتوكول‬
R1(config)#router rip
R1(config-router)#version 2
R1(config-router)#Network [Link]
R1(config-router)#Network [Link]

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 9

You might also like