日本综合一区二区|亚洲中文天堂综合|日韩欧美自拍一区|男女精品天堂一区|欧美自拍第6页亚洲成人精品一区|亚洲黄色天堂一区二区成人|超碰91偷拍第一页|日韩av夜夜嗨中文字幕|久久蜜综合视频官网|精美人妻一区二区三区

RELATEED CONSULTING
相關咨詢
選擇下列產品馬上在線溝通
服務時間:8:30-17:00
你可能遇到了下面的問題
關閉右側工具欄

新聞中心

這里有您想知道的互聯(lián)網營銷解決方案
Linux系統(tǒng)中禁用IPV6

IPV6這個協(xié)議暫時我們還用不到。而且開啟該協(xié)議有時對系統(tǒng)運行有一定的影響,一些網卡還會因為IPv6出現(xiàn)系統(tǒng)未響應,假死等情況,本篇文章重點為大家講解一下Linux系統(tǒng)中禁用IPV6具體方法。

站在用戶的角度思考問題,與客戶深入溝通,找到鹽湖網站設計與鹽湖網站推廣的解決方案,憑借多年的經驗,讓設計與互聯(lián)網技術結合,創(chuàng)造個性化、用戶體驗好的作品,建站類型包括:網站設計、成都網站設計、企業(yè)官網、英文網站、手機端網站、網站推廣、申請域名、雅安服務器托管、企業(yè)郵箱。業(yè)務覆蓋鹽湖地區(qū)。

更改/etc/sysctl.conf配置文件

[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 = 1
net.ipv6.conf.default.disable_ipv6 = 1
                                             
[root@Jaking vsftpd]# ifconfig
# IPV6 字段 inet6 fe80::250:56ff:fe22:db62
ens33: flags=4163  mtu 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 0

lo: flags=73  mtu 65536
       inet 127.0.0.1  netmask 255.0.0.0
       inet6 ::1  prefixlen 128  scopeid 0x10
       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

[root@Jaking vsftpd]# sysctl -p  #讓配置文件立即生效
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
[root@Jaking vsftpd]# ifconfig
# IPV6 字段已經消失
ens33: flags=4163  mtu 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 0

lo: flags=73  mtu 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系統(tǒng)中禁用IPV6
分享鏈接:http://www.dlmjj.cn/article/ccoeccg.html