郑州工商学院《路由交换技术设计》结课报告院部:工学院专业:网络工程班级:网络工程1702学号: ************姓名;赵秋锬日期: 2019.12.28课程设计指导教师评分表目录一、绪论 (4)二、用户需求分析 (4)三、主要目标和内容 (4)四、网络拓扑结构 (4)五、功能描述与分析 (5)六、设备配置流程 (5)1.交换机的配置 (5)2.路由器的配置 (10)3.PC配置如下: (10)七、系统测试结果 (11)结论与体会 (13)致谢 (13)参考文献 (14)一、绪论《路由与交换技术》是计算机与信息工程学院网络工程专业的必修课程,内容涉及路由器与交换机的综合配置、对实际案例的规划和设计等。
在前阶段的学习中,进行了路由器和交换机的各个知识点的专项练习,在基础知识掌握之后,需要一个相对完整的时间进行知识点的融会贯通,并能针对实际案例进行综合性地规划、设计和配置来灵活运用这些知识。
本课程设计为学生提供了本课程设计为学生提供了一个动手动脑、独立实践的机会。
通过该课程设计,使学生能够更好地掌握路由器和交换机的原理和配置;能够将课本上的理论知识和实践开发有机的结合起来;能够锻炼学生的分析问题、解决问题的能力,从而加深对这门课的理解。
并在理解相关设备的原理知识的同时又提高学生的实际操作能力。
这次的课程设计采用了类似中小企业内部的网络规划,更加贴近实际的同时也将自己的学的知识运用上。
这次设计需要根据实际问题绘制网络拓扑图,进行路由器和交换机的命令配置实现。
二、用户需求分析一个中小型企业有很多部门,他们之间的联通关系到这个公司的正常运转,同时为保障安全。
要求易与用户管理,满足用户使用网络洗用的运行质量,提高网络运行速度。
允许网络集成,使用三层交换来代替路由,能实现与广域网的继承功能Internet与公司内部的网络间要有防护措施,防止外界对内部网络的未经授权的访问,使网络更加的灵活,实用。
三、主要目标和内容实现VLAN间的划分和通信以及IP地址的规划。
利用Cisco Packet Tracer Student软件进行网络拓扑图的制作。
根据需求分析,完成一个具有一定复杂程度的局域网设计,在实现局域网内部VLAN的正确规划下实现VLAN间的通信。
并且考虑可靠与安全性,限制部门与部门的隔离,部门与外网之间的隔离。
四、网络拓扑结构图4-1小型企业局域网拓扑图五、功能描述与分析划分VLAN,控制流量,减少设备投资,简化网络管理,提高网络的安全性。
建立vtp管理域,以便使它能够管理局域网上的VLAN。
保证各部门之间,与外网的互联。
但要求财务部PC2机只能在财务部联通,不能访问外网及市场部。
六、设备配置流程交换机的配置Multilayer Switch0的配置如下:(1)定义vtp管理域为qiyeSwitch(config)#vtp domain qiyeChanging VTP domain name from NULL to qiyeSwitch(config)#vtp mode serverDevice mode already VTP SERVER.Switch(config)#exitSwitch#%SYS-5-CONFIG_I: Configured from console by consoleSwitch#conf tEnter configuration commands, one per line. End with CNTL/Z.(2)建立vlan10,vlan20,vlan30,vlan40Switch(config)#vlan 10Switch(config-vlan)#vlan 20Switch(config-vlan)#vlan 30Switch(config-vlan)#vlan 40(3)为各vlan设置网关地址Switch(config-vlan)#interface vlan 10Switch(config-if)#%LINK-5-CHANGED: Interface Vlan10, changed state to upSwitch(config-if)#ip address 172.16.10.254 255.255.255.0Switch(config-if)#no shutdownSwitch(config-if)#interface vlan 20Switch(config-if)#%LINK-5-CHANGED: Interface Vlan20, changed state to upSwitch(config-if)#ip address 172.16.20.254 255.255.255.0Switch(config-if)#no shutdownSwitch(config-if)#interface vlan 30Switch(config-if)#%LINK-5-CHANGED: Interface Vlan30, changed state to upSwitch(config-if)#ip address 172.16.30.254 255.255.255.0Switch(config-if)#no shutdownSwitch(config-if)#interface vlan 40Switch(config-if)#%LINK-5-CHANGED: Interface Vlan40, changed state to upSwitch(config-if)#ip address 172.16.40.254 255.255.255.0Switch(config-if)#no shutdownSwitch(config-if)#exit(4)把g0/1加入到vlan40中Switch(config)#interface g 0/1Switch(config-if)#switch access% Incomplete command.Switch(config-if)#switch access vlan 40Switch(config-if)#%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan40, changed state to upSwitch(config-if)#exitSwitch(config)#(5)设置f0/1口,f0/2口,f0/3口为trunk口Switch(config)#interface f 0/1Switch(config-if)#switch trunk encapsulation dot1qSwitch(config-if)#switch mode trunkSwitch(config-if)#%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changedstate to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan10, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan20, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan30, changed state to upSwitch(config-if)#exitSwitch(config)#interface f 0/2Switch(config-if)#switch trunk encapsulation dot1qSwitch(config-if)#switch mode trunkSwitch(config-if)#%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to upSwitch(config-if)#exitSwitch(config)#interface f 0/3Switch(config-if)#switch trunk encapsulation dot1qSwitch(config-if)#switch mode trunkSwitch(config-if)#%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to upSwitch(config-if)#exitSwitch(config)#interface f 0/4Switch(config-if)#switch trunk encapsulation dot1qSwitch(config-if)#switch mode trunkSwitch(config-if)#%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, changed state to upSwitch(config-if)#exit(6)设置g0/2为路由端口,并配置IP地址Switch(config)#interface g 0/2Switch(config-if)#no switchportSwitch(config-if)#ip address 172.16.1.2 255.255.255.0Switch(config-if)#no shutdownSwitch(config-if)#exitSwitch(config)#exitSwitch#%SYS-5-CONFIG_I: Configured from console by console(7)默认路由Switch#conf tEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#ip routingSwitch(config)#ip route 0.0.0.0 0.0.0.0 172.16.1.1Switch(config)#(8)地址172.16.10.2主机被限制访问Switch(config)#ip routingSwitch#show access-listsSwitch#conf tEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#access-list 1 permit 172.16.10.1Switch(config)#access-list 1 deny 172.16.10.2Switch(config)#exit配置二层交换机将交换机进入域设置为client模式将端口f0/1设置为trunk口把各交换机端口f0/1,f0/2,f0/3分别进入到相应的vlan中Switch1的配置如下:Switch>enableSwitch#conf tEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#vtp domain qiyeChanging VTP domain name from NULL to qiyeSwitch(config)#vtp mode clientSetting device to VTP CLIENT mode.Switch(config)#interface f 0/1Switch(config-if)#switchport mode trunkSwitch(config-if)#%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to upSwitch(config-if)#interface f0/2Switch(config-if)#switchport access% Incomplete command.Switch(config-if)#switchport access vlan 10Switch(config-if)#interface f0/3Switch(config-if)#switchport access% Incomplete command.Switch(config-if)#switchport access vlan 10Switch(config-if)#exitSwitch(config)#endSwitch#Switch2的配置如下:Switch>enableSwitch#conf tEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#vtp domain qiyeChanging VTP domain name from NULL to qiyeSwitch(config)#vtp mode clientSetting device to VTP CLIENT mode.Switch(config)#interface f 0/1Switch(config-if)#switchport mode trunkSwitch(config-if)#%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to upSwitch(config-if)#interface f0/2Switch(config-if)#switchport access% Incomplete command.Switch(config-if)#switchport access vlan 20Switch(config-if)#interface f0/3Switch(config-if)#switchport access% Incomplete command.Switch(config-if)#switchport access vlan 20Switch(config-if)#interface f0/4Switch(config-if)#switchport access% Incomplete command.Switch(config-if)#switchport access vlan 20Switch(config-if)#exitSwitch(config)#endSwitch#%SYS-5-CONFIG_I: Configured from console by consoleSwitch#Switch3的配置如下:Switch>enableSwitch#conf tEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#vtp domain qiyeChanging VTP domain name from NULL to qiyeSwitch(config)#vtp mode clientSetting device to VTP CLIENT mode.Switch(config)#interface f 0/1Switch(config-if)#switchport mode trunkSwitch(config-if)#%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to upSwitch(config-if)#interface f0/2Switch(config-if)#switchport access% Incomplete command.Switch(config-if)#switchport access vlan 30Switch(config-if)#interface f0/3Switch(config-if)#switchport access% Incomplete command.Switch(config-if)#switchport access vlan 30路由器的配置Router0的配置如下:配置ripRouter>enableRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#router ripRouter(config-router)#version 2Router(config-router)#network 172.16.1.0Router(config-router)#network 172.16.2.0Router#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#interface f 1/0Router(config-if)#ip address 172.16.2.1 255.255.255.0Router(config-if)#no shutdownRouter(config-if)#PC配置如下:PC3 172.16.30.1 255.255.255.0PC4 172.16.30.2 255.255.255.0 七、系统测试结果将交换机划分成VLAN1和VLAN2,各VLAN的主机在访问不受限的情况下可以访问外网且路由器之间可以互相访问。