Results 1 to 10 of 15

Thread: IPv6 on Ubuntu 9.10?

Hybrid View

  1. #1
    Join Date
    Jan 2010
    Location
    Wheeling WV USA
    Beans
    2,023
    Distro
    Xubuntu 20.04 Focal Fossa

    IPv6 on Ubuntu 9.10?

    Is Ubuntu 9.10 fully IPv6 ready? I notice that command line tools like ping and ssh are treating IPv6 addresses, both with and without the [] characters, as hostnames to be looked up via DNS. Is something else needed to enable IPv6, like special IPv6 versions of packages?

  2. #2
    Join Date
    Oct 2009
    Location
    Denver, CO, USA
    Beans
    139
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: IPv6 on Ubuntu 9.10?

    Yes, 9.10 is IPv6 ready. Head to System > Preferences > Network Connections and choose your network connection and click "Edit". Last tab.

  3. #3
    Join Date
    Jan 2010
    Location
    Wheeling WV USA
    Beans
    2,023
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: IPv6 on Ubuntu 9.10?

    The interface is already configured with a local IPv6 address. The problem is getting applications such as ping and ssh to understand IPv6. Also, this is on Ubuntu Server, so I'm configuring with command lines (ifconfig for temporary changes, emacs of config files and scripts for persistent changes, apt-get for package upgrades and installs ... etc).

  4. #4
    Join Date
    May 2005
    Location
    Sydney, Australia
    Beans
    281

    Re: IPv6 on Ubuntu 9.10?

    Is something else needed to enable IPv6, like special IPv6 versions of packages?
    I have found that most things just work with ipv6. There is ping6 and traceroute6 but I use mtr (apt-get install mtr-tiny). If I mtr to a server with both ipv6 and ipv4 dns entries then it picks ipv6.

    The problem is getting applications such as ping and ssh to understand IPv6
    What sort of problems are you having. As above if I ssh to my server, which has both an A and AAAA dns record it connects to the ipv6 address no problems. Apache, lightppd, postfix may need a change to the config to listen on the ipv6 interface but that is about all the changes needed to have an ipv6 server running.

  5. #5
    Join Date
    Jan 2009
    Location
    ::1
    Beans
    2,485

    Re: IPv6 on Ubuntu 9.10?

    Quote Originally Posted by Skaperen View Post
    Is Ubuntu 9.10 fully IPv6 ready? I notice that command line tools like ping and ssh are treating IPv6 addresses, both with and without the [] characters, as hostnames to be looked up via DNS. Is something else needed to enable IPv6, like special IPv6 versions of packages?
    Yes, Ubuntu is IPv6 ready.

    If you want IPv6 connectivity to the outside world, use "sudo apt-get install miredo", and then visit http://ipv6.google.com/

    HTH

  6. #6
    Join Date
    Jan 2010
    Location
    Wheeling WV USA
    Beans
    2,023
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: IPv6 on Ubuntu 9.10?

    I'm just wanting IPv6 within my LAN for now. Any idea why none of these work? It sure looks like they don't recognize that it is an IP (IPv6) address.
    Code:
    euler/root/x1 /root 10# ping -n 'fe80::225:11ff:fe80:993c'
    ping: unknown host fe80::225:11ff:fe80:993c
    euler/root/x1 /root 11# ping -n '[fe80::225:11ff:fe80:993c]'
    ping: unknown host [fe80::225:11ff:fe80:993c]
    euler/root/x1 /root 12# ping6 -n 'fe80::225:11ff:fe80:993c'
    connect: Invalid argument
    euler/root/x1 /root 13# ping6 -n '[fe80::225:11ff:fe80:993c]'
    unknown host
    euler/root/x1 /root 14# ssh 'fe80::225:11ff:fe80:993c'
    ssh: connect to host fe80::225:11ff:fe80:993c port 22: Invalid argument
    euler/root/x1 /root 15# ssh '[fe80::225:11ff:fe80:993c]'
    ssh: Could not resolve hostname [fe80::225:11ff:fe80:993c]: Name or service not known
    euler/root/x1 /root 16# ssh -6 'fe80::225:11ff:fe80:993c'
    ssh: connect to host fe80::225:11ff:fe80:993c port 22: Invalid argument
    euler/root/x1 /root 17# ssh -6 '[fe80::225:11ff:fe80:993c]'
    ssh: Could not resolve hostname [fe80::225:11ff:fe80:993c]: No address associated with hostname
    euler/root/x1 /root 18#

  7. #7
    Join Date
    Jan 2009
    Location
    ::1
    Beans
    2,485

    Re: IPv6 on Ubuntu 9.10?

    Because it's not clear on which interface a fe80: address is, you have to specify the source interface.

    See below.



    Code:
    sander@athlon64:~$ ping6 -I eth0 fe80::21a:92ff:fe77:27ab
    PING fe80::21a:92ff:fe77:27ab(fe80::21a:92ff:fe77:27ab) from fe80::21a:92ff:fe77:27ab eth0: 56 data bytes
    64 bytes from fe80::21a:92ff:fe77:27ab: icmp_seq=1 ttl=64 time=0.060 ms
    64 bytes from fe80::21a:92ff:fe77:27ab: icmp_seq=2 ttl=64 time=0.070 ms
    ^C
    --- fe80::21a:92ff:fe77:27ab ping statistics ---
    2 packets transmitted, 2 received, 0% packet loss, time 999ms
    rtt min/avg/max/mdev = 0.060/0.065/0.070/0.005 ms
    sander@athlon64:~$ ping6 ip6-localhost
    PING ip6-localhost(localhost) 56 data bytes
    64 bytes from localhost: icmp_seq=1 ttl=64 time=0.055 ms
    64 bytes from localhost: icmp_seq=2 ttl=64 time=0.059 ms
    ^C
    --- ip6-localhost ping statistics ---
    2 packets transmitted, 2 received, 0% packet loss, time 999ms
    rtt min/avg/max/mdev = 0.055/0.057/0.059/0.002 ms
    sander@athlon64:~$

  8. #8
    Join Date
    Jan 2010
    Location
    Wheeling WV USA
    Beans
    2,023
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: IPv6 on Ubuntu 9.10?

    Quote Originally Posted by sanderj View Post
    Because it's not clear on which interface a fe80: address is, you have to specify the source interface.

    See below.
    And how is this done with ssh? How is this done with a web browser URL? Or is this a problem specific to link-local addresses?

  9. #9
    Join Date
    Jan 2009
    Location
    ::1
    Beans
    2,485

    Re: IPv6 on Ubuntu 9.10?

    Typing all those IPv6 addresses is cumbersome. On your LAN, avahi (zeroconf) can take of name resolution to local IPv6 addresses.

    You only have change two lines in your configs. See http://ipv6-or-no-ipv6.blogspot.com/...-in-avaha.html

    Quote from that page:

    Code:
    make sure the /etc/avahi/avahi-daemon.conf file contains an active "use-ipv6=yes" line.
    
    To enable m(ulticast)dns resolving of IPv6 addresses change the
    "hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4"
    line to
    "hosts: files mdns_minimal [NOTFOUND=return] dns mdns"
    in the /etc/nsswitch.conf file
    After that, you will be in the IPv6 LAN Walhalla, and you can ping6 other Ubuntu (9.04+) machines on your LAN just by their <hostname> followed by ".local." (note the leading AND trailing dot):

    Code:
    sander@athlon64:~$ ping6 quirinius.local.
    PING quirinius.local.(quirinius.local) 56 data bytes
    64 bytes from quirinius.local: icmp_seq=1 ttl=64 time=12.0 ms
    64 bytes from quirinius.local: icmp_seq=2 ttl=64 time=2.71 ms
    64 bytes from quirinius.local: icmp_seq=3 ttl=64 time=3.16 ms
    64 bytes from quirinius.local: icmp_seq=4 ttl=64 time=2.87 ms
    ^C
    --- quirinius.local. ping statistics ---
    4 packets transmitted, 4 received, 0% packet loss, time 3016ms
    rtt min/avg/max/mdev = 2.716/5.202/12.045/3.954 ms
    sander@athlon64:~$

  10. #10
    Join Date
    Jan 2010
    Location
    Wheeling WV USA
    Beans
    2,023
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: IPv6 on Ubuntu 9.10?

    If I need to specify which interface to source from (under the theory that my target IP address could be present in duplicate on more than one link), how is it that giving the target a hostname avoids the need to know the interface? Is is that somehow included in a modified named lookup?

    It seems link-local's semantics are too different in IPv6 to use it like I did in IPv4, and I should just exclusively go with a Unique Local Address.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •