摘要: 1. "nmcli connection modify 网卡名 ipv4.addresses "ipv6地址" ipv6.method manual "。 2.重启网络服务:"systemctl restart network"。 阅读全文
posted @ 2016-04-22 14:38 秋阳Linux笔记 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 1.创建一个team0的聚合接口:" nmcli con add type team con-name team0 ifname team0 config '{"runner": {"name":"activebackup"}}' 2.查看接口:"nmcli con show" 是否存在team0接 阅读全文
posted @ 2016-04-22 14:30 秋阳Linux笔记 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 1.firewall-cmd --permanent --add-rich-rule 'rule family=ipv4 source address=172.168.1.0/24(网段或者ip) forward-port port=5423(原端口) protocol=tcp to-torp=80 阅读全文
posted @ 2016-04-22 14:05 秋阳Linux笔记 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 1. "vim /usr/lib/sysctl.d/00-system.conf"在#Disable netfilter on bridges.栏下面添加行:"net.ipv4.ip_forward=1"保存退出。 2.永久与即时生效:"sysetl -p/usr/lib/sysctl.d/00-s 阅读全文
posted @ 2016-04-22 13:55 秋阳Linux笔记 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 1.为单个用户设置命令别名:在用户家目录找到.bashc vim .bashrc 在alias 添加行“ alias 别名='原命令和参数' ”。 2.为Linux全部用户设置命令别名:vim /etc/bashr 在alias 添加行“ alias 别名='原命令和参数' ”。 3. ". .ba 阅读全文
posted @ 2016-04-22 13:45 秋阳Linux笔记 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 1.要求:限制my133.t.org(172.168.1.0/24)这个攻击域的主机访。 2.操作:vim /etc/host.deny 忘记可^tab ,在最末尾添加行:sshd: 172.168.1.0/255.255.255.0 < 此处255.255.255.0,不能用24代替。 3.保存退 阅读全文
posted @ 2016-04-22 13:34 秋阳Linux笔记 阅读(411) 评论(0) 推荐(0) 编辑
摘要: 实验环境: centos7(服务端) redhat enterprise linux 7.2(客户端) 实验目的:用centos7的账号,能在redhat enterprise linux 7.2远程登入 centos7(服务端配置) 在/home下创建gutes目录,然后再创建用户user1 us 阅读全文
posted @ 2016-03-20 00:21 秋阳Linux笔记 阅读(7710) 评论(0) 推荐(1) 编辑
摘要: 在/root/.bashrc 中插入一条: stty erase ^H 阅读全文
posted @ 2016-02-06 21:53 秋阳Linux笔记 阅读(331) 评论(0) 推荐(0) 编辑
摘要: sed [选项] [参数] -n 被操作行打印输出 p将数据打印到屏幕'/srt/,2'p '/str1/,/str2/'p -f 后接sed脚本 a在某行下面新增一行'/str1/,/str2/a str1' -e 同时执行多个编辑命令 i在某行上面插入一行'/str1/,/str2/i str2 阅读全文
posted @ 2016-02-06 21:44 秋阳Linux笔记 阅读(190) 评论(0) 推荐(0) 编辑