实战:Linux 系统如何禁用 IPV6
发表于:2025-02-07 作者:千家信息网编辑
千家信息网最后更新 2025年02月07日,本文档以实战的形式介绍 Linux 系统如何禁用 IPV6, 使用的操纵系统是 RHEL7.3更改/etc/sysctl.conf配置文件[root@Jaking vsftpd]# vim /etc/
千家信息网最后更新 2025年02月07日实战:Linux 系统如何禁用 IPV6
更改/etc/sysctl.conf配置文件
本文档以实战的形式介绍 Linux 系统如何禁用 IPV6, 使用的操纵系统是 RHEL7.3 |
[root@Jaking vsftpd]# vim /etc/sysctl.conf # sysctl settings are defined through files in# /usr/lib/sysctl.d/, /run/sysctl.d/, and /etc/sysctl.d/.## Vendors settings live in /usr/lib/sysctl.d/.# To override a whole file, create a new file with the same in# /etc/sysctl.d/ and put new settings there. To override# only specific settings, add a file with a lexically later# name in /etc/sysctl.d/ and put new settings there.## For more information, see sysctl.conf(5) and sysctl.d(5).net.ipv6.conf.all.disable_ipv6 = 1net.ipv6.conf.default.disable_ipv6 = 1 [root@Jaking vsftpd]# ifconfig# IPV6 字段 inet6 fe80::250:56ff:fe22:db62ens33: flags=4163mtu 1500 inet 192.168.10.11 netmask 255.255.255.0 broadcast 192.168.10.255 inet6 fe80::250:56ff:fe22:db62 prefixlen 64 scopeid 0x20 ether 00:50:56:22:db:62 txqueuelen 1000 (Ethernet) RX packets 11717 bytes 4355183 (4.1 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 6943 bytes 2011730 (1.9 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0lo: flags=73mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10loop txqueuelen 1 (Local Loopback) RX packets 112 bytes 9492 (9.2 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 112 bytes 9492 (9.2 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0[root@Jaking vsftpd]# sysctl -p #让配置文件立即生效net.ipv6.conf.all.disable_ipv6 = 1net.ipv6.conf.default.disable_ipv6 = 1[root@Jaking vsftpd]# ifconfig # IPV6 字段已经消失ens33: flags=4163mtu 1500 inet 192.168.10.11 netmask 255.255.255.0 broadcast 192.168.10.255 ether 00:50:56:22:db:62 txqueuelen 1000 (Ethernet) RX packets 11747 bytes 4357703 (4.1 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 6961 bytes 2014592 (1.9 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0lo: flags=73mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 loop txqueuelen 1 (Local Loopback) RX packets 112 bytes 9492 (9.2 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 112 bytes 9492 (9.2 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0总结
以上就是 Linux 系统如何禁用 IPV6 的方法,希望能给大家带来帮助。
原文地址: https://www.linuxprobe.com/linux-forbidden-ipv6.html
系统
字段
文件
配置
实战
原文
地址
就是
形式
方法
帮助
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
硬件服务器配置方案
非关系数据库英文
现代服务器生产厂家
中小学生网络安全最新案例
服务器磁盘读写速率怎么达到万兆
盛银日照软件开发公司
科正互联网信息科技有限公司
html服务器拒绝访问怎么办
深圳工作5年的软件开发工资
网网络安全认识
水利部网络安全知识答题活动
现实增强软件开发价格
巨噬细胞表达蛋白数据库
武警部队网络安全中心
碧宝源网络技术有限公司
怎么在本地访问远程服务器文件
昌平区加工软件开发设计
特朗普退出网络安全
神魔大陆 链接数据库
重新启动数据库文件
达州软件开发规范
网络技术公司购买什么电子产品
普陀区网络技术服务至上
数据库表格把年龄改为出生年
广东app软件开发解决方案
frp服务器租用
开启乡村振兴的网络安全
在服务器上搭建开发环境
计算机与网络技术是什么意思
宁波阿库网络技术有限公司