Myluzh Blog

Strive to become a dream architect.

Ansible-module常用模块

2023-3-8 myluzh Linux

官方文档传送门: https://docs.ansible.com/ansible/latest/collections/ansible/builtin/index.html#plugins-in-ansible-builtin ping模块 (检查主机连通性) [root@master ansibleProject]# ansible -i ./inventory -m ping all shell模块( 批量执行shell命令) ansible  指定主机清单     主机组    指定模块   指定动作[参数] ansible   -i inventory        node      -m shell    -a "hostname" [root@master ansibleProject]# ansible -i inventory node -m shell -a "hostname" ...

阅读全文>>

标签: ansible

评论(0) (169)

Ansible-inventory主机清单

2023-3-8 myluzh Linux

#创建inventory文件,vim /root/ansibleProject/inventory [node134] #手动在主机清单中指定这台机子的用户名密码 192.168.253.134 ansible_ssh_port=22 ansible_ssh_user=root ansible_ssh_pass="cisco123" [node133] 192.168.253.133 [node130] 192.168.253.130 #把node130 133 134添加到 node组中 [node:children] node130 node133 node134 #给node这个组设置账号密码 [node:vars] ansible_ssh_port=22 ansible_ssh_user=root ansible_ssh_pass="cisco123" #使用-i 指定inventory文件位置,使用ping模块,指定主机node133 [root@master ansibleProject]# ansible -i ./inventory -m ping...

阅读全文>>

标签: ansible

评论(0) (164)

Ansible-基础笔记

2023-3-8 myluzh Linux

https://blog.csdn.net/m0_64496909/article/details/124913290 #yum安装ansible需要先启动EPEL仓库,具体方法自行百度。 [root@master ~]# yum install ansible --nogpgcheck #安装完成后使用--version 查看默认配置文件 [root@master ~]# ansible --version ansible [core 2.14.2]   config file = /etc/ansible/ansible.cfg   configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']   ansible python module location = /usr/lib/python3.9/site-packages/ansible   ansible collection location = /r...

阅读全文>>

标签: ansible

评论(0) (159)

CentOS6~8 配置阿里云yum源与epel源

2023-3-8 myluzh Linux

CentOS 6 wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-6.10.repo 或者 curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-6.10.repo CentOS 7 wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo 或者 curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo CentOS 8 wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo 或者...

阅读全文>>

标签: yum epel repo

评论(0) (217)

HCIP-ISIS配置

2023-2-28 myluzh Huawei

0x01 实验拓扑图 0x02 关于network-entity 例如: 49.0001.0000.0000.0001.00 49.0001 表示区域id ( 49 国际组织分配49表示任意使用类似私有ip ) 0000.0000.0001 系统id 表示某个路由 类似router id 00 代表isis 工作于IP网络中 推荐使用router id 和system id 转换例如: router id 1.1.1.1 001.001.001.001---->0010.0100.1001 router id 192.168.2.2 192.168.002.002----->1921.6800.2002 0x03 配置ISIS #R1配置isis并接口宣告 [R1]router id 1.1.1.1 [R1]isis [R1-isis-1]network-entity 49.0001.0000.0000.0001.00 [R1-isis-1]is-level level-1 #配置为一个纯的L1的路由器 [R1-GigabitEthernet0/0/0]i...

阅读全文>>

评论(0) (184)

HCIP-ISIS概述

2023-2-28 myluzh Huawei

概述 ISIS: Intermediate System to IntermediateSystem的简称 中间系统到中间系统,是一个主要应用于运营商的路由协议,其应用规模和算法和OSPF类似。中间系统: 路由器isis 。 isis 路由优先级:15,直连 0,静态路由 60,rip 100,ospf 10 ISIS骨干区域 骨干区域 :连续的一片Level 2 路由器(包含L 12)的集合。即底色为灰色区域。 ISIS路由器的种类 Level 1路由器:仅收发L1 isis报文 Level 2路由器:仅收发L2 isis报文 Level 1 2路由器:可以收发L1 和L2的isis报文 ISIS报文类型 L1 L2 邻居建立 注意事项 : Level 1 路由器不能跨区域建立邻居关系,Level 1 邻居关系不能跨区域建立。 例如: 相同区域(R1是area49.0001,R2是area49.0001) R1----R2 L1----L2     不能建立 L1----L1     可以建立L1 ...

阅读全文>>

标签: hcip isis

评论(0) (182)