Results 1 to 3 of 3

Thread: Basic LAN using IPv6.

  1. #1
    Join Date
    Jul 2011
    Beans
    35

    Basic LAN using IPv6.

    I have just started too learn about IPv6 and i must say it is really interesting.

    I have managed to set up a simple Local area network with two hosts, and they are able to communicate using the local-link address. This isn't that difficult since Ubuntu comes with IPv6 pre-configured and all i really had two do was to ping the other machine.

    Code:
    ping6 <IPv6-address>%ethx
    Were ethx is the network interfaces from which i send my ping.

    But that's link-local, what i want to do next is to set static IPv6 addresses on my hosts. So that i can choose which address they should be using.

    So i edited /etc/network/interfaces in the following way:

    Code:
    auto eth0
    iface eth0 inet static
    pre-up modprobe ipv6
           address <IPv6-address>
           netmask 64
    I have set a static ip on both of the hosts, but to be able to ping each other i have to uncomment this line: #net.ipv6.conf.all.forwarding=1
    In /etc/sysctl.conf

    I'm just wondering, is this the "correct" way of setting up a IPv6 LAN with static ip's? The part that confuses me is that i must uncomment the line in /etc/sysctl.conf

    grateful for all the answers

  2. #2
    Join Date
    Sep 2008
    Location
    Michigan, USA
    Beans
    193
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Basic LAN using IPv6.

    I do it with sub-interfaces...

    Code:
    # The ipv6 network interface
    auto eth0:0
    iface eth0:0 inet6 static
    address <IPv6_Address>
    netmask <Mask_Length>
    gateway <Router_Address>
    That's all you need.

  3. #3
    Join Date
    Jul 2011
    Beans
    35

    Re: Basic LAN using IPv6.

    Quote Originally Posted by KiLaHuRtZ View Post
    I do it with sub-interfaces...

    Code:
    # The ipv6 network interface
    auto eth0:0
    iface eth0:0 inet6 static
    address <IPv6_Address>
    netmask <Mask_Length>
    gateway <Router_Address>
    That's all you need.
    Aha i see, i will have to try out using virtual ips as well, it can be quite handy

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
  •