想請較大家一下
前陣子申請了中華電信的IPV6服務
當我在windows撥接固定ip時,還可以拿到ipv4的位置
但是VM中撥接固定IP,都只能拿到IPV6
這讓我家裏架的小伺服器對外完全連接不到
想請較要怎麼設定才能解決
目前是有試著關閉ipv6
gksudo gedit /etc/sysctl.conf
Then add these four lines:
# IPv6
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
sudo sysctl -p
但是跑完再ifconfig看還是拿到ipv6的位置
T_T
--
前陣子申請了中華電信的IPV6服務
當我在windows撥接固定ip時,還可以拿到ipv4的位置
但是VM中撥接固定IP,都只能拿到IPV6
這讓我家裏架的小伺服器對外完全連接不到
想請較要怎麼設定才能解決
目前是有試著關閉ipv6
gksudo gedit /etc/sysctl.conf
Then add these four lines:
# IPv6
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
sudo sysctl -p
但是跑完再ifconfig看還是拿到ipv6的位置
T_T
--
All Comments