小型企业局域网搭建(一)
小型企业局域网搭建(一)
- 一、项目介绍
- 1. 项目简介
- 2. 系统环境
- 二、接入层--基础网络拓扑搭建
- 1. 网络拓扑图
- 2. VLAN划分与子网规划
- 2.1 详细分析
- 2.2 具体实现
- 3. 配置一层交换机
- 3.1 主要工作
- 3.2 所用CLI指令
- 3.3 具体实现
- 3.3.1 SWAdmin
- 3.3.2 SWSale
- 3.3.3 SWFactory
- 3.3.4 SWServer
- 三、汇聚层--没啥特别的
- 配置二层交换机
- 1.主要工作
- 2.所用CLI指令
- 3.具体实现
- 3.1 SWLeaf添加VLAN并配置各端口信息
- 3.2 SWLeafRight添加VLAN并配置各端口信息
一、项目介绍
1. 项目简介
仅作为计算机网络期末课设的记录,有不对的地方欢迎指正!也希望我的记录对于查看博客的你有些许帮助。
2. 系统环境
软件版本:
Cisco Packet Tracer 7.2.1(比它高的版本皆可)
个人拓扑文件(仅供参考):
https://download.csdn.net/download/qq_45948932/71998266
二、接入层–基础网络拓扑搭建
1. 网络拓扑图
2. VLAN划分与子网规划
2.1 详细分析
- 对于行政楼,设立5个部门,每个部门24个人,从而每个部门划分一个VLAN以及24个IP地址,所以主机位选择5位(32个子ip)
- 对于销售部,设立5个团队,每个团队30个人,从而每个团队划分一个VLAN以及30个IP地址,所以主机位选择5位(32个子ip)
- 对于生产厂区,设立3个车间,每个车间60个用户,从而每个车间划分一个VLAN以及60个IP,所以主机位选择6位(64个子ip)
- 对于外部网络连接,申请公有注册IP地址,用来公开访问互联网设备。200.1.1.1/24-200.1.1.2/24以及201.1.1.1/24-201.1.1.2/24
2.2 具体实现
DNS Server为 100.100.100.4
- 行政楼
部门名称 | VLAN划分 | IP划分 | 默认网关 | 子网掩码 |
---|---|---|---|---|
部门1 | VLAN10 | 192.168.1.0/27 | 192.168.1.30 | 255.255.255.224 |
部门2 | VLAN11 | 192.168.1.32/27 | 192.168.1.62 | 255.255.255.224 |
部门3 | VLAN12 | 192.168.1.64/27 | 192.168.1.94 | 255.255.255.224 |
部门4 | VLAN13 | 192.168.1.96/27 | 192.168.1.126 | 255.255.255.224 |
部门5 | VLAN14 | 192.168.1.128/27 | 192.168.1.158 | 255.255.255.224 |
- 销售部门
团队名称 | VLAN划分 | IP划分 | Gateway | 子网掩码 |
---|---|---|---|---|
团队1 | VLAN20 | 192.168.2.0/27 | 192.168.2.30 | 255.255.255.224 |
团队2 | VLAN21 | 192.168.2.32/27 | 192.168.2.62 | 255.255.255.224 |
团队3 | VLAN22 | 192.168.2.64/27 | 192.168.2.94 | 255.255.255.224 |
团队4 | VLAN23 | 192.168.2.96/27 | 192.168.2.126 | 255.255.255.224 |
团队5 | VLAN24 | 192.168.2.128/27 | 192.168.2.158 | 255.255.255.224 |
- 生产厂区
车间名称 | VLAN划分 | IP划分 | Gateway | 子网掩码 |
---|---|---|---|---|
车间1 | VLAN30 | 192.168.3.0/26 | 192.168.3.62 | 255.255.255.192 |
车间2 | VLAN31 | 192.168.3.64/26 | 192.168.3.126 | 255.255.255.192 |
车间3 | VLAN32 | 192.168.3.128/26 | 192.168.3.190 | 255.255.255.192 |
- 服务器
服务器名称 | VLAN划分 | IP划分 | Gateway | 子网掩码 |
---|---|---|---|---|
MAIL服务器 | VLAN100 | 100.100.100.1 | 100.100.100.254 | 255.255.255.0 |
WEB服务器 | VLAN100 | 100.100.100.2 | 100.100.100.254 | 255.255.255.0 |
FTP服务器 | VLAN100 | 100.100.100.3 | 100.100.100.254 | 255.255.255.0 |
DNS服务器 | VLAN100 | 100.100.100.4 | 100.100.100.254 | 255.255.255.0 |
- 路由器R0
接口名称 | 临近设备 | IP划分 | 子网掩码 |
---|---|---|---|
G0/0 | 防火墙 | 200.1.1.1 | 255.255.255.0 |
G0/1 | 三层交换机 | 12.1.1.2 | 255.255.255.252 |
G0/2 | 三层交换机 | 13.1.1.2 | 255.255.255.252 |
- 交换机SWRoot
接口名称 | 临近设备 | IP划分 | 子网掩码 |
---|---|---|---|
G0/1 | 路由器 | 12.1.1.1 | 255.255.255.252 |
3. 配置一层交换机
3.1 主要工作
为各个一层交换机配置端口通信模式与vlan的关系
- vlan
VLAN(Virtual Local Area Network)即虚拟局域网,是将一个物理的LAN在逻辑上划分成多个广播域的通信技术。每个VLAN是一个广播域,VLAN内的主机间可以直接通信,而VLAN间则不能直接互通。这样,广播报文就被限制在一个VLAN内。 - 端口通信模式
trunk (加入多个vlan使用)、access (加入单个vlan使用) - 端口与vlan关系
端口是否加入到某一vlan中,同一vlan下的端口可以通信
3.2 所用CLI指令
// 进入特权模式
en// 进入全局配置模式
conf t// 切换指令操作的硬件
host SWName// 显示当前交换机中vlan与端口对应详细信息
show vlan brief// 添加vlan
vlan vlan_Number// 管理端口x
int f0/x// 管理范围端口x-y
int range f0/x - f0/y// 切换端口通信模式
sw mode trunk(acc)// 端口通信为access时,加入x vlan
sw acc vlan x// 端口通信为turnk时,加入到全部vlan中
sw tr al vl al
3.3 具体实现
3.3.1 SWAdmin
Switch>enable
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#host SWAdmin
SWAdmin(config)#vlan 10
SWAdmin(config-vlan)#exit
SWAdmin(config)#vlan 11
SWAdmin(config-vlan)#exit
SWAdmin(config)#vlan 12
SWAdmin(config-vlan)#exit
SWAdmin(config)#vlan 13
SWAdmin(config-vlan)#exit
SWAdmin(config)#vlan 14
SWAdmin(config-vlan)#exitSWAdmin(config)#int f0/1
SWAdmin(config-if)#sw mode acc
SWAdmin(config-if)#sw acc vlan 10
SWAdmin(config-if)#exit
SWAdmin(config)#int f0/2
SWAdmin(config-if)#sw mode acc
SWAdmin(config-if)#sw acc vlan 11
SWAdmin(config-if)#exit
SWAdmin(config)#int f0/3
SWAdmin(config-if)#sw mode acc
SWAdmin(config-if)#sw acc vlan 12
SWAdmin(config-if)#exit
SWAdmin(config)#int f0/4
SWAdmin(config-if)#sw mode acc
SWAdmin(config-if)#sw acc vlan 13
SWAdmin(config-if)#exit
SWAdmin(config)#int f0/5
SWAdmin(config-if)#sw mode acc
SWAdmin(config-if)#sw acc vlan 14
SWAdmin(config-if)#exit
SWAdmin(config)#int f0/24
SWAdmin(config-if)#sw mo trSWAdmin(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to upSWAdmin(config-if)#sw tr al vl al
SWAdmin(config-if)#exit
3.3.2 SWSale
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#host SWSale
SWSale(config)#vlan 20
SWSale(config-vlan)#vlan 21
SWSale(config-vlan)#vlan 22
SWSale(config-vlan)#vlan 23
SWSale(config-vlan)#vlan 24
SWSale(config-vlan)#exitSWSale(config)#int f0/1
SWSale(config-if)#sw mode acc
SWSale(config-if)#sw acc vlan 20
SWSale(config-if)#int f0/2
SWSale(config-if)#sw mode acc
SWSale(config-if)#sw acc vlan 21
SWSale(config-if)#int f0/3
SWSale(config-if)#sw mode acc
SWSale(config-if)#sw acc vlan 22
SWSale(config-if)#int f0/4
SWSale(config-if)#sw acc vlan 23
SWSale(config-if)#sw mode acc
SWSale(config-if)#int f0/5
SWSale(config-if)#sw mode acc
SWSale(config-if)#sw acc vlan 24
SWSale(config-if)#int f0/24
SWSale(config-if)#sw mode trunkSWSale(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to upSWSale(config-if)#sw tr al vl al
SWSale(config-if)#exit
3.3.3 SWFactory
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#host SWFactory
SWFactory(config)#vlan 30
SWFactory(config-vlan)#vlan 31
SWFactory(config-vlan)#vlan 32
SWFactory(config-vlan)#exit
SWFactory(config)#int f0/1
SWFactory(config-if)#sw mode acc
SWFactory(config-if)#sw acc vlan 30
SWFactory(config-if)#int f0/2
SWFactory(config-if)#sw mode acc
SWFactory(config-if)#sw acc vlan 31
SWFactory(config-if)#int f0/3
SWFactory(config-if)#sw mode acc
SWFactory(config-if)#sw acc vlan 32
SWFactory(config-if)#int f0/24
SWFactory(config-if)#sw mode tr
SWFactory(config-if)#sw tr al vl al
SWFactory(config-if)#exit
3.3.4 SWServer
由于f0/23 - 24 端口采用链路聚合,需要进行进一步操作
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#host SWServer
SWServer(config)#vlan 100
SWServer(config-vlan)#exit
SWServer(config)#int f0/1
SWServer(config-if)#sw mo acc
SWServer(config-if)#sw acc vlan 100
SWServer(config-if)#int f0/2
SWServer(config-if)#sw mo acc
SWServer(config-if)#sw acc vlan 100
SWServer(config-if)#int f0/3
SWServer(config-if)#sw mo acc
SWServer(config-if)#sw acc vlan 100
SWServer(config-if)#int f0/4
SWServer(config-if)#sw mo acc
SWServer(config-if)#sw acc vlan 10// 以下为链路聚合附加操作--建议之后设置
SWServer(config-if)#int range f0/23 - 24
SWServer(config-if)#sw mo tr
SWServer(config-if)#sw tr al vl al
SWServer(config-if)#exit
SWServer(config-if-range)#channel-group 1 mode on
SWServer(config-if-range)#
Creating a port-channel interface Port-channel 1%LINK-5-CHANGED: Interface Port-channel1, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel1, changed state to up
三、汇聚层–没啥特别的
配置二层交换机
1.主要工作
- 配置trunk端口为IEEE802.1Q协议
- 二层交换机接口不用配置IP地址。因为:二层交换机工作于OSI模型的第2层(数据链路层);它是自动识别数据包中的MAC地址信息,根据MAC地址进行转发,并将这些MAC地址与对应的端口记录在自己内部的一个地址表中。说的通俗点;它是依靠MAC地址进行转发数据包的。
2.所用CLI指令
基于上述CLI指令进行补充
// 封装trunk端口IEEE802.1Q协议
switchport trunk encapsulution dot1q
sw tr en do
3.具体实现
3.1 SWLeaf添加VLAN并配置各端口信息
Switch>enable
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
// 添加vlan
Switch(config)#vlan 10
Switch(config-vlan)#vlan 11
Switch(config-vlan)#vlan 12
Switch(config-vlan)#vlan 13
Switch(config-vlan)#vlan 14
Switch(config-vlan)#vlan 20
Switch(config-vlan)#vlan 21
Switch(config-vlan)#vlan 22
Switch(config-vlan)#vlan 23
Switch(config-vlan)#vlan 24
Switch(config-vlan)#vlan 30
Switch(config-vlan)#vlan 31
Switch(config-vlan)#vlan 32
Switch(config-vlan)#vlan 100
Switch(config-vlan)#exit// 端口设置
SWLeaf(config)#int range f0/1 - 3
SWLeaf(config-if-range)#sw tr en do
SWLeaf(config-if-range)#sw mo trSWLeaf(config-if-range)#
%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 upSWLeaf(config-if-range)#sw tr al vl al
SWLeaf(config-if-range)#exit
SWLeaf(config)#int f0/24
SWLeaf(config-if)#sw tr en do
SWLeaf(config-if)#sw mo trSWLeaf(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to upSWLeaf(config-if)#sw tr al vl al
SWLeaf(config-if)#exit// 这一块仅当SWLeafRight存在时使用
SWLeaf(config)#int range f0/22 - 23
SWLeaf(config-if-range)#sw tr en do
SWLeaf(config-if-range)#sw mo tr
SWLeaf(config-if-range)#sw tr al vl al
3.2 SWLeafRight添加VLAN并配置各端口信息
注意:这一块只有存在两台二层交换机才进行配置,同时也可能产生环路,需要使用快速生成树协议
注意:SWLeaf与SWLeafRight中的两根线不是为了链路聚合,而是为了提供冗余备份链路
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
// 添加vlan
Switch(config)#vlan 30
Switch(config-vlan)#vlan 31
Switch(config-vlan)#vlan 32// 端口设置
Switch(config-vlan)#int f0/24
Switch(config-if)#sw tr en do
Switch(config-if)#sw mo trSwitch(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to upSwitch(config-if)#sw tr al vl al
Switch(config-if)#no shut
Switch(config-if)#exit
Switch(config)#int f0/1
Switch(config-if)#sw tr en do
Switch(config-if)#sw mo trSwitch(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 up
Switch(config-if)#exit
Switch(config)#int range f0/22 - 23
Switch(config-if-range)#sw tr en do
Switch(config-if-range)#sw mo tr
Switch(config-if-range)#sw tr al vl al
小型企业局域网搭建(一)相关推荐
- 企业网络-小型企业网络搭建
<企业网络-小型企业网络搭建> 小型企业网络 一.实验目的 理解小型企业网络的工作原理,掌握在路由器,交换机上搭建小型企业网络,做到全网互通. 二.组网设备 Router路由器一台,交换机 ...
- 利用PT模拟器设计的小型企业局域网实验
利用PT模拟器设计的小型企业局域网实验 小型企业拓扑图 第一步:规划ip地址,已经规划好了 分别分成192.168.1.10/24192.168.2.10/24192.168.3.10/24这是PC机 ...
- 计算机网络课程设计小型企业局域网的组建,计算机网络课程设计小型企业局域网的组建(16页)-原创力文档...
精品文档 计算机网络课程设计报告 课程设计题目:组建小型企业局域网 姓名 : 陈煌 学号 : 201220180915 专业 : 软件工程 指导教师 :赵美丽 2012 年 5 月 30 日 随意编辑 ...
- 虚拟搭建局域网模拟器_利用Packet Tracer模拟器搭建小型企业局域网实验
小型企业拓扑图 第一步:规划ip地址,已经规划好了 分别分成192.168.1.10/24192.168.2.10/24192.168.3.10/24这是PC机 第二步:给交换机配置IP地址,设置远程 ...
- eNSP实验日记三(小型企业网络搭建)
文章目录 前言 一.设备清单以及需求 二.使用的命令 三.配置步骤 1.给内网PC可自动获取IP地址 2.查看一下内网PC的IP和网段 3.配置各内网PC可ping通6.6.6.6 (1).查看边缘路 ...
- 小型企业局域网免费上网行为管理方案
对于一个小型的局域网环境(终端数少于50)来说,一个企业级上网行为管理路由器就可以实现基本的上网行为管理功能.当然,路由器的功能比较局限,对于上网内容记录.上网统计.网址库过滤等高级功能,你就需要部署 ...
- 记搭建小型企业局域网(复盘)
一.配置路由器 光猫设置为桥接模式,获取到宽带账号和密码(电信工作人员提供) 进入路由器后台,设置WAN1和WAN2,拨号上网 设置VLAN1,地址为192.168.0.1,关闭DHCP 静态路由设置 ...
- 一个小型网站多少台服务器,小型企业局域网需要服务器的价格在多少左右(40台机器)...
80台工作站建议用两台能同时负载80台客户机的服务器(正常情况下两台服务器负载均衡,如一台出现故障另一台可以全部负载),一般无盘服务器DIY比较实用和省钱. 一.(单服100-120台) 服务器主板: ...
- 3COM小型企业有线局域网方案(三、四、五)
方案简介 针对以上产品介绍,在1 00个节点左右的小型企业网络中,可以有以下几种不同的产品组合方案,下面介绍几种比较经典的组合方案. (1)选择SuperStack 3 Switch 4900作为核心 ...
最新文章
- vant UI库组件, 与HTML 标签冲突
- java枚举的例子_Java枚举例子
- 一文详解神经网络与激活函数的基本原理
- ajax实现多级联动菜单,jquery 实现二级/三级/多级联动菜单的思路及代码
- python处理文件格式_python处理文本文件并生成指定格式的文件
- 当文科生遇见R语言,照样玩得转
- autocad java api,autocad接口api
- IT资源书籍999999999本
- java+webrtc+回声消除,WebRTC回声消除(2)
- 中国地级以上城市的经纬度——excel文件
- 黑苹果10.13.6及以下安装WebDriver驱动nvidia独立显卡,以及修改机型
- CPU飙高和内存飙高等等的一般处理步骤
- ndk编译 toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe
- OR1200处理器中Wishbone总线接口模块WB_BIU介绍
- Pymoo:优化算法的性能指标(Performance Indicators)
- 用illustrator、AI将边框线转换为填充形状
- 移动端 实现图片上传
- 成纤维细胞生长因子家族介绍:(PEG-FGF/rb-bFGF/aFGF/rhaFGF/baFGF/rhKGF-2)
- linux aio 线程,linux AIO (异步IO) 那点事儿
- XSS漏洞简单概述--UGa
热门文章
- python翻译成中文_Python调用有道智云文本翻译API接口实现“智能”伪原创
- Google官方控件ShapeableImageView使用
- TLS/SSL 协议详解 (30) SSL中的RSA、DHE、ECDHE、ECDH流程与区别
- 多序列比对要多久时间_Muscle进行多序列比对
- Caused by: net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: “:“ “:“
- Alpha通道原理及实现方法
- matlab标准化和反标准化——zscore
- [NOI 2008]假面舞会(综合图论)
- Visual Studio2019完全卸载方法
- cannot simultaneously fetch multiple bags 的解决方法