基于Anisible的Role组件实现在大型企业网中网络设备的批量配置

 2023-01-16 08:01

论文总字数:36242字

摘 要

大数据时代的到来以及人工智能的迅速发展,我国逐渐走向信息化的时代。传统的服务器已经无法满足时代的需求,其服务器运维的模式在大型企业网的服务器运维中明显不足,因此运维工作人员工作效率很低效,所以大型企业网需要对企业网服务器进行自动化运维部署。由此本课题旨在基于Anisible的自动化运维工具设计与实现,通过Anisible的Role组件实现在大型企业网中网络设备的批量配置,提高运维人员的工作质量与效率。

本系统采用ansible的role组件,roles能够根据层次结构自动装载变量文件、task以及handles等。roles通过分别将变量、文件、任务、模块及处理器放置于单独的目录中,并可以便捷的使用它们。

系统主要由模拟企业网架构配置与anisible的role组件批量配置的工具联合实现。

关键字:Anisible ;role组件;企业网架构

The Role component based on Ansible enables the batch configuration of network devices in a large enterprise network

abstract

With the advent of the era of big data and the rapid development of artificial intelligence, China is gradually moving towards the era of information. The traditional server has been unable to meet the needs of The Times, and its server operation and maintenance mode is obviously insufficient in the server operation and maintenance of large enterprise networks, so the operation and maintenance staff"s work efficiency is very low, so large enterprise networks need to automate the deployment of enterprise network servers. Therefore, this topic aims to design and implement the automatic operation and maintenance tool based on Anisible, and realize the batch configuration of network equipment in large enterprise network through the Role component of Anisible, so as to improve the work quality and efficiency of operation and maintenance personnel.

Ansible role component is adopted in this system. Roles can automatically load variable files, tasks and handles according to the hierarchy. Roles provides easy access to variables, files, tasks, modules, and processors by placing them in separate directories.The system is mainly implemented by a tool that simulates enterprise network architecture configuration and Anisible"s Role component batch configuration.

Keywords: ansible; role component; enterprise network architecture

目录

摘 要 III

abstract IV

引言 1

1.1 课题研究背景及意义 1

1.2 课题研究发展现状 1

1.3 课题研究内容 1

1.4 论文章节内容总结 2

第二章.环境与技术 3

2.1 开发环境 3

2.2 相关技术 3

2.2.1 linux系统自动化运维管理 3

2.2.2 Python在系统自动化运维中的应用 4

2.2.3 ansible工具 4

2.2.4 ansible的roles(角色) 4

2.2.5 路由协议 4

2.2.6 安全访问控制 5

2.3本章小结 5

第三章.企业网需求分析 6

3.1 企业网组网的需求 6

3.2 功能需求分析 6

3.2.1可用性 6

3.2.2可扩展性 6

3.2.3可管理性 6

3.2.4网络性能 6

3.2.5安全性 7

3.2.6适应易用性 7

3.3企业网具体需求与设计方案 8

3.4本章小结 9

第四章.Ansible工具概要设计 10

4.1设计思路 10

4.2系统流程 10

4.3 ansible 脚本设计 11

4.3.1主要执行脚本设计 11

4.3.2 roles组件脚本设计 11

4.4.本章小结 11

第五章.系统详细设计 12

5.1企业网详细设计 12

5.2 IP地址划分 12

5.3 路由协议 15

5.4 安全访问控制 21

5.5本章小结 22

第六章.系统具体实现 23

6.1企业网与虚拟机(linux)的连接 23

6.2 企业网ansible脚本设计 23

6.2.2 IP地址划分与vlan划分的脚本设计 23

6.2.3 路由协议的脚本设计 26

6.2.4 企业网安全脚本设计 35

6.3本章小结 36

第七章.系统测试 37

7.1 企业网测试 37

7.2 ansible工具测试 38

7.3 异常测试 41

7.4 综合测试总结 42

7.5 本章小结 42

第八章.总结 43

致谢 44

参考文献 45

引言

1.1 课题研究背景及意义

随着我国信息化进程的不断推进,各个大型企业网信息化建设所需的服务器急剧增加,服务器少则几十台,多则几百台。传统的网络运维都是靠人工对服务器交换机进行命令配置等操作。随着服务器的规模的不断增加,传统的运维方式肯定会面临巨大的挑战与压力,运维人员自然会出现操作失误,效率低下,无法快速实现企业网架构的网络设备的批量配置。因此使用自动化运维工具,实现运维工作的自动化处理,能够达到提升工作效率,降低运维成本。

这个时代的公司网络设备配置通常使用人工的方式刷基础配置,但是遇到大型企业网多台网络设备,使用自动化运维工具来进行自动配置,非常方便便捷,操作简单,容易上手。使运维效率大大提升。本系统正是将ansible自动化运维工具与企业网网络设备配置相结合,开发出自动化运维配置小工具。

1.2 课题研究发展现状

目前,很多中小型企业网络设备的运维配置模式还是比较原始的,主要通过运维人员面对面或远程访问服务端进行的,对服务器的安装、配置、软件部署、服务发布以及操作系统的监控等等都是人工方式进行。但是随着近年来的自动化运维技术的迅速发展,出现了很多的自动化运维工具和优秀的开源配置管理工具,例如ansible、puppet、netmiko、paramiko等,目前ansible还是使用比较广泛的一款优秀的自动化运维工具。

剩余内容已隐藏,请支付后下载全文,论文总字数:36242字

您需要先支付 80元 才能查看全部内容!立即支付

该课题毕业论文、开题报告、外文翻译、程序设计、图纸设计等资料可联系客服协助查找;