纯ipv6的linux服务器网络配置方案

本文涉及的产品
云解析DNS-重点域名监控,免费拨测 20万次(价值200元)
简介: 纯ipv6的linux服务器网络配置方案

昨天在justhost.ru上面购买了一个外国的服务器,为了“减少成本”,我没有配置ipv4,而只有ipv6。然后发现服务器用apt update无法连接镜像源进行更新。后来查了资料才发现,仅ipv6的服务器是无法解析并连接ipv4的域名或地址的,而大多数镜像源可能还是ipv4的,因此需要修改服务器的dns并配置ipv6镜像源。

1,配置服务器的DNS

这里给出一些常用公共dns:

供应商 IPv4 IPv6
Google 8.8.8.88.8.4.4 2001:4860:4860::88882001:4860:4860::8844
Cloudflare 1.1.1.11.0.0.1 2606:4700:4700::11112606:4700:4700::1001
阿里云 223.5.5.5223.6.6.6 2400:3200::12400:3200:baba::1
清华大学 101.6.6.6 2001:da8::666

打开/etc/resolv.conf这个文件,可以先将其中清空,然后加入下列内容设定dns:

#谷歌 IPv6 DNS
nameserver 2001:4860:4860::8888
nameserver 2001:4860:4860::8844
#阿里云 IPv6 DNS
nameserver 2400:3200::1
nameserver 2400:3200:baba::1
#Cloudflare IPv6 DNS
nameserver 2606:4700:4700::1111
nameserver 2606:4700:4700::1001

任选两个粘贴进去即可,国外的话推荐谷歌和Cloudflare。

2,配置IPv6镜像源

目前找到的就有清华大学镜像源、上海交大镜像源和中科大镜像源支持ipv6,下面贴出Debian 10的镜像配置,其余可以到镜像站官网查看帮助。

网络异常,图片无法展示
|

清华大学:

# 清华大学-Debian 10软件源
deb https://mirrors.tuna.tsinghua.edu.cn/debian buster main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian buster-updates main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian buster-proposed-updates main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian buster main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian buster-updates main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian buster-proposed-updates main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports main contrib non-free
# 清华大学-Debian 10安全更新源
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates main contrib non-free

中科大:

# 中科大-Debian 10软件源
deb http://mirrors.ustc.edu.cn/debian buster main contrib non-free
deb http://mirrors.ustc.edu.cn/debian buster-updates main contrib non-free
deb http://mirrors.ustc.edu.cn/debian buster-proposed-updates main contrib non-free
deb http://mirrors.ustc.edu.cn/debian buster-backports main contrib non-free
deb-src http://mirrors.ustc.edu.cn/debian buster main contrib non-free
deb-src http://mirrors.ustc.edu.cn/debian buster-updates main contrib non-free
deb-src http://mirrors.ustc.edu.cn/debian buster-proposed-updates main contrib non-free
deb-src http://mirrors.ustc.edu.cn/debian buster-backports main contrib non-free
# 中科大-Debian 10安全更新源
deb http://mirrors.ustc.edu.cn/debian-security buster/updates main contrib non-free
deb-src http://mirrors.ustc.edu.cn/debian-security buster/updates main contrib non-free

上海交大:

# 上海交通大学-Debian 10软件源
deb https://mirror.sjtu.edu.cn/debian buster main contrib non-free
deb https://mirror.sjtu.edu.cn/debian buster-updates main contrib non-free
deb https://mirror.sjtu.edu.cn/debian buster-proposed-updates main contrib non-free
deb https://mirror.sjtu.edu.cn/debian buster-backports main contrib non-free
deb-src https://mirror.sjtu.edu.cn/debian buster main contrib non-free
deb-src https://mirror.sjtu.edu.cn/debian buster-updates main contrib non-free
deb-src https://mirror.sjtu.edu.cn/debian buster-proposed-updates main contrib non-free
deb-src https://mirror.sjtu.edu.cn/debian buster-backports main contrib non-free
# 上海交通大学-Debian 10安全更新源
deb https://mirror.sjtu.edu.cn/debian-security buster/updates main contrib non-free
deb-src https://mirror.sjtu.edu.cn/debian-security buster/updates main contrib non-free

配置完DNS和镜像源,就可以使用apt update进行更新,然后安装软件了!

相关文章
|
5月前
|
JSON 监控 API
在线网络PING接口检测服务器连通状态免费API教程
接口盒子提供免费PING检测API,可测试域名或IP的连通性与响应速度,支持指定地域节点,适用于服务器运维和网络监控。
|
5月前
|
机器学习/深度学习 存储 监控
内部文件审计:企业文件服务器审计对网络安全提升有哪些帮助?
企业文件服务器审计是保障信息安全、确保合规的关键措施。DataSecurity Plus 是由卓豪ManageEngine推出的审计工具,提供全面的文件访问监控、实时异常告警、用户行为分析及合规报告生成功能,助力企业防范数据泄露风险,满足GDPR、等保等多项合规要求,为企业的稳健发展保驾护航。
133 0
|
4月前
|
弹性计算 安全 Linux
阿里云服务器ECS安装宝塔Linux面板、安装网站(新手图文教程)
本教程详解如何在阿里云服务器上安装宝塔Linux面板,涵盖ECS服务器手动安装步骤,包括系统准备、远程连接、安装命令执行、端口开放及LNMP环境部署,手把手引导用户快速搭建网站环境。
|
4月前
|
存储 弹性计算 网络协议
阿里云服务器ECS实例规格族是什么?不同规格CPU型号、处理器主频及网络性能参数均不同
阿里云ECS实例规格族是指具有不同性能特点和适用场景的实例类型集合。不同规格族如计算型c9i、通用算力型u1、经济型e等,在CPU型号、主频、网络性能、云盘IOPS等方面存在差异。即使CPU和内存配置相同,性能参数和价格也各不相同,适用于不同业务需求。
|
4月前
|
存储 监控 Linux
Dell OpenManage Enterprise 4.5 - Dell 服务器、存储和网络设备集中管理软件
Dell OpenManage Enterprise 4.5 - Dell 服务器、存储和网络设备集中管理软件
102 0
|
5月前
|
Java Linux 网络安全
Linux云端服务器上部署Spring Boot应用的教程。
此流程涉及Linux命令行操作、系统服务管理及网络安全知识,需要管理员权限以进行配置和服务管理。务必在一个测试环境中验证所有步骤,确保一切配置正确无误后,再将应用部署到生产环境中。也可以使用如Ansible、Chef等配置管理工具来自动化部署过程,提升效率和可靠性。
533 13
|
5月前
|
监控 Linux 网络安全
FinalShell SSH工具下载,服务器管理,远程桌面加速软件,支持Windows,macOS,Linux
FinalShell是一款国人开发的多平台SSH客户端工具,支持Windows、Mac OS X和Linux系统。它提供一体化服务器管理功能,支持shell和sftp同屏显示,命令自动提示,操作便捷。软件还具备加速功能,提升访问服务器速度,适合普通用户和专业人士使用。
1373 0
|
5月前
|
存储 安全 Linux
Linux服务器上安装配置GitLab的步骤。
按照以上步骤,一个基础的GitLab服务应该运行并可以使用。记得定期检查GitLab官方文档,因为GitLab的安装和配置步骤可能随着新版本而变化。
397 0
|
运维 网络协议 安全
【Shell 命令集合 网络通讯 】Linux 网络抓包工具 tcpdump命令 使用指南
【Shell 命令集合 网络通讯 】Linux 网络抓包工具 tcpdump命令 使用指南
572 0
|
网络协议 Linux 网络安全
curl(http命令行工具):Linux下最强大的网络数据传输工具
curl(http命令行工具):Linux下最强大的网络数据传输工具
539 0

热门文章

最新文章