show ipv6 @cli and disable

# win
netsh int ipv6 show neigh

# Linux
ip -6 neigh show

# Linux disable ipv6
# for temp wher reboot will enable ipv6 again 
sudo sh -c 'echo 1 > /proc/sys/net/ipv6/conf/<interface-name>/disable_ipv6'
# or all 
sudo sh -c 'echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6'
# enable
sudo sh -c 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6'

# disable 
vi /etc/sysctl.conf
net.ipv6.conf.eth0.disable_ipv6 = 1
net.ipv6.conf.all.disable_ipv6 = 1
sudo sysctl -p /etc/sysctl.conf

sudo vi /etc/hosts
  # comment these IPv6 hosts 
  # ::1 ip6-localhost ip6-loopback 
  # fe00::0 ip6-localnet 
  # ff00::0 ip6-mcastprefix 
  # ff02::1 ip6-allnodes 
  # ff02::2 ip6-allrouters

# ssh
sudo vi /etc/ssh/sshd_config
  AddressFamily inet



發佈留言