Server IPv6 address & DA for adding extra IPv6 addresses changes the Server IPv6 addr
Server IPv6 address & DA for adding extra IPv6 addresses changes the Server IPv6 address
What I have done:
I have set up a new Centos 6.5 server with both an IPv4 and IPv6 server IP address.
I would want / expect the server to use these addresses when making remote connections for all kinds of services.
I have permitted these server IPv4 and IPv6 addresses in remote nameservers for zone transfers and notification.
I have set up remote firewalls to allow certain connections from these server IPs. All was working fine.
IPv6 is working properly.
In my /etc/sysconfig/network-scripts/ifcfg-eth0 file there is one IPv4 and one IPv6 address for the server.
I would expect these to be my 'server IPs'.
After adding IPv4 addresses in DA for assigning to certain users, there were still no issues.
After adding IPv6 addresses in DA for assigning to users, I noticed the first problems:
The last added IPv6 address started acting as the 'server default' IPv6 address. It started showing up in Firewall logs, DNS logs, mail logs and such. The server had started using this last added IPv6 address as it's default IPv6 address.
After a reboot, it was no longer the last added, but it changed to the highest numbered IPv6 address which was being used as the server default IPv6 address.
Checking the server interface gives a good bit if information, although I am not 'expert' enough to fully understand the implications of all this:
Maybe my ideas are way off or too simple, but I would expect that every IPv6 address I add, would also be added to its own virtual interface (eth0:x) just as how it is being done for an IPv4 address I add through DA, not..? Would that not already solve this issue?
Or are there other / better ways to get rid of this 'odd' behaviour?
I'd love to hear others input?
Server IPv6 address & DA for adding extra IPv6 addresses changes the Server IPv6 address
What I have done:
I have set up a new Centos 6.5 server with both an IPv4 and IPv6 server IP address.
I would want / expect the server to use these addresses when making remote connections for all kinds of services.
I have permitted these server IPv4 and IPv6 addresses in remote nameservers for zone transfers and notification.
I have set up remote firewalls to allow certain connections from these server IPs. All was working fine.
IPv6 is working properly.
In my /etc/sysconfig/network-scripts/ifcfg-eth0 file there is one IPv4 and one IPv6 address for the server.
I would expect these to be my 'server IPs'.
After adding IPv4 addresses in DA for assigning to certain users, there were still no issues.
After adding IPv6 addresses in DA for assigning to users, I noticed the first problems:
The last added IPv6 address started acting as the 'server default' IPv6 address. It started showing up in Firewall logs, DNS logs, mail logs and such. The server had started using this last added IPv6 address as it's default IPv6 address.
After a reboot, it was no longer the last added, but it changed to the highest numbered IPv6 address which was being used as the server default IPv6 address.
Checking the server interface gives a good bit if information, although I am not 'expert' enough to fully understand the implications of all this:
Code:
[root@seti ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 52:54:00:2F:5C:16
inet addr:149.210.159.111 Bcast:149.210.159.255 Mask:255.255.255.0
inet6 addr: 2a01:7c8:aab4:5e0::fefe/128 Scope:Global
inet6 addr: 2a01:7c8:aab4:5e0::bebe/128 Scope:Global
inet6 addr: 2a01:7c8:aab4:5e0::ae06/128 Scope:Global
inet6 addr: 2a01:7c8:aab4:5e0::ae07/128 Scope:Global
inet6 addr: fe80::5054:ff:fe2f:5c16/64 Scope:Link
inet6 addr: 2a01:7c8:aab4:5e0::ae08/128 Scope:Global
inet6 addr: 2a01:7c8:aab4:5e0::ae09/128 Scope:Global
inet6 addr: 2a01:7c8:aab4:5e0::ae0a/128 Scope:Global
inet6 addr: 2a01:7c8:aab4:5e0::ae0b/128 Scope:Global
inet6 addr: 2a01:7c8:aab4:5e0::9f6f/48 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:898 errors:0 dropped:0 overruns:0 frame:0
TX packets:903 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:181359 (177.1 KiB) TX bytes:96715 (94.4 KiB)
eth0:0 Link encap:Ethernet HWaddr 52:54:00:2F:5C:16
inet addr:149.210.174.6 Bcast:149.210.174.6 Mask:255.255.255.255
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
eth0:1 Link encap:Ethernet HWaddr 52:54:00:2F:5C:16
inet addr:149.210.174.7 Bcast:149.210.174.7 Mask:255.255.255.255
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
eth0:2 Link encap:Ethernet HWaddr 52:54:00:2F:5C:16
inet addr:149.210.174.8 Bcast:149.210.174.8 Mask:255.255.255.255
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
eth0:3 Link encap:Ethernet HWaddr 52:54:00:2F:5C:16
inet addr:149.210.174.9 Bcast:149.210.174.9 Mask:255.255.255.255
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
eth0:4 Link encap:Ethernet HWaddr 52:54:00:2F:5C:16
inet addr:149.210.174.10 Bcast:149.210.174.10 Mask:255.255.255.255
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
eth0:5 Link encap:Ethernet HWaddr 52:54:00:2F:5C:16
inet addr:149.210.174.11 Bcast:149.210.174.11 Mask:255.255.255.255
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:246 errors:0 dropped:0 overruns:0 frame:0
TX packets:246 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:21936 (21.4 KiB) TX bytes:21936 (21.4 KiB)
[root@seti ~]#
Maybe my ideas are way off or too simple, but I would expect that every IPv6 address I add, would also be added to its own virtual interface (eth0:x) just as how it is being done for an IPv4 address I add through DA, not..? Would that not already solve this issue?
Or are there other / better ways to get rid of this 'odd' behaviour?
I'd love to hear others input?