Disabling IPv6 (简体中文)

From ArchWiki
Revision as of 02:54, 1 January 2010 by Gen2ly (talk | contribs) (moved 屏蔽IPv6模块 (简体中文) to IPv6 - Disabling the Module (简体中文): International naming standardization: Title in English (Lingua): User:Pointone/i18n)
Jump to navigation Jump to search

Template:I18n links start Template:I18n entry Template:I18n entry Template:I18n entry Template:I18n entry Template:I18n entry Template:I18n links end 从Arch的官方kernel26软件包2.6.16.2-1开始,IPv6不再直接编译进内核,而是以模块形式存在。许多人并不需要这个特性,屏蔽它可以增加性能(许多程序会首先查询IPv6地址,不管你是否有IPv6连接)和节省内存(250k,它看来是个大模块)。

IPv6模块在启动时加载。有许多程序在检测到IPv6模块存在后会加载它。实际上,它们是在加载ipv6的别名 ── net-pf-10。将下面的内容加入到/etc/modprobe.d/modprobe.conf中可以屏蔽ipv6的自动加载,但仍让你可以在需要的时候可以手工加载。

# disable autoload of ipv6
alias net-pf-10 off