已阅读5页,还剩14页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
实验报告实验报告 实验网络拓扑结构实验网络拓扑结构 实验目的实验目的 1 实现校园网网络连通 1 利用静态路由实现汇聚交换机和路由器与核心路由器间连通 2 利用 rip 实现内部汇聚交换机与核心路由器间连通 3 利用 ospf 实现汇聚路由器与核心路由器连通 4 通过设置单臂路由使教学楼 1 和教学楼 2 能互相连通 5 对学生宿舍楼和教学楼分别划分 vlan 2 在核心路由器上实现 nat 转换 使内部网络能访问 internet 3 设置标准 acl 规则 禁止外部用户访问内部网络 4 设置扩展 acl 规则 仅允许内部用户访问数据中心的 80 21 端口 6 在核心路由与出口路由间运用 ppp 协议配置 最后要求将检测结果放入一个 WORD 文档中 文件名为 学号 大作业 DOC 中 给出网络互通的效果 将 PING 截图 在各网络设备上 用 SHOW RUN 命令 对交换机 还要求 SHOW VLAN show int ip switchport 对路由器 还要求 SHOW IP ROUTE 对 NAT 要求用 PING T 及 DEBUG IP NAT 对 ACL 要求检测相关口或 VLAN 的 ACL 表 SHOW IP INT 端口号 实验中运用的知识点实验中运用的知识点 1 静态路由 2 Rip 3 Ospf 4 nat 转换 5 标准访问控制列表规则 6 扩展访问控制列表规则 7 划分 vlan 8 单臂路由 9 广域网协议 ppp 实验配置步骤实验配置步骤 第一部分第一部分 配置内部网络连通配置内部网络连通 注意 配置中省略了各端口的注意 配置中省略了各端口的 ip 配置 相信端口配置 相信端口 ip 可以从拓扑图中反应可以从拓扑图中反应 1 接入交换机 接入交换机 1 配置配置 划分划分 vlan Switch config int fa0 2 Switch config if switchport access vlan Switch config if switchport access vlan 2 Switch config int fa0 3 Switch config if switchport access vlan 3 Switch config int fa0 1 Switch config if switchport trunk encapsulation dot1q 2960 等交换机只支持 802 1q 协议 这里忽略 Switch config if switchport mode trunk Switch config if switchport trunk allowed vlan all Switch config if exit 2 2 汇聚路由器配置 汇聚路由器配置 设置单臂路由设置单臂路由 Router config interface fa0 0 1 配置 子接口 这是配置单臂路由的关键 这个接口是个 逻 辑接口 并不是实际存在的物理接口 但是功能却和物理接口是一样的 Router config subif encapsulation dot1q 2 为这个接口配置 802 1Q 协议 最后面的 2 是 vlan 号 这也是关键部分 Router config subif ip address 192 168 2 254 255 255 255 0 为该接口划分 ip 地址 Router config subif exit Router config interface fa0 0 2 Router config subif encapsulation dot1q 3 Router config subif ip address 192 168 3 254 255 255 255 0 Router config subif end 设置设置 ospf Router config router ospf 100 Router config router network 192 168 3 0 0 0 0 255 area 0 Router config router network 192 168 4 0 0 0 0 255 area 0 设置静态路由设置静态路由 Router config ip route 0 0 0 0 0 0 0 0 192 168 4 101 3 接入交换机 接入交换机 2 配置配置 创建创建 vlan4 vlan5 Switch config int vlan4 Switch config int vlan5 Switch config int fa0 2 Switch config if switchport access vlan 4 Switch config int fa0 3 Switch config if switchport access vlan 5 4 汇聚交换机配置 汇聚交换机配置 为为 vlan4 和和 vlan5 设置设置 svi Switch config int vlan 4 Switch config if ip address 172 16 2 254 Switch config int vlan 5 Switch config if ip address 172 16 3 254 设置设置 trunk Switch config int fa0 1 Switch config if switchport mode trunk 设置 rip Switch config router rip Switch config router network 172 16 0 0 设置静态路由设置静态路由 Router config ip route 0 0 0 0 0 0 0 0 172 16 4 101 5 核心路由器配置 核心路由器配置 设置静态路由设置静态路由 Router config ip route 0 0 0 0 0 0 0 0 192 168 4 100 Router config ip route 0 0 0 0 0 0 0 0 172 16 4 100 设置设置 rip Router config router rip Router config router network 192 168 4 0 Router config router network 172 16 0 0 设置设置 ospf Router config router ospf 100 Router config router network 192 168 4 0 0 0 0 255 area 0 6 汇聚交换机 汇聚交换机 2 配置配置 设置静态路由设置静态路由 Switch config ip route 0 0 0 0 0 0 0 0 10 1 2 101 至此 内部网络均能互相连通 接下来我们先配置至此 内部网络均能互相连通 接下来我们先配置 nat 使内网可以连通外网使内网可以连通外网 第二部分第二部分 设置设置 natnat 转换 使内部用户能访问外部网络转换 使内部用户能访问外部网络 核心路由器 核心路由器 nat 配置 配置 Router config int fa0 0 Router config if ip nat inside 将该接口标记为内部接口 Router config int fa1 0 Router config if ip nat inside 将该接口标记为内部接口 Router config int fa7 0 将该接口标记为内部接口 Router config if ip nat inside Router config int se2 0 Router config if ip nat outside 将该接口标记为外部接口 Router config access list 10 permit 192 168 4 0 0 0 0 255 Router config access list 10 permit 192 168 2 0 0 0 0 255 Router config access list 10 permit 192 168 3 0 0 0 0 255 Router config access list 10 permit 172 16 0 0 0 0 255 255 Router config access list 10 permit 172 16 0 0 0 0 255 255 Router config access list 10 permit 10 1 2 0 0 0 0 255 Router config access list 10 permit 10 1 1 0 0 0 0 255 定义标准访问控制列表 10 只允许定义的地址能够被转换 Router config ip nat pool out 202 121 241 10 202 121 241 20 netmask 255 255 255 0 定义名称为 out 的地址池 Router config ip nat inside source list 10 pool out 将访问控制列表定义的地址和地址池关联这样就有前内部主机能够得到公网地址 第三部分第三部分 设置设置 aclacl 规则规则 首先设置出口路由器和核心路由器使外部网络与内部网络连通首先设置出口路由器和核心路由器使外部网络与内部网络连通 出口路由器配置出口路由器配置 设置静态路由设置静态路由 Router config ip route 0 0 0 0 0 0 0 0 202 121 241 8 核心路由器配置核心路由器配置 设置静态路由设置静态路由 Router config ip route 0 0 0 0 0 0 0 0 202 121 241 100 在出口路由器上做如下配置在出口路由器上做如下配置 设置标准访问控制列表规则如下 设置标准访问控制列表规则如下 1 禁止外部用户访问内部网络 Router config access list 11 deny any Router config int fa0 0 Router config if ip access group 11 in 在核心路由器上做如下配置在核心路由器上做如下配置 设置扩展访问控制列表规则如下设置扩展访问控制列表规则如下 2 仅允许内部用户访问数据中心的 80 21 端口 Router config ip access list extended test Router config ext nacl permit tcp any any eq 80 Router config ext nacl permit tcp any any eq 21 Router config ext nacl deny ip any any Router config int fa7 0 Router config if ip access group test out 第四部分第四部分 广域网协议广域网协议 pppppp 设置设置 出口路由器配置出口路由器配置 Router config hostname R1 R1 config username R2 password zgl R1 config int se2 0 R1 config if en ppp R1 config if ppp authentication chap 核心路由器配置核心路由器配置 Router config hostname R2 R2 config username R1 password zgl R2 config interface se2 0 R2 config if en ppp 实验检测实验检测 网络互通测试截图如下 网络互通测试截图如下 教学楼到汇聚路由器教学楼到汇聚路由器 教学楼到核心路由器教学楼到核心路由器 教学楼到宿舍楼教学楼到宿舍楼 教学楼到数据中心教学楼到数据中心 教学楼到外部网络教学楼到外部网络 宿舍楼到教学楼宿舍楼到教学楼 宿舍楼到数据中心宿舍楼到数据中心 宿舍楼到外部网络宿舍楼到外部网络 外部网络到教学楼外部网络到教学楼 外部网络到宿舍楼外部网络到宿舍楼 外部网络到数据中心外部网络到数据中心 Nat 转换测试 转换测试 在核心路由器上在核心路由器上 debug ip nat 截图如下 截图如下 Acl 规则测试规则测试 在核心路由器在核心路由器 Show ip 端口端口 Router show ip interface fa7 0 FastEthernet7 0 is up line protocol is up connected Internet address is 10 1 2 101 8 Broadcast address is 255 255 255 255 Address determined by setup command MTU is 1500 Helper address is not set Directed broadcast forwarding is disabled Outgoing access list is test Inbound access list is not set Proxy ARP is enabled Security level is default Split horizon is enabled ICMP redirects are always sent ICMP unreachables are always sent ICMP mask replies are never sent IP fast switching is disabled IP fast switching on the same interface is disabled IP Flow switching is disabled IP Fast switching turbo vector IP multicast fast switching is disabled IP multicast distributed fast switching is disabled Router Discovery is disabled IP output packet accounting is disabled IP access violation accounting is disabled TCP IP header compression is disabled RTP IP header compression is disabled Probe proxy name replies are disabled Policy routing is disabled Network address translation is disabled WCCP Redirect outbound is disabled WCCP Redirect exclude is disabled BGP Policy Mapping is disabled 在出口路由器在出口路由器 Show ip 端口端口 Router show ip interface fa0 0 FastEthernet0 0 is up line protocol is up connected Internet address is 219 220 240 100 24 Broadcast address is 255 255 255 255 Address determined by setup command MTU is 1500 Helper address is not set Directed broadcast forwarding is disabled Outgoing access list is not set Inbound access list is 11 Proxy ARP is enabled Security level is default Split horizon is enabled ICMP redirects are always sent ICMP unreachables are always sent ICMP mask replies are never sent IP fast switching is disabled IP fast switching on the same interface is disabled IP Flow switching is disabled IP Fast switching turbo vector IP multicast fast switching is disabled IP multicast distributed fast switching is disabled Router Discovery is disabled IP output packet accounting is disabled IP access violation accounting is disabled TCP IP header compression is disabled RTP IP header compression is disabled Probe proxy name replies are disabled Policy routing is disabled Network address translation is disabled WCCP Redirect outbound is disabled WCCP Redirect exclude is disabled BGP Policy Mapping is disabled 在汇聚路由及核心路由上在汇聚路由及核心路由上 show ospf neighbor 核心路由器上核心路由器上 show run show ip router R2 show run Building configuration Current configuration 1724 bytes version 12 2 no service timestamps log datetime msec no service timestamps debug datetime msec no service password encryption hostname R2 username R1 password 0 zgl interface FastEthernet0 0 ip address 192 168 4 101 255 255 255 0 ip nat inside duplex auto speed auto interface FastEthernet1 0 ip address 172 16 4 101 255 255 255 0 ip nat inside duplex auto speed auto interface Serial2 0 ip address 202 121 241 8 255 255 255 0 encapsulation ppp ppp authentication chap ip nat outside clock rate 64000 interface Serial3 0 no ip address shutdown interface FastEthernet4 0 no ip address shutdown interface FastEthernet5 0 no ip address shutdown interface GigabitEthernet6 0 no ip address duplex auto speed auto shutdown interface FastEthernet7 0 ip address 10 1 2 101 255 0 0 0 ip access group test out ip nat inside duplex auto speed auto router ospf 100 log adjacency changes network 192 168 4 0 0 0 0 255 area 0 router rip network 172 16 0 0 network 192 168 4 0 ip nat pool out 202 121 241 10 202 121 241 20 netmask 255 255 255 0 ip nat inside source list 10 pool out ip classless ip route 0 0 0 0 0 0 0 0 192 168 4 100 ip route 0 0 0 0 0 0 0 0 172 16 4 100 ip route 0 0 0 0 0 0 0 0 202 121 241 100 access list 10 permit 192 168 4 0 0 0 0 255 access list 10 permit 192 168 2 0 0 0 0 255 access list 10 permit 192 168 3 0 0 0 0 255 access list 10 permit 172 16 0 0 0 0 255 255 access list 10 permit 10 1 2 0 0 0 0 255 access list 10 permit 10 1 1 0 0 0 0 255 ip access list extended test permit tcp any any eq www permit tcp any any eq ftp deny ip any any no cdp run line con 0 line vty 0 4 login End R2 show ip route Codes C connected S static I IGRP R RIP M mobile B BGP D EIGRP EX EIGRP external O OSPF IA OSPF inter area N1 OSPF NSSA external type 1 N2 OSPF NSSA external type 2 E1 OSPF external type 1 E2 OSPF external type 2 E EGP i IS IS L1 IS IS level 1 L2 IS IS level 2 ia IS IS inter area candidate default U per user static route o ODR P periodic downloaded static route Gateway of last resort is 172 16 4 100 to network 0 0 0 0 C 10 0 0 0 8 is directly connected FastEthernet7 0 172 16 0 0 24 is subnetted 3 subnets R 172 16 2 0 120 1 via 172 16 4 100 00 00 21 FastEthernet1 0 R 172 16 3 0 120 1 via 172 16 4 100 00 00 21 FastEthernet1 0 C 172 16 4 0 is directly connected FastEthernet1 0 O 192 168 3 0 24 110 2 via 192 168 4 100 00 40 37 FastEthernet0 0 C 192 168 4 0 24 is directly connected FastEthernet0 0 C 202 121 241 0 24 is directly connected Serial2 0 S 0 0 0 0 0 1 0 via 172 16 4 100 1 0 via 192 168 4 100 1 0 via 202 121 241 100 在汇聚交换机在汇聚交换机 1 上上 show vlan Switch show vlan VLAN Name Status Ports 1 default active Fa0 3 Fa0 5 Fa0 6 Fa0 7 Fa0 8 Fa0 9 Fa0 10 Fa0 11 Fa0 12 Fa0 13 Fa0 14 Fa0 15 Fa0 16 Fa0 17 Fa0 18 Fa0 19 Fa0 20 Fa0 21 Fa0 22 Fa0 23 Fa0 24 Gig0 1 Gig0 2 4 VLAN0004 active Fa0 4 5 5 active 6 VLAN0006 active Fa0 2 1002 fddi default act unsup 1003 token ring default act unsup 1004 fddinet default act unsup 1005 trnet default act unsup VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2 1 enet 100001 1500 0 0 4 enet 100004 1500 0 0 5 enet 100005 1500 0 0 6 enet 100006 1500 0 0 1002 fddi 101002 1500 0 0 1003 tr 101003 1500 0 0 1004 fdnet 101004 1500 ieee 0 0 1005 trnet 101005 1500 ibm 0 0 Remote SPAN VLANs Primary Secondary Type Ports 在汇聚路由器上在汇聚路由器上 show ip router Router show ip route Codes C connected S static I IGRP R RIP M mobile B BGP D EIGRP EX EIGRP external O OSPF IA OSPF inter area N1 OSPF NSSA external type 1 N2 OSPF NSSA external type 2 E1 OSPF external type 1 E2 OSPF external type 2 E EGP i IS IS L1 IS IS level 1 L2 IS IS level 2 ia IS IS inter area candidate default U per user static route o ODR P periodic downloaded static route Gateway of last resort is 192 168 4 101 to network 0 0 0 0 C 192 168 2 0 24 is directly connected FastEthernet0 0 1 C 192 168 3 0 24 is directly connected FastEthernet0 0 2 C 192 168 4 0 24 is directly connected FastEthernet0 1 S 0 0 0 0 0 1 0 via 192 168 4 101 汇聚交换机汇聚交换机 2 上上 show vlan Switch show vlan VLAN Name Status Ports 1 default active Fa0 3 Fa0 4 Fa0 5 Fa0 6 Fa0 7 Fa0 8 Fa0 9 Fa0 10 Fa0 11 Fa0 12 Fa0 13 Fa0 14 Fa0 15 Fa0 16 Fa0 17 Fa0 18 Fa0 19 Fa0 20 Fa0 21 Fa0 22 Fa0 23 Fa0 24 Gig0 1 Gig0 2 2 VLAN0002 active Fa0 2 3 VLAN0003 active Fa0 1 1002 fddi default act unsup 1003 token ring default act unsup 1004 fddinet default act unsup 1005 trnet default act unsup VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2 1 enet 100001 1500 0 0 2 enet 100002 1500 0 0 3 enet 100003 1500 0 0 1002 fddi 101002 1500 0 0 1003 tr 101003 1500 0 0 1004 fdnet 101004 1500 ieee 0 0 1005 trnet 101005 1500 ibm 0 0 Remote SPAN VLANs Primary Secondary Type Ports 出口路由器上出口路由器上 show run 及及 show ip router R1 show ru
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 110千伏变电站项目可行性研究报告
- 脚手架搭设安全技术要求
- 聚融反假货币试题库及答案
- 青少年桨板技巧赛事筹备方案
- 改编教案优化思路
- 搅拌站安全生产培训试题及答案
- 匠心服务系列培训考试题及答案
- 加油站计量员考核试题及答案
- 机车规章测试题及答案
- 会展活动项目管理中的多语言沟通策略应用考核试卷及答案
- 第12课《醉翁亭记 》 课件 2026-2027学年统编版语文九年级上册
- 2026道德与法治新教材五年级上册全套单元试卷及参考答案
- 2026内蒙古地质矿产集团有限公司所属企业招聘226人笔试备考题库及答案详解
- 电力线路结构介绍(实物图)
- GB/T 21714.1-2026雷电防护第1部分:总则
- 国企园区运营业务测试卷(带答案解析)2026年
- GB/T 47743.1-2026数码照相机图像稳定性能的测量方法第1部分:光学防抖系统
- 莫兰迪简约风STAR法则运用模板
- 光平宕口生态提升工程项目环评报告表
- 档案室密集架设计方案
- 《食物过敏相关消化系统疾病诊断与管理循证指南(2026)》解读
评论
0/150
提交评论