• Welcome to Hurricane Electric's IPv6 Tunnel Broker Forums.


Welcome to Hurricane Electric's Tunnelbroker.net forums!

Main Menu

Virtual Interfaces

Started by xdaxdb, January 17, 2010, 07:05:27 AM

Previous topic - Next topic


I am leasing a VPS (virtual private server) which I use mainly for hosting a couple web sites. I want to add reachability ipv6 to my existing websites.

I already have the server set up with an ipv6 tunnel with a routed /48 (thank you Hurrucane Electric). The problem I am facing now is how to set up the ipv6 host addresses on the server.

The first idea that comes to mind is to set up sub-interfaces (eth0:0, eth0:1, etc.) with the ipv6 host addresses, but that bothers me. The reason it bothers me is because normaly when you create a sub-interface it is to allow connectivity to a network through that interface. But in this case I don't want to transmit or receive any data at all out of that sub-interface (it will send/receive data from the kernel).

I think a more apropriate solution would be to add more loopback interfaces to the server, but I don't know how to do that or if that is appropriate either.

Anybody out there ever donr something like this. Any input would be helpful.



Unlike ipv4, you don't use aliases to add ipv6 IPs to an interface.

ip addr add 2001:470:xxxx::1/64 dev eth0

as an example.


for the record, ethX:Y is an ancient and deprecated form.  years ago the the distinction was made between "eth0" as the hardware interface, and "" as the network interface.  you can add as many ipv4 or ipv6 addresses as pleases you to a hardware interface.  management of the hardware and networking are properly separated.

ip a a dev eth0
ip a a dev eth0
ip a a dev eth0

ip a ls eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 100
    link/ether 00:04:23:cd:93:d2 brd ff:ff:ff:ff:ff:ff
    inet brd scope global eth0
    inet scope global eth0
    inet brd scope global eth0
    inet6 fe80::20e:cff:fe67:a168/64 scope link
       valid_lft forever preferred_lft forever