| Linode Forum https://forum.linode.com/ |
|
| Debian: More ipv6 addresses then ipv4 https://forum.linode.com/viewtopic.php?f=19&t=8525 |
Page 1 of 1 |
| Author: | tofu [ Mon Mar 05, 2012 8:02 am ] |
| Post subject: | Debian: More ipv6 addresses then ipv4 |
Hi do you know how I can add 3 static ipv6 addresses under Debian while I only have 2 ipv4 addresses? auto lo iface lo inet loopback auto eth0 eth0:0 eth0:1 #iface eth0 inet dhcp iface eth0 inet static address 109.74.192.6 netmask 255.255.255.0 broadcast 109.74.192.255 gateway 109.74.192.1 iface eth0:0 inet static address 178.79.180.239 netmask 255.255.255.0 iface eth0 inet6 static address 2a01:7e00:0000:0000:f03c:91ff:fe96:59f7 netmask 64 gateway fe80:0000:0000:0000:0000:0000:0000:0001 iface eth0:0 inet6 static address 2a01:7e00:0000:0000:0000:0000:0017:5000 netmask 64 gateway fe80:0000:0000:0000:0000:0000:0000:0001 iface eth0:1 inet6 static address 2a01:7e00:0000:0000:0000:0000:0017:5001 netmask 64 # ip -6 addr show 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qlen 1000 inet6 2a01:7e00::17:5000/64 scope global valid_lft forever preferred_lft forever inet6 2a01:7e00::f03c:91ff:fe96:59f7/64 scope global valid_lft forever preferred_lft forever inet6 fe80::f03c:91ff:fe96:59f7/64 scope link valid_lft forever preferred_lft forever Thanks! Laurens |
|
| Author: | mnordhoff [ Mon Mar 05, 2012 8:44 am ] |
| Post subject: | |
Personally, my /etc/network/interfaces mostly uses 'up ip' and 'down ip' to manage IPs: Code: auto eth0 (I let the autoconfigured address, well, autoconfigure, and don't explicitly list it in /etc/network/interfaces.) |
|
| Author: | tofu [ Tue Mar 06, 2012 2:59 pm ] |
| Post subject: | |
Thank you I got them running that way.. |
|
| Author: | mnordhoff [ Wed Mar 07, 2012 5:57 am ] |
| Post subject: | |
I should have added, the "preferred_lft 0" part is a hack to stop it from being used as the source IP for outgoing connections. If you don't care about that, you can remove it. |
|
| Author: | smiffy [ Wed Apr 25, 2012 3:07 am ] |
| Post subject: | |
mnordhoff wrote: Personally, my /etc/network/interfaces mostly uses 'up ip' and 'down ip' to manage IPs:
... (I let the autoconfigured address, well, autoconfigure, and don't explicitly list it in /etc/network/interfaces.) Many thanks for sharing that - sorted me out just fine! |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|