Help with ping6

PING 
root@server1:/home/server1# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:23:ae:27:b9:ec  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:16 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:41 errors:0 dropped:0 overruns:0 frame:0
          TX packets:41 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:3589 (3.5 KiB)  TX bytes:3589 (3.5 KiB)

wlan0     Link encap:Ethernet  HWaddr 00:24:2c:49:d1:d8  
          inet addr:192.168.1.6  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::224:2cff:fe49:d1d8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:54 errors:0 dropped:0 overruns:0 frame:6492
          TX packets:100 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:5617 (5.4 KiB)  TX bytes:12808 (12.5 KiB)
          Interrupt:17 Base address:0xc000 

root@server1:/home/server1# ping6 localhost
PING localhost(localhost.wmcomputersystems) 56 data bytes
ping: sendmsg: Network is unreachable

What is going on?

There is no (localhost) ::1 ipv6 address set for the lo interface.

In addition there needs to be an ipv6 localhost entry in /etc/hosts for example:

::1             localhost

Scrutinizer -

Thanks.
I am a newbie in setting up a network. Here is my /etc/hosts

root@server1:/home/server1# cat /etc/hosts
#127.0.0.1	localhost
#::ffff:7f00:1	localhost.wmcomputersystems	::1
::1             localhost.wmcomputersystems     localhost
#127.0.1.1	server1
2620:7:a000::1  server1.wmcomputersystems.com	server1

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

There is no (localhost)

 ::1

ipv6 address set for the lo interface.
How?

What is your OS and version ?

Scrutinizer -

Thanks.

Debian 8.5

---------- Post updated 11-22-16 at 12:11 AM ---------- Previous update was 11-21-16 at 12:22 PM ----------

I don't know, but if this helps...

root@server1:/home/server1# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
    link/ether 00:23:ae:27:b9:ec brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DORMANT group default qlen 1000
    link/ether 00:24:2c:49:d1:d8 brd ff:ff:ff:ff:ff:ff
root@server1:/home/server1# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.1.1     0.0.0.0         UG    1024   0        0 wlan0
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 wlan0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 wlan0

---------- Post updated at 12:00 PM ---------- Previous update was at 12:11 AM ----------[/CO

[COLOR="\#738fbf"]---------- Post updated at 12:06 PM ---------- Previous update was at 12:00 PM ----------

Anybody elwse wish to chime in?

Does anybody have any ideas how to solve this?

What's your output of the following command?

sysctl net.ipv6.conf.{all,default,lo}.disable_ipv6
/home/server1# systctl net.ipv6.conf.{all,default,lo}.disable_ipv6
bash: systctl: command not found

Apologies. I misspelled the command. Please, remove the extra t after the second s . It should be:

sysctl net.ipv6.conf.{all,default,lo}.disable_ipv6

Thanks.
Here is the output:

root@server1:/home/server1# sysctl net.ipv6.conf.{all,default,lo}.disable_ipv6
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

Your ip version six has been disabled in the system you are using.
To enabled it again, find those entries in the file /etc/sysctl.conf and change the 1 to a 0 . Then, issue the command sysctl -p
After that try ping6 ::1

Aia -

Sorry for the delay -

Here is the reply:

root@server1:/home/server1# ping6 ::1
connect: Network is unreachable

---------- Post updated at 11:34 PM ---------- Previous update was at 11:21 PM ----------

Aia -

Sorry.

Did not make the proper edits.

Here it is again:

PING ::1(::1) 56 data bytes
64 bytes from ::1: icmp_seq=1 ttl=64 time=0.040 ms
64 bytes from ::1: icmp_seq=2 ttl=64 time=0.070 ms
64 bytes from ::1: icmp_seq=3 ttl=64 time=0.085 ms
64 bytes from ::1: icmp_seq=4 ttl=64 time=0.077 ms
64 bytes from ::1: icmp_seq=5 ttl=64 time=0.086 ms
^C
--- ::1 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 3999ms
rtt min/avg/max/mdev = 0.040/0.071/0.086/0.019 ms

root@server1:/home/server1# ping6  ::ffff:2f15:9a92
PING ::ffff:2f15:9a92(::ffff:47.21.154.146) 56 data bytes
ping: sendmsg: Network is unreachable
ping: sendmsg: Network is unreachable
::ffff:2f15:9a92

is my iIPv6 address.

meow613