路由技术实训报告
三、实训过程
1、地址规划表 设备 PC1 PC2 PC3 PC4 PC5 Branch 接口 网卡 网卡 网卡 网卡 网卡 Fastethernet0/0 Faftethernet0/1 Serial0/0/0 Fastethernet0/0 HQ Faftethernet0/1 Serial0/0/0 Serial0/0/1 ISP Fastethernet0/0 Serial0/0/1 IP地址 192.168.40.174 192.168.40.158 192.168.40.62 192.168.40.126 209.165.200.254 192.168.40.129 192.168.40.161 192.168.40.178 192..168.40.1 192.168.40.65 192.168.40.177 209.165.202.158 209.165.200.225 209.165.202.129 子网掩码 255.255.255.240 255.255.255.224 255.255.255.192 255.255.255.192 255.255.255.224 255.255.255.224 255.255.255.240 255.255.255.252 255.255.255.192 255.255.255.192 255.255.255.252 255.255.255.224 255.255.255.224 255.255.255.224 默认网关 192.168.40..161 192.168.40.129 192.168.40.1 192.168.40.65 209.165.200.225 不可用 不可用 不可用 不可用 不可用 不可用 不可用 不可用 不可用 2、操作步骤及命令 1)配置主机名:(config)# hostname BRANCH
配置接口IP:
(config)# interface fastethernet0/0
(config-if)# ip add 192.168.40.129 255.255.255.2554
启用接口:(config-if)# no shutdown 配置接口IP:
(config)# interface fastethernet0/1
(config-if)# ip add 192.168.40.161 255.255.255.240
启用接口:(config-if)# no shutdown
(config)# interface serial0/0/0
(config-if)# ip add 192.168.40.178 255.255.255.252 (config-if)# clock rate 64000
启用接口:(config-if)# no shutdown 配置RIP:(config)# router rip
配置RIPv2 (config-router) # version 2
(config-router) #passive-interface FastEthernet0/0 (config-router) #passive-interface FastEthernet0/1
(config-router) # network 192.168.40.0
配置主机名:(config)# hostname HQ
配置接口IP:
(config)# interface fastethernet0/0
(config-if)# ip add 192.168.40.1 255.255.255.192
10
路由技术实训报告
启用接口:(config-if)# no shutdown 配置接口IP:
(config)# interface fastethernet0/1
(config-if)# ip add 192.168.40.65 255.255.255.192
启用接口:(config-if)# no shutdown
(config)# interface serial0/0/0
(config-if)# ip add 192.168.40.177 255.255.255.252 (config-if)# clock rate 64000
启用接口:(config-if)# no shutdown
(config)# interface serial0/0/1
(config-if)# ip add 209.165.202.158 255.255.255.224 (config-if)# clock rate 64000
启用接口:(config-if)# no shutdown
配置RIP:(config)# router rip
配置RIPv2(config-router) # version 2
(config-router) #passive-interface FastEthernet0/0 (config-router) #passive-interface FastEthernet0/1
(config-router) # network 192.168.40.0 (config-router)# network 209.165.200.0
(config-router)# default-information originate 2) 禁用DNS查找:(config)# no ip domain-lookup 3) 配置控制台连接的口令:(config)#line console 0
(config-line)#password cisco (config-line)#login
4) 配置 VTY 连接口令:(config)# line vty 0 2
(config-line)#password cisco (config-line)#login
5) 配置当日消息 : (config)# banner motd ^ jin tian shi ge hao ri zi ^
四、实训结果
Branch#show run
Building configuration...
Current configuration : 806 bytes !
version 12.3
no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption !
hostname Branch
11
路由技术实训报告
!
no ip domain-lookup ! !
interface FastEthernet0/0
ip address 192.168.40.129 255.255.255.224 duplex auto speed auto !
interface FastEthernet0/1
ip address 192.168.40.161 255.255.255.240 duplex auto speed auto !
interface Serial0/0/0
ip address 192.168.40.178 255.255.255.252 !
interface Serial0/0/1 no ip address shutdown !
interface Vlan1 no ip address shutdown !
router rip version 2
passive-interface FastEthernet0/0 passive-interface FastEthernet0/1 network 192.168.40.0 !
ip classless !
banner motd ^C wangluo 1101 ^C
!
line con 0
password cisco login
line vty 0 4 password cisco login ! ! ! End
HQ#show run
Building configuration...
12
路由技术实训报告
Current configuration : 986 bytes !
version 12.3
no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption !
hostname HQ !
no ip domain-lookup !
interface FastEthernet0/0
ip address 192.168.40.1 255.255.255.192 duplex auto speed auto !
interface FastEthernet0/1
ip address 192.168.40.65 255.255.255.192 duplex auto speed auto !
interface Serial0/0/0
ip address 192.168.40.177 255.255.255.252 clock rate 64000 !
interface Serial0/0/1
ip address 209.165.202.158 255.255.255.224 clock rate 64000 !
interface Vlan1 no ip address shutdown !
router rip
passive-interface FastEthernet0/0 passive-interface FastEthernet0/1 network 192.168.40.0 network 209.165.200.0
default-information originate !
ip classless
ip route 0.0.0.0 0.0.0.0 Serial0/0/0 ip route 0.0.0.0 0.0.0.0 Serial0/0/1 ! ! !
banner motd ^C jin tian shi ge hao ri zi ^C ! ! !
13
路由技术实训报告
!
line con 0
password cisco login
line vty 0 4 password cisco login ! end
ISP#show run
Building configuration...
Current configuration : 728 bytes !
version 12.3
no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption !
hostname ISP
!
interface FastEthernet0/0
ip address 209.165.200.225 255.255.255.224 duplex auto speed auto !
interface FastEthernet0/1 no ip address duplex auto speed auto shutdown !
interface Serial0/0/0 no ip address shutdown !
interface Serial0/0/1
ip address 209.165.202.129 255.255.255.224 !
interface Vlan1 no ip address shutdown !
router rip
passive-interface FastEthernet0/0 !
ip classless
14