Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trying to ping a IPv4 and IPv6 hostnames on the same machine.

Status
Not open for further replies.

surfbum99

Technical User
May 8, 2006
81
0
0
GB
Hi,

I've got a machine which has two IPs on it, one IPv4 and one IPv6.

eri0 - 192.168.4.222
eri0:1 - fc00:420:3800:710::2/64

Now I can ping both 192.168.4.222 and fc00:420:3800:710::2

bash-3.2# ping -A inet6 fc00:420:3800:710::2
fc00:420:3800:710::2 is alive
bash-3.2# ping 192.168.4.222
192.168.4.222 is alive

I've made two hostname files :

hostname.eri0 which contains baccipv6

and

hostname6.eri0:1 which contains baccipv6-6

I can ping hostname baccipv6

but I can't ping hostname baccipv6-6

ping -A inet6 baccipv6-6
ping: unknown IPv6 host baccipv6-6

Can someone tell me what I need to do, to get the separate IPv6 hostname working.

Regards,

Alistair.
 
I know very little about inet6, but I presume you would need an entry in /etc/hosts?

Annihilannic.
 
I've tried :

#
# Internet host table
#
127.0.0.1 localhost
192.168.4.222 baccipv6 loghost
fc00:420:3800:710::2 baccipv6-6

but it doesn't work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top