Networking/Computing Tips/Tricks

Here are some great MAC OSx command line entries you can make to examine and configure IPv6.

Let's start with some simple ones. 

Since too many years ago, MAC OSx has supported IPv6 so it is very likely to be turned on.

First, let's check the following command from the Terminal Window (complete output shown):

ifconfig -a

Screen Shot 2016 11 17 at 3.24.32 PM

You can see my machine is running "Dual Stack" since it has both IPv4 (inet) and IPv6 (inet6).  Yours should be as well.

 

This is a lot of info, so the way to zoom in on lets say the Ethernet interface, which I am using (en0) is to use the following command: 

ifconfig -L en0 inet6

2020 04 19 08 43 04

The -L switch turns on the display of the address Lifetimes.  The 'inet6' limits the IPv6 information. 

 Next, let's take a slightly deeper dive with netstat.

The following command displays the routing table in your computer (this may take some time to completely finish):

netstat -r -f inet6

Screen Shot 2016 11 17 at 3.30.12 PM

 We can clearly see the IPv6 Routing table with the Link Local addresses, Global Unicast addresses (in my case), and the IPv6 Multicast groups.

Let's see if there has been any general IPv6 traffic on the interfaces.  Now this next command will output a ton of statistics, and we only show a partial output here.  

netstat -s -f inet6

Screen Shot 2016 11 17 at 3.43.29 PM

 

Near the bottom of the output will show various packet counts. 

Pretty cool.

How about PING and TRACE ROUTE for IPv6?  Sure.  Here is how you Ping in IPv6:

ping6 ::1

Screen Shot 2016 11 17 at 3.47.01 PM

Here are the ping6 options:

Screen Shot 2016 11 17 at 3.48.38 PM

 

And here is the Trace route command:

traceroute6 www.facebook.com

Screen Shot 2016 11 17 at 4.00.40 PM

Here are the Tracert options:

Screen Shot 2016 11 17 at 4.01.48 PM

What is that did not work? Hmm.

You may want to check the DNS servers to see if you are able to resolve IPv6.  On MAC, do this with:

scutil --dns | grep nameserver | grep "::"

This should show you IPv6 nameservers.  If you get nothing, then leave off the last grep, and you should only see IPv4.

That does not mean that nameservers or destinations do not support IPv6.  

You can try a dig and see if you get 'AAAA' records:

dig AAAA www.facebook.com 

Here is what it might look like when it works:

2020 04 19 09 56 44

OK - what about the Neighbor Discovery?  You use the following command: ndp -a

It will take some time to complete, so be patient.

2020 04 19 08 31 20

To see your IPv6 settings on your MAC use the following command - this will display all settings - if it is a 1 or a 0 then this is most likely a switch (0=off 1=on):

sysctl net.inet6

2020 04 19 10 30 11

 

We won't go into how to change these settings here, but you could overwrite these with the sysctl command.

It is often useful to pipe this to grep to search for something in particular.  For example, does you system have temporary IPv6 addresses? and what are the settings?

sysctl net.inte6 | grep temp

2020 04 19 10 36 21

We hope this helps you get started on IPv6 on your MAC OSx machine.

Comments powered by CComment

The nicest thing you can do is use these inks to support us!  Thank you!

Support our research!  Buy me a coffee :)

Support our research. Become a Patron!

Find by Tag

4G Networks 5G Networks 6in4 6LoWLAN 6LoWPAN 802.11 802.11ah 802.11ax 802.11ay 802.11az Addressing Analysis Ansible Architecture ARP AToM BGP Bloom's Taxonomy Broadband Cable cat CBRS CellStream Cellular Central Office Cheat Sheet Chrome Cisco Cloud Coloring Rules Computer Consulting CPI Customer Support Data Center Data Networking DHCPv6 DNS Docker Documentation Dublin-Traceroute dumpcap ECMP Ethernet Ethics Fragmentation G-MPLS Git GNS3 Google GQUIC Hands-On History Home Network ICMP ICMPv6 IEEE 802.11p IEEE 802.15.4 Interface Control Internet IoT IPsec IPv4 IPv6 IS-IS L2VPN L3VPN LDP Linux LLN LoL M-BGP MAC MAC OSx Macro Microsoft mininet Monitoring MPLS MTU Multicast My Room Name Resolution Netcat Netmiko NetMon netsh Networking Network Science nmap Npcap Online School OpenFlow OSPF OSPFv2 OSPFv3 OSX OTT Paris-Traceroute Parrot PIM pktmon PMTU Policy POTS POTS to Pipes PPP Profile Programming Project Management Protocol 41 PW3E Python QoS QUIC Remote Desktop Requirements RIP Routing RPL RSVP Rural SAS SDN Security Service Provider Small Business SONET Speed SS7 SSH SSL Subnetting SYSCTL T-Shark TCP TCP/IP Telco Telecom 101 Telecommunications Telephone termshark TLS Tools Traceroute Traffic Engineering Training Travel Tunnel Ubuntu Utility Video Virtualbox Virtualization VoIP VRF VXLAN Webex WEP Wi-Fi Wi-Fi 4 Wi-Fi 5 Wi-Fi 6 Wi-Fi 6/6E Windows Winpcap Wireless Wireless 5G Wireshark Wireshark Tip WLAN WPA2 Zenmap ZigBee Zoom

Support us by clicking:

Twitter Feed