• 首页
  • 狐文
  • 狐图
  • About
狐窝
OvO
  1. 首页
  2. Linux
  3. 正文

Ubuntu20如何禁用IPV6

2020年09月09日 49点热度 0人点赞 0条评论

Ubuntu20网络使用netplan进行管理,禁用需要修改netplan配置文件/etc/netplan/。

在配置文件中的接口属性下,添加  link-local: [ ] 将属性设置为空。

link-local默认会启用ipv6,也就是说网卡默认会进行获取ipv6地址,设置成空就好了

 

也可以用以下方式禁用,但是不保证好用

创建/etc/sysctl.d/60-ipv6-disable.conf包含以下文本:

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

也可以通过GRUB修改启动配置禁用

资料来源:
https://askubuntu.com/questions/1034762/server-18-04-netplan-and-link-local-addressing
https://askubuntu.com/questions/309461/how-to-disable-ipv6-permanently
https://netplan.io/reference/
https://superuser.com/questions/33196/how-to-disable-autoconfiguration-on-ipv6-in-linux
https://itsfoss.com/disable-ipv6-ubuntu-linux/
https://linuxconfig.org/how-to-disable-ipv6-address-on-ubuntu-18-04-bionic-beaver-linux

标签: conf disable ipv
最后更新:2020年09月11日

OvO

狐狸

点赞
< 上一篇
下一篇 >
最新 热点 随机
最新 热点 随机
钛备份或小米系统备份功能备份出来的APK无法正常还原 BBR安装启用 安装docker mitmproxy 调试方法 Android SDK 版本选择 Perdition Mail代理服务器配置 HAProxy SSL代理 Openssl 中间人SSL代理 Stunnel SSL to SSL代理 NGINX反代IMAP配置 各种设备User Agent Torrent下载工具推荐 用 rar2john+hashcat 破解 RAR 文件密码 2020最好的Linux发行版 关闭新版chrome工具栏上拼图图标 Office 下载、安装、激活,有它就够了! Android 非官方的发行版 openwrt添加autoconf-archive
Motrix 添加链接提示 Failed to fetch 利用 Python + Selenium 实现对页面的指定元素截图(可截长图元素) Chrome相关开发环境配置资料 关于FreeNAS是否适合虚拟化的讨论 CentOS 7 中firewall-cmd命令 Windows LTSC、LTSB、Server 安装 Windows Store 应用商店 原 Intelij IDEA 导入 Maven 项目后自动切换 JDK 到 1.5 的解决方案 VMware虚拟机磁盘操作占用过高问题 chromium和webrtc编译相关资料 使用Xorg.conf 修改分辨率 ZFS 调优指南 Windows去重服务如何工作 ZSH安装配置 DPAPI 详解 数据库SQL优化大总结之 百万级数据库优化方案 18 款名不见经传的下载工具 WebDriver中页面滚动(scrolling) 简单的manjaro安装powerline及vim zsh配置
标签聚合
blog chrome chromium 路由 linux 安装 https yum 密码 镜像 ssl e docker git 网卡 下载

COPYRIGHT © 2020 狐窝. ALL RIGHTS RESERVED.

THEME KRATOS MADE BY VTROIS