[cs631apue] how to test for IPv6 address

apatteda apatteda at stevens.edu
Sat Nov 7 21:44:03 EST 2015


Professor,
  I tried to get IPv6 address on linux machine, I could not get them

when I tried this :
cat /etc/hosts
127.0.0.1    localhost
155.246.89.102    nemo.srcit.stevens-tech.edu nemo

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

it was showing ipv6 capable hosts

but when tried this
/sbin/ifconfig | grep inet6

none of the IP address were displayed.
but they are displaying for IPv4 address.

Thanks
Anitha


More information about the cs631apue mailing list