Manual Konfiguration IP-Adressen/en

Aus EUserv Wiki

(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
(Die Seite wurde neu angelegt: „{{Languages|Manual_Konfiguration IP-Adressen}} Kategorie:Servers '''''Configuration of additional IP addresses''''' __TOC__ <div style= "font-size: 1.571em;">…“)
(Configuration of IP addresses in BSD)
 
(Der Versionsvergleich bezieht 44 dazwischenliegende Versionen mit ein.)
Zeile 16: Zeile 16:
* IP address
* IP address
-
* gateway
+
* Gateway
-
* subnet mask
+
* Subnetmask
You will find this data in the customer panel. You will find support in the following Wiki guide:<br>
You will find this data in the customer panel. You will find support in the following Wiki guide:<br>
-
[https://www.euserv.com/wiki/index.php/Kundencenter_Server_IP_Adressen/en Kundencenter_Server_IP_Adressen]<br>
+
[https://www.euserv.com/wiki/index.php/Kundencenter_Server_IP_Adressen/en Customer panel_servers_IP_addresses]<br>
<br>
<br>
If you use IPv6 addresses, you will find support in the following Wiki guide:<br>
If you use IPv6 addresses, you will find support in the following Wiki guide:<br>
-
[https://www.euserv.com/wiki/index.php/Kundencenter_Server_IPv6_Adressen Kundencenter_Server_IPv6_Adressen]<br>
+
[https://www.euserv.com/wiki/index.php/Kundencenter_Server_IPv6_Adressen/en Customer panel_servers_IPv6_addresses]<br>
 +
== Configuration of IP addresses in Linux ==
-
== Configuration of IP addresses under Linux ==
+
=== CentOS 6.x / CentOS 7.x ===  
-
 
+
-
=== CentOS 6.x ===  
+
==== Requirements ====
==== Requirements ====
Zeile 36: Zeile 35:
<pre>
<pre>
-
ifconfig
+
ip addr
</pre>
</pre>
Zeile 44: Zeile 43:
* eth1: second network card
* eth1: second network card
* lo0: loopback
* lo0: loopback
-
 
==== Configuration IPv4 ====
==== Configuration IPv4 ====
-
Under CentOS 6.x the configuration files for the network interfaces can be found under '''/etc/sysconfig/network-scripts/'''. Additional IP addresses can not be directly configured to the respective interface (e.g. eth0) in the configuration file (/etc/sysconfig/network-scripts/ifcfg-eth0). For each IP address a virtual interface will be arranged according to scheme eth0:0, eth0:1 etc. Please proceed as follows:
+
In CentOS 6.x/7.x the configuration files for the network interfaces can be found in '''/etc/sysconfig/network-scripts/'''. Additional IP addresses can not be directly configured to the respective interface (e.g. eth0) in the configuration file (/etc/sysconfig/network-scripts/ifcfg-eth0). For each IP address a virtual interface will be arranged according to scheme eth0:0, eth0:1 etc. Please proceed as follows:
* Create the following configuration file:
* Create the following configuration file:
Zeile 63: Zeile 61:
ONBOOT=yes
ONBOOT=yes
IPADDR=<IP-ADDRESS>
IPADDR=<IP-ADDRESS>
-
NETMASK=<NETMASK>
+
NETMASK=255.255.255.255
</pre>
</pre>
-
Replace <IP-ADDRESS> with the additional IP address you want to configure on network interface eth0 and <NETMASK> with the noted netmask.
+
Replace <IP-ADDRESS> with the additional IP address you want to configure on network interface eth0.
* Enter the following command to restart the network:
* Enter the following command to restart the network:
Zeile 77: Zeile 75:
===== Example =====
===== Example =====
-
To configure the IP address 123.123.123.123 with netmask 255.255.255.255 to interface eth0:1 proceed as follows:
+
To configure the IP address 123.123.123.123 on interface eth0:1 proceed as follows:
* Create the following configuration file:
* Create the following configuration file:
Zeile 90: Zeile 88:
DEVICE=eth0:1
DEVICE=eth0:1
BOOTPROTO=none
BOOTPROTO=none
 +
ONBOOT=yes
IPADDR=123.123.123.123  
IPADDR=123.123.123.123  
NETMASK=255.255.255.255  
NETMASK=255.255.255.255  
Zeile 98: Zeile 97:
<pre>
<pre>
service network restart
service network restart
-
</pre>  
+
</pre>
-
 
+
==== Configuration IPv6 ====
==== Configuration IPv6 ====
-
Under CentOS 6.x additional IPv6 addresses can be arranged via the variable IPV6ADDR_SECONDARIES in the primary configuration file of the interface (/etc/sysconfig/network-scripts/ifcfg-eth0). Multiple addresses will be separated with a blank character. Please proceed as follows:
+
In CentOS 6.x/7.x additional IPv6 addresses can be arranged via the variable IPV6ADDR_SECONDARIES in the primary configuration file of the interface (/etc/sysconfig/network-scripts/ifcfg-eth0). Please proceed as follows:
* Open the following configuration file:
* Open the following configuration file:
Zeile 115: Zeile 113:
<pre>
<pre>
...
...
-
IPV6ADDR_SECONDARIES=<IPV6-ADDRESS>
+
IPV6ADDR_SECONDARIES="<IPV6-ADDRESS>/128"
...
...
</pre>
</pre>
-
Replace <IPV6-ADDRESS> with the additional IPv6 address you want to configure.
+
Replace <IPV6-ADDRESS> with the additional IPv6 address you want to configure.  
 +
 
 +
* Multiple addresses are separated with a space:
 +
 
 +
<pre>
 +
...
 +
IPV6ADDR_SECONDARIES="<IPV6-ADDRESS-1>/128 <IPV6-ADDRESS-2>/128 ..."
 +
...
 +
</pre>
* Enter the following command to restart the network:
* Enter the following command to restart the network:
Zeile 130: Zeile 136:
===== Example =====
===== Example =====
-
To configure the IPv6 address 2001:0db8:2a02:c200:0123:4567:89ab:0002/128 to the interface eth0, please proceed as follows:
+
To configure the IPv6 address 2001:0db8:2a02:c200:0123:4567:89ab:0002 to the interface eth0, please proceed as follows:
* Öffnen Sie die folgende Konfigurations-Datei:
* Öffnen Sie die folgende Konfigurations-Datei:
Zeile 141: Zeile 147:
<pre>
<pre>
...
...
-
IPV6ADDR_SECONDARIES=2001:0db8:2a02:c200:0123:4567:89ab:0002/128  
+
IPV6ADDR_SECONDARIES="2001:0db8:2a02:c200:0123:4567:89ab:0002/128"
...
...
</pre>
</pre>
Zeile 149: Zeile 155:
<pre>
<pre>
service network restart
service network restart
-
</pre>  
+
</pre>
-
 
+
-
=== CentOS 7.x / Fedora 23 ===  
+
=== Fedora 30 ===  
==== Requirements ====
==== Requirements ====
-
 
-
Install the package '''net-tools'''  with the following command:
 
-
 
-
<pre>
 
-
yum install net-tools
 
-
</pre>
 
Enter the following command to detect the name of the network interfaces:
Enter the following command to detect the name of the network interfaces:
<pre>
<pre>
-
ifconfig
+
ip addr
</pre>
</pre>
The following names are specified for the network interface:
The following names are specified for the network interface:
-
* eth0: first network card
+
* net0: first network card
-
* eth1: second network card
+
* net1: second network card
* lo0: loopback
* lo0: loopback
-
 
==== Configuration IPv4 ====
==== Configuration IPv4 ====
-
Under CentOS 7.x and Fedora the configuration files for the network interfaces can be found under '''/etc/sysconfig/network-scripts/'''. Additional IP addresses for each interface will be arranged according to scheme IPADDR0, IPADDR1, IPADDR2 und PREFIX0, PREFIX1, PREFIX2 etc. Please proceed as follows:
+
In Fedora the configuration files for the network interfaces can be found in '''/etc/sysconfig/network-scripts/'''. Additional IP addresses for each interface will be arranged according to scheme IPADDR0, IPADDR1, IPADDR2 und PREFIX0, PREFIX1, PREFIX2 etc. Please proceed as follows:
* Open the following configuration file:
* Open the following configuration file:
<pre>
<pre>
-
vi /etc/sysconfig/network-scripts/ifcfg-eth0
+
vi /etc/sysconfig/network-scripts/ifcfg-net0
</pre>
</pre>
Zeile 194: Zeile 192:
</pre>
</pre>
-
Replace <IP-ADDRESS> with the additional IP address you want to configure on network interface eth0
+
Replace <IP-ADDRESS> with the additional IP address you want to configure on network interface net0
-
 
+
-
* Führen Sie folgenden Befehl aus, damit das Netzwerk neugestartet wird:
+
* Enter the following command to restart the network:
* Enter the following command to restart the network:
Zeile 212: Zeile 208:
<pre>
<pre>
-
vi /etc/sysconfig/network-scripts/ifcfg-eth0
+
vi /etc/sysconfig/network-scripts/ifcfg-net0
</pre>
</pre>
Zeile 228: Zeile 224:
<pre>
<pre>
service network restart
service network restart
-
</pre>  
+
</pre>
-
 
+
==== Configuration IPv6 ====
==== Configuration IPv6 ====
-
Additional IPv6 addresses can be arranged via the variable IPV6ADDR_SECONDARIES in the primary configuration file of the interface (/etc/sysconfig/network-scripts/ifcfg-eth0). Multiple addresses will be separated with a blank character. Please proceed as follows:
+
Additional IPv6 addresses can be arranged via the variable IPV6ADDR_SECONDARIES in the primary configuration file of the interface (/etc/sysconfig/network-scripts/ifcfg-net0). Please proceed as follows:
* Open the following configuration file:
* Open the following configuration file:
<pre>
<pre>
-
vi /etc/sysconfig/network-scripts/ifcfg-eth0
+
vi /etc/sysconfig/network-scripts/ifcfg-net0
</pre>
</pre>
Zeile 245: Zeile 240:
<pre>
<pre>
...
...
-
IPV6ADDR_SECONDARIES=<IPV6-ADDRESS>
+
IPV6ADDR_SECONDARIES="<IPV6-ADDRESS>/128"
...
...
</pre>
</pre>
Replace <IPV6-ADDRESS> with the additional IPv6 address you want to configure.
Replace <IPV6-ADDRESS> with the additional IPv6 address you want to configure.
 +
 +
* Multiple addresses are separated with a space:
 +
 +
<pre>
 +
...
 +
IPV6ADDR_SECONDARIES="<IPV6-ADDRESS-1>/128 <IPV6-ADDRESS-2>/128 ..."
 +
...
 +
</pre>
* Enter the following command to restart the network:
* Enter the following command to restart the network:
Zeile 260: Zeile 263:
===== Example =====
===== Example =====
-
To configure the IPv6 address 2001:0db8:2a02:c200:0123:4567:89ab:0002/128 to the interface eth0, please proceed as follows:
+
To configure the IPv6 address 2001:0db8:2a02:c200:0123:4567:89ab:0002 to the interface net0, please proceed as follows:
-
* Öffnen Sie die folgende Konfigurations-Datei:
+
 
 +
* Open the following configuration file:
<pre>
<pre>
-
vi /etc/sysconfig/network-scripts/ifcfg-eth0
+
vi /etc/sysconfig/network-scripts/ifcfg-net0
</pre>
</pre>
Zeile 271: Zeile 275:
<pre>
<pre>
...
...
-
IPV6ADDR_SECONDARIES=2001:0db8:2a02:c200:0123:4567:89ab:0002/128  
+
IPV6ADDR_SECONDARIES="2001:0db8:2a02:c200:0123:4567:89ab:0002/128"
...
...
</pre>
</pre>
Zeile 279: Zeile 283:
<pre>
<pre>
service network restart
service network restart
-
</pre>  
+
</pre>
-
 
+
-
=== Debian 8.x / Ubuntu 15.x ===
+
=== Debian 10 / Ubuntu 19.x ===
==== Requirements ====
==== Requirements ====
Zeile 289: Zeile 292:
<pre>
<pre>
-
ifconfig
+
ip addr
</pre>
</pre>
Zeile 300: Zeile 303:
==== Configuration IPv4 ====
==== Configuration IPv4 ====
-
Under Debian and Ubuntu the network will be configured via one configuration file. To configure additional IP addresses, please proceed as follows:
+
In Debian and Ubuntu the network will be configured via one configuration file. To configure additional IP addresses, please proceed as follows:
* Open the configuration file "/etc/network/interfaces":
* Open the configuration file "/etc/network/interfaces":
Zeile 314: Zeile 317:
iface eth0:1 inet static
iface eth0:1 inet static
address <IP-ADDRESS>
address <IP-ADDRESS>
-
netmask <NETZMASK>
+
netmask 255.255.255.255
</pre>
</pre>
-
Replace <IP-ADDRESS> with the additional IP address you want to configure on network interface eth0 and <NETMASK> with the noted netmask.
+
Replace <IP-ADDRESS> with the additional IP address you want to configure on network interface eth0.
* Enter the following command to restart the network:
* Enter the following command to restart the network:
Zeile 328: Zeile 331:
===== Example =====
===== Example =====
-
To configure the IP address 123.123.123.123 with netmask 255.255.255.255 to interface eth0:1 proceed as follows:
+
To configure the IP address 123.123.123.123 on interface eth0:1 proceed as follows:
* Open the configuration file "/etc/network/interfaces":
* Open the configuration file "/etc/network/interfaces":
Zeile 349: Zeile 352:
<pre>
<pre>
service networking stop;service networking start
service networking stop;service networking start
-
</pre>  
+
</pre>
-
 
+
==== Configuration IPv6 ====
==== Configuration IPv6 ====
-
Under Debian and Ubuntu the network will be configured via one configuration file. To configure additional IPv6 addresses, please proceed as follows:
+
In Debian and Ubuntu the network will be configured via one configuration file. To configure additional IPv6 addresses, please proceed as follows:
* Open the configuration file "/etc/network/interfaces":
* Open the configuration file "/etc/network/interfaces":
Zeile 366: Zeile 368:
<pre>
<pre>
auto eth0:1
auto eth0:1
-
iface eth0 inet6 static
+
iface eth0:1 inet6 static
address <IP-ADDRESS>
address <IP-ADDRESS>
-
netmask <NETZMASK>
+
netmask 128
</pre>
</pre>
-
Replace <IP-ADDRESS> with the additional IP address you want to configure on network interface eth0 and <NETMASK> with the noted netmask.
+
Replace <IP-ADDRESS> with the additional IP address you want to configure on network interface eth0.
* Enter the following command to restart the network:
* Enter the following command to restart the network:
Zeile 393: Zeile 395:
<pre>
<pre>
-
auto eth0
+
auto eth0:1
-
iface eth0 inet6 static
+
iface eth0:1 inet6 static
address 2001:0db8:2a02:c200:0123:4567:89ab:0001
address 2001:0db8:2a02:c200:0123:4567:89ab:0001
-
netmask 112
+
netmask 128
</pre>
</pre>
Zeile 403: Zeile 405:
<pre>
<pre>
service networking stop;service networking start
service networking stop;service networking start
-
</pre>  
+
</pre>
-
 
+
-
== Configuration of IP addresses under BSD ==
+
== Configuration of IP addresses in BSD ==
==== Requirements ====
==== Requirements ====
Zeile 424: Zeile 425:
==== Configuration ====
==== Configuration ====
-
Under BSD the network will be configured via one configuration file. To configure additional IP addresses, please proceed as follows:
+
In BSD the network will be configured via one configuration file. To configure additional IP addresses, please proceed as follows:
* Open the configuration file "/etc/rc.conf":
* Open the configuration file "/etc/rc.conf":
Zeile 435: Zeile 436:
<pre>
<pre>
-
ifconfig_dc0_alias0="inet <IP-ADDRESS> netmask <NETMASK>"
+
ifconfig_dc0_alias0="inet <IP-ADDRESS> netmask 255.255.255.255"
</pre>
</pre>
-
Replace <IP-ADDRESS> with the additional IP address, you want to configure on network interface dc0 and <NETMASK> with the noted netmask.
+
Replace <IP-ADDRESS> with the additional IP address, you want to configure on network interface dc0.
* Enter the following command to restart the network:
* Enter the following command to restart the network:
Zeile 445: Zeile 446:
service netif restart
service netif restart
</pre>
</pre>
-
 
==== Example ====
==== Example ====
-
To configure the IP address 123.123.123.123 with netmask 255.255.255.255 to interface dc0 proceed as follows:
+
To configure the IP address 123.123.123.123 on interface dc0 proceed as follows:
* Open the configuration file "/etc/rc.conf":
* Open the configuration file "/etc/rc.conf":
Zeile 469: Zeile 469:
</pre>
</pre>
-
 
+
== Configuration of IP addresses in Windows Server 2008/2012 ==
-
== Configuration of IP addresses under Windows Server 2008/2012 ==
+
=== Configuration of IPv4 ===
=== Configuration of IPv4 ===
Zeile 500: Zeile 499:
<br>
<br>
<br>
<br>
-
* Click on '''Advanced...''' and finally on '''Add...''' under '''IP addresses'''.
+
* Click on '''Advanced...''' and finally on '''Add...''' below '''IP addresses'''.
<br>
<br>
<br>
<br>
Zeile 537: Zeile 536:
<br>
<br>
<br>
<br>
-
* Click on '''Advanced...''' and finally on '''Add...''' under '''IP addresses'''.
+
* Click on '''Advanced...''' and finally on '''Add...''' below '''IP addresses'''.
<br>
<br>
<br>
<br>

Aktuelle Version vom 17:00, 11. Sep. 2019

Configuration of additional IP addresses

Inhaltsverzeichnis

Configuration of additional IP addresses

General

This manual will show you how to configure additional IP addresses to your dedicated server. This depends on your selected operating system. According to your operating system you have to configure different configuration files. You will find support in the following Wiki guide:

Requirements

To begin the configuration, you have to note the following data:

  • IP address
  • Gateway
  • Subnetmask


You will find this data in the customer panel. You will find support in the following Wiki guide:
Customer panel_servers_IP_addresses

If you use IPv6 addresses, you will find support in the following Wiki guide:
Customer panel_servers_IPv6_addresses

Configuration of IP addresses in Linux

CentOS 6.x / CentOS 7.x

Requirements

Enter the following command to detect the name of the network interfaces:

ip addr

The following names are specified for the network interface:

  • eth0: first network card
  • eth1: second network card
  • lo0: loopback

Configuration IPv4

In CentOS 6.x/7.x the configuration files for the network interfaces can be found in /etc/sysconfig/network-scripts/. Additional IP addresses can not be directly configured to the respective interface (e.g. eth0) in the configuration file (/etc/sysconfig/network-scripts/ifcfg-eth0). For each IP address a virtual interface will be arranged according to scheme eth0:0, eth0:1 etc. Please proceed as follows:

  • Create the following configuration file:
vi /etc/sysconfig/network-scripts/ifcfg-eth0:1
  • Add the following lines:
DEVICE=eth0:1
BOOTPROTO=none
ONBOOT=yes
IPADDR=<IP-ADDRESS>
NETMASK=255.255.255.255

Replace <IP-ADDRESS> with the additional IP address you want to configure on network interface eth0.

  • Enter the following command to restart the network:
service network restart


Example

To configure the IP address 123.123.123.123 on interface eth0:1 proceed as follows:

  • Create the following configuration file:
vi /etc/sysconfig/network-scripts/ifcfg-eth0:1
  • Add the following lines:
DEVICE=eth0:1
BOOTPROTO=none
ONBOOT=yes
IPADDR=123.123.123.123 
NETMASK=255.255.255.255 
  • Enter the following command to activate the additional IP address:
service network restart

Configuration IPv6

In CentOS 6.x/7.x additional IPv6 addresses can be arranged via the variable IPV6ADDR_SECONDARIES in the primary configuration file of the interface (/etc/sysconfig/network-scripts/ifcfg-eth0). Please proceed as follows:

  • Open the following configuration file:
vi /etc/sysconfig/network-scripts/ifcfg-eth0
  • Add the following lines:
...
IPV6ADDR_SECONDARIES="<IPV6-ADDRESS>/128"
...

Replace <IPV6-ADDRESS> with the additional IPv6 address you want to configure.

  • Multiple addresses are separated with a space:
...
IPV6ADDR_SECONDARIES="<IPV6-ADDRESS-1>/128 <IPV6-ADDRESS-2>/128 ..."
...
  • Enter the following command to restart the network:
service network restart


Example

To configure the IPv6 address 2001:0db8:2a02:c200:0123:4567:89ab:0002 to the interface eth0, please proceed as follows:

  • Öffnen Sie die folgende Konfigurations-Datei:
vi /etc/sysconfig/network-scripts/ifcfg-eth0
  • Add the following lines:
...
IPV6ADDR_SECONDARIES="2001:0db8:2a02:c200:0123:4567:89ab:0002/128"
...
  • Enter the following command to restart the network:
service network restart

Fedora 30

Requirements

Enter the following command to detect the name of the network interfaces:

ip addr

The following names are specified for the network interface:

  • net0: first network card
  • net1: second network card
  • lo0: loopback

Configuration IPv4

In Fedora the configuration files for the network interfaces can be found in /etc/sysconfig/network-scripts/. Additional IP addresses for each interface will be arranged according to scheme IPADDR0, IPADDR1, IPADDR2 und PREFIX0, PREFIX1, PREFIX2 etc. Please proceed as follows:

  • Open the following configuration file:
vi /etc/sysconfig/network-scripts/ifcfg-net0
  • Add the following lines:
...
IPADDR0=<IP-ADDRESS>
PREFIX0=32
...

Replace <IP-ADDRESS> with the additional IP address you want to configure on network interface net0

  • Enter the following command to restart the network:
service network restart


Example

To configure the IP address 123.123.123.123 proceed as follows:

  • Open the following configuration file:
vi /etc/sysconfig/network-scripts/ifcfg-net0
  • Add the following lines:
...
IPADDR0=123.123.123.123
PREFIX0=32
...
  • Enter the following command to restart the network:
service network restart

Configuration IPv6

Additional IPv6 addresses can be arranged via the variable IPV6ADDR_SECONDARIES in the primary configuration file of the interface (/etc/sysconfig/network-scripts/ifcfg-net0). Please proceed as follows:

  • Open the following configuration file:
vi /etc/sysconfig/network-scripts/ifcfg-net0
  • Add the following lines:
...
IPV6ADDR_SECONDARIES="<IPV6-ADDRESS>/128"
...

Replace <IPV6-ADDRESS> with the additional IPv6 address you want to configure.

  • Multiple addresses are separated with a space:
...
IPV6ADDR_SECONDARIES="<IPV6-ADDRESS-1>/128 <IPV6-ADDRESS-2>/128 ..."
...
  • Enter the following command to restart the network:
service network restart


Example

To configure the IPv6 address 2001:0db8:2a02:c200:0123:4567:89ab:0002 to the interface net0, please proceed as follows:

  • Open the following configuration file:
vi /etc/sysconfig/network-scripts/ifcfg-net0
  • Add the following lines:
...
IPV6ADDR_SECONDARIES="2001:0db8:2a02:c200:0123:4567:89ab:0002/128"
...
  • Enter the following command to restart the network:
service network restart

Debian 10 / Ubuntu 19.x

Requirements

Enter the following command to detect the name of the network interfaces:

ip addr

The following names are specified for the network interface:

  • eth0: first network card
  • eth1: second network card
  • lo0: loopback

Configuration IPv4

In Debian and Ubuntu the network will be configured via one configuration file. To configure additional IP addresses, please proceed as follows:

  • Open the configuration file "/etc/network/interfaces":
vi /etc/network/interfaces
  • Add the following lines:
auto eth0:1
iface eth0:1 inet static
address <IP-ADDRESS>
netmask 255.255.255.255

Replace <IP-ADDRESS> with the additional IP address you want to configure on network interface eth0.

  • Enter the following command to restart the network:
service networking stop;service networking start


Example

To configure the IP address 123.123.123.123 on interface eth0:1 proceed as follows:

  • Open the configuration file "/etc/network/interfaces":
vi /etc/network/interfaces
  • Add the following lines:
auto eth0:1
iface eth0:1 inet static
address 123.123.123.123
netmask 255.255.255.255
  • Enter the following command to restart the network:
service networking stop;service networking start

Configuration IPv6

In Debian and Ubuntu the network will be configured via one configuration file. To configure additional IPv6 addresses, please proceed as follows:

  • Open the configuration file "/etc/network/interfaces":
vi /etc/network/interfaces
  • Add the following lines:
auto eth0:1
iface eth0:1 inet6 static
address <IP-ADDRESS>
netmask 128

Replace <IP-ADDRESS> with the additional IP address you want to configure on network interface eth0.

  • Enter the following command to restart the network:
service networking stop;service networking start


Example

To configure the IPv6 address 2001:0db8:2a02:c200:0123:4567:89ab:0001 to interface eth0:1 proceed as follows:

  • Open the configuration file "/etc/network/interfaces":
vi /etc/network/interfaces
  • Add the following lines:
auto eth0:1
iface eth0:1 inet6 static
address 2001:0db8:2a02:c200:0123:4567:89ab:0001
netmask 128
  • Enter the following command to restart the network:
service networking stop;service networking start

Configuration of IP addresses in BSD

Requirements

Enter the following command to detect the name of the network interfaces:

ifconfig

The following names are specified for the network interface:

  • eth0: first network card
  • eth1: second network card
  • lo0: loopback

Configuration

In BSD the network will be configured via one configuration file. To configure additional IP addresses, please proceed as follows:

  • Open the configuration file "/etc/rc.conf":
vi /etc/rc.conf
  • Add the following lines:
ifconfig_dc0_alias0="inet <IP-ADDRESS> netmask 255.255.255.255"

Replace <IP-ADDRESS> with the additional IP address, you want to configure on network interface dc0.

  • Enter the following command to restart the network:
service netif restart

Example

To configure the IP address 123.123.123.123 on interface dc0 proceed as follows:

  • Open the configuration file "/etc/rc.conf":
vi /etc/rc.conf
  • Add the following lines:
ifconfig_dc0_alias0="inet 123.123.123.123 netmask 255.255.255.255"
  • Enter the following command to restart the network:
service netif restart

Configuration of IP addresses in Windows Server 2008/2012

Configuration of IPv4

To configure an additional IPv4 address, please proceed as follows:

  • Open the Network und Sharing Center and click on Local Area Connection.



Datei:ws2008_01_1.png



  • Click on Properties.



Datei:ws2008_02.png



  • Mark Internet Protocol Version 4 (TCP/IPv4) and click on Properties.



Datei:ws2008_03.png



  • Click on Advanced... and finally on Add... below IP addresses.



Datei:ws2008_05_1.png



  • Enter the additional IP address and subnet mask and click on Add.



Datei:ws2008_06_1.png



You have configured the new IP address.

Datei:ws2008_07_1.png



Configuration of IPv6

To configure an additional IPv6 address, please roceed as follows:

  • Mark Internet Protocol Version 6 (TCP/IPv6) and click on Properties.



Datei:ws2008_08_1.png



  • Click on Advanced... and finally on Add... below IP addresses.



Datei:ws2008_09.png



  • Enter the additional IPv6 address and subnet mask and click on Add.



Datei:ws2008_12.png



You have configured the new IPv6 address.

Datei:ws2008_13.png