- Addressing Table
-
Device
Interface
IP Address
Subnet Mask
Default Gateway
R1
G0/1
172.30.10.1
255.255.255.0
N/A
S0/0/0 (DCE)
10.1.1.1
255.255.255.252
N/A
R2
G0/0
209.165.201.1
255.255.255.0
N/A
S0/0/0
10.1.1.2
255.255.255.252
N/A
S0/0/1 (DCE)
10.2.2.2
255.255.255.252
N/A
R3
G0/1
172.30.30.1
255.255.255.0
N/A
S0/0/1
10.2.2.1
255.255.255.252
N/A
S1
N/A
VLAN 1
N/A
N/A
S3
N/A
VLAN 1
N/A
N/A
PC-A
NIC
172.30.10.3
255.255.255.0
172.30.10.1
PC-B
NIC
209.165.201.2
255.255.255.0
209.165.201.1
PC-C
NIC
172.30.30.3
255.255.255.0
172.30.30.1
- Cable in the Cisco Packet tracer
5.Configure basic settings for each router and switch. (以PC-C为例)
a.Disable DNS lookup.
Router>enable
Router#config t
Router(config)#no ip domain-lookup
b.Configure device names as shown in the topology. Router(config)#hostname R3
c.Configure password encryption.R3(config)#service password-encryption
d.Assign class as the privileged EXEC password.R3(config)#enable secret class
e.Assign cisco as the console and vty passwords.
R3(config-line)#line vty 0 4
R3(config-line)#password cisco
R3(config-line)#login
f.Configure a MOTD banner to warn users that unauthorized access is prohibited. R3(config)#banner motd #
Unauthorized access prohibited!#
g.Configure logging synchronous for the console line.
R3(config)#line console 0
R3(config-line)#logging synchronous
h.Configure the IP addresses listed in the Addressing Table for all interfaces.
i.Configure a description for each interface with an IP address.
g.Configure the clock rate, if applicable, to the DCE serial interface.
R3(config)#interface G0/1
R3(config-if)#ip address 172.30.30.1 255.255.255.0
R3(config-if)#description LINK to S3
R3(config-if)#no shutdown
R3(config-if)#int S0/0/1
R3(config-if)#ip address 10.2.2.1 255.255.255.252
R3(config-if)#clock rate 64000
R3(config-if)#description LINK to R2
R3(config-if)#no shutdown
k.Copy the running-configuration to the startup-configuration.R3#copy run startup
6.Configure RIPv2 on R1 as the routing protocol and advertise the appropriate connected networks.
R1# config t
R1(config)# router rip
R1(config-router)# version 2
R1(config-router)# passive-interface g0/1
R1(config-router)# network 172.30.0.0
R1(config-router)# network 10.0.0.0
7.Check(use ping command)
8.debug ip rip(特权模式下)