FreeBSD 關閉IPv6

IPv6雖然推廣了好一陣子,但在企業還是鮮少使用IPv6的架構,既然用不到就把它關閉吧!

今天就跟著小編來學習如何將FreeBSD關閉IPv6的功能。

1、登入系統
無論你是使用ssh登入或是設備本機的console畫面都可以

2、編輯「/etc/rc.conf」檔案
加入以下設定
ipv6_network_interfaces=”none”
ipv6_activate_all_interfaces=”NO”
ip6addrctl_enable=”NO”
ip6addrctl_policy=”ipv4_prefer”
ipv6_activate_all_interfaces=”NO”

3.接著重新開機即可完成關閉IPv6的動作了