Linux/IPv6: Difference between revisions

From Omnia
Jump to navigation Jump to search
 
 
Line 47: Line 47:


Refs: [https://serverfault.com/questions/513772/getting-an-ip-from-an-ipv6-dhcp-server]
Refs: [https://serverfault.com/questions/513772/getting-an-ip-from-an-ipv6-dhcp-server]
---
v4:
dhclient -4 -r eth0 //or just dhclient -r eth0
dhclient -4 eth0 // or just dhclient eth0
v6:
dhclient -6 -r eth0
dhclient -6 eth0


== iptables ==
== iptables ==

Latest revision as of 08:13, 27 September 2024

Basics

ip -6 addr show
ifconfig
netstat -A inet6 -rn
ip -6 route show
route -6
ping6 -c 3 ::1
traceroute6 google.com
tracepath6 ::1
tcpdump -t -n -i eth0 -s 512 -vv ip6 or proto ipv6
host -t AAAA google.com
dig google.com AAAA
wget -6 http://ipv6.oeey.com
curl -6  http://ipv6.oeey.com

IPv6 DNS Lookup:

dig AAAA ipv6.google.com  # 2607:f8b0:4005:800::100e

IPv6 Reverse DNS Lookup:

dig -x 2607:f8b0:4005:800::100e
# similar to arp with ipv4
ip -6 neigh
ip neigh

Ref:

dhclient

Request IPv6 address:

dhclient -6 -d eth0

Release IPv6 address:

dhclient -6 -r -d eth0


Refs: [1]

---

v4:

dhclient -4 -r eth0 //or just dhclient -r eth0
dhclient -4 eth0 // or just dhclient eth0

v6:

dhclient -6 -r eth0
dhclient -6 eth0

iptables

service ip6tables stop
service ip6tables start

Disable IPV6

sysctl -w net.ipv6.conf.all.disable_ipv6=1
sysctl -w net.ipv6.conf.default.disable_ipv6=1
sysctl -w net.ipv6.conf.lo.disable_ipv6=1

etc/sysctl.conf

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

refs: [2]

Enable IPV6

sysctl -w net.ipv6.conf.all.disable_ipv6=0
sysctl -w net.ipv6.conf.default.disable_ipv6=0
sysctl -w net.ipv6.conf.lo.disable_ipv6=0

etc/sysctl.conf

net.ipv6.conf.all.disable_ipv6 = 0
net.ipv6.conf.default.disable_ipv6 = 0
net.ipv6.conf.lo.disable_ipv6 = 0

refs: [3]

keywords