资源描述
网络设备配置实训报告
63
2020年5月29日
文档仅供参考
网络设备配置实训报告
班 级: 网络331301班
组 别: 第七组
小组成员: 刘 闯 陈 泽 蔡 轩
毛晨飞 李慧敏 李晓芃
宋钰
<网络设备配置>课程实训任务书
计算机信息 系 计算机网络 专业 网络331302 班
课程实训评审标准
(1) 考勤与学习态度(20分):
(2) 理论理解与实训报告内容(40分):
(3) 实训步骤规范程度(20分):
(4) 实训结果考核(20分):
小组成员成绩:
组员姓名(学号)
成绩
王 超 13
王 裴 61
李 圆 01
李萌萌 24
刘朵朵 41
刘小艳 48
宋如星 36
乔雅倩 17
指导教师评语:
评阅人: 评阅时间:
一、实习的任务
按照计算机网络专业教学培养计划要求,学生在学完专业课<网络设备配置>课程后,应进行网络设备配置技术实训,其主要的任务是使学生深入理解并实践在本课程中所学的有关网络设备配置方面的基本概念、基本原理以及一些具体的实操配置应用实践,培养学生实际管理网络的能力,为学生毕业后的实际工作打好基础。
二、实习的主要内容
根据<网络设备配置>课程教学大纲,本实训的主要内容可分为如下三部分。
1. 路由器配置实训
2. 交换机配置实训
3. 广域网配置实训
三、实习时间分配
阶段
日 期
实习(设计)内容摘要
指导教师
班级
第一周
星期一
PPP基本配置与认证
李立峰
肖文占
网络331302
星期二
帧中继配置实训
星期三
交换机配置实训
路由器配置实训
星期四
ACL配置实训
NAT配置实训
星期五
整理实训报告 考核
四、实习内容
实验一 PPP基本配置与认证实验目的
l 实验目的
Ø 串行链路上的封装概念。
Ø PPP封装。
Ø 掌握PAP认证特点和配置方法。
Ø 掌握CHAP认证特点和配置方法。
l 实验过程和主要步骤
步骤一:路由器基本配置
路由器A:
A(config)#interface F0/0
A(config-if)#ip address 192.168.1.1 255.255.255.0
A(config-if)#no shutdown
A(config)#interface Serial2/0
A(config-if)#ip address 10.10.10.2 255.255.255.252
A(config-if)#no shutdown
路由器B:
B(config)#interface Serial2/0
B(config-if)#ip address 10.10.10.1 255.255.255.252
B(config-if)#clock rate 64000
B(config)#interface Serial3/0
B(config-if)#ip address 20.20.20.21 255.255.255.252
B(config-if)#clock rate 64000
B(config-if)#no shutdown
路由器C:
C(config)#interface Serial3/0
C(config-if)#ip address 20.20.20.22 255.255.255.252
C(config-if)#no shutdown
C(config)#interface FastEthernet0/0
C(config-if)#ip address 192.168.2.1 255.255.255.0
C(config-if)#no shutdown
步骤二:配置登录用户名和密码
路由器A:
A(config)#username B password 123456
路由器B:
B(config)#username A password 123456
B(config)#username C password 123456
路由器C:
C(config)#username B password 123456
步骤三: PPP封装
路由器A:
A(config)#interface serial 2/0
A(config-if)#encapsulation ppp
路由器B:
B(config)#interface s2/0
B(config-if)#encapsulation ppp
B(config)#interface s3/0
B(config-if)#encapsulation ppp
路由器C:
C(config)#interface s3/0
C(config-if)#encapsulation ppp
步骤四:配置PAP和CHAP认证
路由器A与B之间的PAP配置:
A(config)#int s2/0
A(config-if)#encapsulation ppp
A(config-if)#ppp authentication pap
A(config-if)#ppp pap sent-username A password 123456
B(config)#int s2/0
B(config-if)#encapsulation ppp
B(config-if)#ppp authentication pap
B(config-if)#ppp pap sent-username B password 123456
路由器B与C之间的CHAP配置:
B(config)#int s3/0
B(config-if)#encapsulation ppp
B(config-if)#ppp authentication chap
C(config)#int s3/0
C(config-if)#encapsulation ppp
C(config-if)#ppp authentication chap
步骤五:配置路由协议
这里以rip version 2为例
以路由器A为例:
A(config)#router rip
A(config-router)#version 2
A(config-router)#network 192.168.1.0
A(config-router)#network 10.10.10.0
A(config-router)#no auto-summary
步骤六:查看并验证配置
在A上show interface s2/0:
在B上show interface s2/0:
在B上show interface s3/0:
在C上show interface s3/0:
l 实验拓扑
l 心得体会
我学会了PPP封装,以及CHAP的认证方法依赖于只有认证者和对端共享的密钥,密钥不是经过该链路发送的。
实验二 帧中继配置
l 实验目的
Ø 掌握帧中继基本概念、DLCI含义、LMI作用、静态和动态映射区别
Ø 掌握帧中继基本配置:如接口封装、DLCI配置、LMI配置等
Ø 能够对帧中继进行基本故障排除
l 实验过程和主要步骤
1.绘制网络拓扑和地址规划情况
网络拓扑,各个路由器接口的IP配置以及DLCI配置信息见上图。
2.单个路由器的基本配置清单
以路由器A为例:
Router>enable
Router#configure terminal
Router(config)#hostname A
A(config)#interface Serial2/0
A(config-if)#ip address 192.168.1.1 255.255.255.0
A(config-if)#no shutdown
3.单个路由器帧中继基本配置清单:如封装、ip、dlci、lmi
以路由器A为例:
其中 A->C的DLCI为103
A->B的DLCI为 102
接口的LMI类型为CISCO
A(config)#int s2/0
A(config-if)#encapsulation frame-relay
A(config-if)#bandwidth 64
A(config-if)#frame-relay map ip 192.168.1.2 102 broadcast
A(config-if)#frame-relay map ip 192.168.1.3 103 broadcast
A(config-if)#frame-relay lmi-type cisco
4.网云交换表配置
以网云Serial0为例:
网云交换表的配置如下:
5.验证三个路由器通信情况
以在路由器A上ping B和C为例
6.在各个路由器上配置ospf
以路由器A为例
A(config)#router ospf 1
A(config-router)#network 192.168.1.0 0.0.0.255 area 0
7.验证配置情况
S2(config-if)# interface vlan 99
S2(config-if)# ip addr
S2(config-if)# ip address 172.17.99.32 255.255.255.0
S2(config-if)# no shu
S2(config-if)# no shutdown
S2(config)# ip default-gateway 172.17.99.1
S2(config)# vtp mode client
Setting device to VTP CLIENT mode.
S2(config)# vtp d
%CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on FastEthernet0/4 (1), with S1 FastEthernet0/4 (99).
omain CCNA
Domain name already set to CCNA.
S2(config)# vtp passw
S2(config)# vtp password CISCO
Setting device VLAN database password to CISCO
S2(config)# vtp password cisco
S2(config-if)# switchport trunk native vlan 99
S2(config-if)# no shutdown
S2(config-if)# interface fa0/11
S2(config-if)# switchport mode trunk
S2(config-if)# switchport trunk native vlan 99
S2(config-if)# no shutdown
S2(config-if)# interface fa0/18
S2(config-if)# switchport mode trunk
S2(config-if)# switchport trunk native vlan 99
S2(config-if)# no shutdown
S2(config-if)# exit
S2(config)# interface fa0/11
S2(config-if)# swit
S2(config-if)# switchport mode
S2(config-if)# switchport mode access
S2(config-if)# switch
S2(config-if)# switchport access vlan 10
S2(config-if)# no shu
S2(config-if)# no shutdown
S2(config-if)# swi
S2(config-if)# switchport mode access
S2(config-if)# switch
S2(config-if)# switchport access
S2(config-if)# switchport access vlan 20
S2(config-if)# no shu
S2(config-if)# no shutdown
S2(config-if)#
Switch>
Switch> en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# host
Switch(config)# hostname S3
S3(config)# vlan 99
S3(config-if-range)# switchport mode
S3(config-if-range)# switchport mode trunk
S3(config-if-range)# sw
S3(config-if-range)# switchport tru
S3(config-if-range)# switchport trunk nati
S3(config-if-range)# switchport trunk native vlan 99
S3(config-if)# switchport trunk native vlan 99
S3(config-if)# no shutdown
S3(config-if)# exit
S3(config)# vtp mode client
Setting device to VTP CLIENT mode.
S3(config)# vtp domain CCNA
Domain name already set to CCNA.
S3(config)# vtp passw
S3(config)# vtp password
% Incomplete command.
S3(config)# vtp password cisco
Setting device VLAN database password to cisco
S3(config)# interface fa0/7
S3(config-if)# switch
S3(config-if)# switchport mode access
S3(config-if)# swi
S3(config-if)# switchport access
S3(config-if)# switchport access vlan 88
S3(config-if)# no shu
S3(config-if)# no shutdown
S3(config-if)#
R1> en
Password:
Password:
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)# interfa
R1(config)# interface fa0/0
R1(config-if)# ip addr
R1(config-if)# interface fa0/0
R1(config-if)# 172.17.50.1 255.255.255.0
^
% Invalid input detected at '^' marker.
R1(config-if)# ip addr 172.17.50.1 255.255.255.0
R1(config-if)# ip address 172.17.50.1 255.255.255.0
R1(config-if)# no shu
R1(config-if)# no shutdown
R1(config-if)# enc
R1(config-if)# en
R1(config-if)# e
R1(config-if)# exit
R1(config-if)# ex
R1(config)# encapsul
R1(config)# encapsul
R1(config)# enc
R1(config)# enc
R1(config)# enc
R1(config)#
R1(config)# interf
R1(config)# interface fa0/1
R1(config-if)# no shu
R1(config-if)# no shutdown
R1(config-if)# encap
R1(config-if)# interface
R1(config-if)# interface fa0/1.10
R1(config-subif)# enca
R1(config-subif)# encapsulation dot1q 10
R1(config-subif)#ip addr
R1(config-subif)# encapsulation dot1q 10
R1(config-subif)# ip addr
R1(config-subif)# ip address 172.17.10.1 255.255.255.0
R1(config-subif)# interface fa0/1.20
R1(config-subif)# ip addr
R1(config-subif)# ip address 172.17.20.1 255.255.255.0
% Configuring IP routing on a LAN subinterface is only allowed if that
subinterface is already configured as part of an IEEE 802.10, IEEE 802.1Q,
or ISL vLAN.
R1(config-subif)# interface fa0/1.88
R1(config-subif)# encaps
R1(config-subif)# encapsulation dot1q 88
R1(config-subif)# ip addr
R1(config-subif)# ip address 172.17.88.1 255.255.255.0
R1(config-subif)# interface fa0/1.99
R1(config-subif)# encapsulation dot1q 99
R1(config-subif)# ip address 172.17.99.1 255.255.255.0
R1(config-subif)# interface fa0/1.20
R1(config-subif)# encapsulation dot1q 20
R1(config-subif)# ip address 172.17.20.1 255.255.255.0
R1(config-subif)#exit
l 实验拓扑
l 心得体会
我学会了,帧中继传输数据,Cisco路由器需要知道哪个本地DLCL映射到远程目的地的第3层地址,这种地址到DLCL的映射可经过静态映射或动态映射指定。
实验三 交换机配置实训
l 实验目标
Ø 配置并检验基本设备配置。
Ø 配置 VTP
Ø 配置中继
Ø 配置 VLAN
Ø 为端口分配 VLAN
Ø 配置 STP
Ø 配置 VLAN 间单臂路由
Ø 配置无线连接
Ø 检验端到端连通性
l 实验拓扑
l 实验过程和主要步骤
S1(config)#vtp mode server
Setting device to VTP SERVER mode.
S1(config)#vtp domain Lab4
Changing VTP domain name from NULL to Lab4
S1(config)#vtp password cisco
Setting device VLAN database password to cisco
S1(config)#end
S1#
%SYS-5-CONFIG_I: Configured from console by console
S2(config)#vtp mode client
Setting device to VTP CLIENT mode.
S2(config)#vtp domain Lab4
Changing VTP domain name from NULL to Lab4
S2(config)#vtp password cisco
Setting device VLAN database password to cisco
S2(config)#end
S2#
%SYS-5-CONFIG_I: Configured from console by console
S3(config)#vtp mode client
Setting device to VTP CLIENT mode.
S3(config)#vtp domain Lab4
Domain name already set to Lab4.
S3(config)#vtp password cisco
Password already set to cisco
S3(config)#end
S3#
%SYS-5-CONFIG_I: Configured from console by console
S1(config)#interface range fa0/1-5
S1(config-if-range)#switchport mode trunk
S1(config-if-range)#switchport trunk native vlan 99
S1(config-if-range)#no sh
S1(config-if-range)#no shutdown
S1(config-if-range)#end
S1#
%SYS-5-CONFIG_I: Configured from console by console
S2(config)# interface range fa0/1-5
S2(config-if-range)#switchport mode trunk
S2(config-if-range)#switchport trunk native vlan 99
S2(config-if-range)#no shutdown
S2(config-if-range)#end
S3(config)# interface range fa0/1-5
S3(config-if-range)#switchport mode trunk
S3(config-if-range)#switchport trunk native vlan 99
S3(config-if-range)#no shutdown
S3(config-if-range)#end
S1(config)#vlan 99
S1(config-vlan)#name
S1(config-vlan)#name mangement
S1(config-vlan)#exit
S1(config)#vlan 10
S1(config-vlan)#name Faculty/Staff
S1(config-vlan)#exit
S1(config)#vlan 88
S1(config-vlan)#name Wireless
S1(config-vlan)#exit
S1(config)#vlan 20
S1(config-vlan)#name Students
S1(config-vlan)#exit
S2(config)#interface fa0/11
S2(config-if)#switchport access vlan 10
S2(config-if)#exit
S2(config)#interface fa0/18
S2(config-if)#switchport access vlan 20
S2(config-if)#exit
R1(config)#interface fa0/1.10
R1(config-subif)#ip address 172.17.10.1 255.255.255.0
R1(config)#interface fa0/1.20
R1(config-subif)#ip address 172.17.20.1 255.255.255.0
R1(config)#interface fa0/1.88
R1(config-subif)#ip address 172.17.88.1 255.255.255.0
R1(config)#interface fa0/1.99
R1(config-subif)#ip address 172.17.99.1 255.255.255.0
S1(config)#ip default-gateway 172.17.99.1
S2(config)#ip default-gateway 172.17.99.1
S3(config)#ip default-gateway 172.17.99.1
l 心得体会
在配置过程中,经常粗心敲错命令,导致最后ping不通,要仔细。
实验四 路由器配置实训
l 实验目的
• 设计一个编址方案并记录下来。
• 在设备上应用基本配置。
• 配置路由器优先级和路由器 ID。
• 配置 OSPF 路由。
• 在适当的接口上禁用路由更新。
• 检验拓扑中所有设备间的完全连通性
l 实验拓扑
l 实验过程和主要步骤
S1>
S1> EN
S1# conf t
Enter configuration commands, one per line. End with CNTL/Z.
S1(config)# span
S1(config)# spanning-tree prio
S1(config)# spanning-tree pr
S1(config)# spanning-tree p
S1(config)# spanning-tree ?
mode Spanning tree operating mode
portfast Spanning tree portfast options
vlan VLAN Switch Spanning Tree
S1(config)# spanning-tree
S2(config-if)# interface vlan 99
S2(config-if)# ip addr
S2(config-if)# ip address 172.17.99.32 255.255.255.0
S2(config-if)# no shu
S2(config-if)# no shutdown
S2(config)# ip default-gateway 172.17.99.1
S2(config)# vtp mode client
Setting device to VTP CLIENT mode.
S2(config)# vtp d
%CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on FastEthernet0/4 (1), with S1 FastEthernet0/4 (99).
omain CCNA
Domain name already set to CCNA.
S2(config)# vtp passw
S2(config)# vtp password CISCO
Setting device VLAN database password to CISCO
S2(config)# vtp password cisco
S2(config-if)# switchport trunk native vlan 99
S2(config-if)# no shutdown
S2(config-if)# interface fa0/11
S2(config-if)# switchport mode trunk
S2(config-if)# switchport trunk native vlan 99
S2(config-if)# no shutdown
S2(config-if)# interface fa0/18
S2(config-if)# switchport mode trunk
S2(config-if)# switchport trunk native vlan 99
S2(config-if)# no shutdown
S2(config-if)# exit
S2(config)# interface fa0/11
S2(config-if)# swit
S2(config-if)# switchport mode
S2(config-if)# switchport mode access
S2(config-if)# switch
S2(config-if)# switchport access vlan 10
S2(config-if)# no shu
S2(config-if)# no shutdown
S2(config-if)# swi
S2(config-if)# switchport mode access
S2(config-if)# switch
S2(config-if)# switchport access
S2(config-if)# switchport access vlan 20
S2(config-if)# no shu
S2(config-if)# no shutdown
S2(config-if)#
Switch>
Switch> en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# host
Switch(config)# hostname S3
S3(config)# vlan 99
S3(config-if-range)# switchport mode
S3(config-if-range)# switchport mode trunk
S3(config-if-range)# sw
S3(config-if-range)# switchport tru
S3(config-if-range)# switchport trunk nati
S3(config-if-range)# switchport trunk native vlan 99
S3(config-if)# switchport trunk native vlan 99
S3(config-if)# no shutdown
S3(config-if)# exit
S3(config)# vtp mode client
Setting device to VTP CLIENT mode.
S3(config)# vtp domain CCNA
Domain name already set to CCNA.
S3(config)# vtp passw
S3(config)# vtp password
% Incomplete command.
S3(config)# vtp password cisco
Setting device VLAN database password to cisco
S3(config)# interface fa0/7
S3(config-if)# switch
S3(config-if)# switchport mode access
S3(config-if)# swi
S3(config-if)# switchport access
S3(config-if)# switchport access vlan 88
S3(config-if)# no shu
S3(config-if)# no shutdown
S3(config-if)#
R1> en
Password:
Password:
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)# interfa
R1(config)# interface fa0/0
R1(config-if)# ip addr
R1(config-if)# interface fa0/0
R1(config-if)# 172.17.50.1 255.255.255.0
展开阅读全文