4Jul/150

Creating static routes

All traffic in our network has to pass through our core-routers, additionally switch ports are configured in such a way that they only accept ethernet frames with mac addresses originating from these routers. Consequently, no layer-2 traffic is forwarded between switch ports and direct communication between servers, even when on the same subnet, is not possible. If you have multiple servers with us which use IPv4 addresses from the same subnet (usually /24), and you want these servers to exchange traffic between each other, you will have to create static routes on these servers to each other.

The following examples assume that the server with the IPv4 address 192.51.100.10 and the server with the IPv4 address 192.51.100.42 want to communicate with each other.

CentOS

In CentOS, you can add static routes to the route-file of the respective interface. In case of eth0, the file is called route-eth0 and located under /etc/sysconfig/network-scripts/. The below entry on server 192.51.100.10 adds a static to server 192.51.100.42:

#/etc/sysconfig/network-scripts/route-eth0
...
192.51.100.42/32 via 192.51.100.1 dev eth0

Vice versa, the server 192.51.100.42 needs a corresponding route to server 192.51.100.10:

#/etc/sysconfig/network-scripts/route-eth0
...
192.51.100.10/32 via 192.51.100.1 dev eth0

Alternatively, both servers can have a single route added to the whole /24 subnet:

#/etc/sysconfig/network-scripts/route-eth0
...
192.51.100.0/24 via 192.51.100.1 dev eth0

Debian / Ubuntu (until 17.04)

Static routes in Debian and Ubuntu are saved to /etc/network/interfaces. Entries are added to the end of the file or under the iface sections of the respective interface. Assuming the interface to be eth0,  the entry on server 192.51.100.10 would look like this:

#/etc/network/interfaces
...
up ip route add 192.51.100.42/32 via 192.51.100.1 dev eth0
down ip route del 192.51.100.42/32 via 192.51.100.1 dev eth0

On server 192.51.100.42, this would be the static route to 192.51.100.10:

#/etc/network/interfaces
...
up ip route add 192.51.100.10/32 via 192.51.100.1 dev eth0
down ip route del 192.51.100.10/32 via 192.51.100.1 dev eth0

It is also possible to add a static route to the whole /24 on both servers instead:

#/etc/network/interfaces
...
up ip route add 192.51.100.0/24 via 192.51.100.1 dev eth0
down ip route del 192.51.100.0/24 via 192.51.100.1 dev eth0

Ubuntu (17.10 and above)

In Ubuntu beginning with version 17.10, static routes are added to the file /etc/netplan/01-netcfg.yaml . On the server with the IP  192.51.100.10,the entry has to be added in the correct indentation to the network interface, in this case  eth0 . Because of some particularities in Netplan, there are two routes that have to be added for each server ip. Please note the prefixes that that got changed to /25:

#/etc/netplan/01-netcfg.yaml
...
    eth0:
      routes:
        - to: 192.51.100.0/25
          via: 192.51.100.1
        - to: 192.51.100.128/25
          via: 192.51.100.1

Finally it is required to reset the routing table and to apply the changes. Please use the whole command at once to prevent a network connection loss:

ip route flush table main; ip route flush cache; netplan apply

openSUSE

Static routes in openSUSE can be set in /etc/sysconfig/network/routes. On server 192.51.100.10, the static route to 192.51.100.42 is as follows:

#/etc/sysconfig/network/routes
...
192.51.100.42/32 192.51.100.1 - eth0

Conversely, the static route on 192.51.100.42 to 192.51.100.10:

#/etc/sysconfig/network/routes
...
192.51.100.10/32 192.51.100.1 - eth0

As an alternative, both servers can have a static route to the whole /24 subnet:

#/etc/sysconfig/network/routes
...
192.51.100.0/24 192.51.100.1 - eth0

Windows Server

To create a static route under Windows Server 2008 or 2012, please open the "Command Prompt" with administrative privileges. On server 192.51.100.10 enter the following:

route -p add 192.51.100.42 mask 255.255.255.255 192.51.100.1

The corresponding entry on server 192.51.100.42 is:

route -p add 192.51.100.10 mask 255.255.255.255 192.51.100.1

Setting the -p option makes the route persistent across reboots. If the route is meant to be temporary, you may omit -p.

Posted by: Andreas | Tagged as: , , , , No Comments
16Oct/120

Windows Server 2012 available now!

Just right after the official completion of MICROSOFT's new operating system for server applications - entitled Windows Server 2012 - our technicians have started with working on its evaluation. We have performed numerous functionality tests for our customers and in particular the integration of this new system into our "ASI" (Automatic System Installer) System. We take pride in reporting today:

Windows Server 2012 is now available as an 'upgrade' for all our rootservers and virtual servers alike.

New customers can order Windows Server 2012 directly during the ordering process on our homepage while existing clients simply need to send an email.

Microsoft took the opportunity, given by the launch of this new operating system, to substantially simplify their licensing model and versions offered. Different from it's predecessors Windows Server 2003 and Windows Server 2008 it is only available in two versions: The 'standard' and the 'datacenter' edition.

Our customers who rent dedicated servers can now chose between the new version and its fomer predecessors of the 2008 version, and all that in addition to a wide selection of Linux operating systems. Windows Server 2012 Standard Edition is available at only 19.99 EUR per month, the Datacenter Edition costs 99.99 EUR, but is worth every penny as it provides countless advantages.
And what applies to our Windows Server 2008 operating systems is true for Windows Server 2012 as well: Our customers can test the system free of charge for two months during which no additional costs will accumulate.

Clients who rent our virtual machines will be provided with the bigger Datacenter Edition which will be installed upon request at a rate of 6.99 EUR per month. And likewise our virtual servers can be operated with a wide selection of various Linux distributions.

Finally we have taken the opportunity of the launch of Windows Server 2012 to make a concession to all Windows Server 2008 fans out there. The new price for Windows Server 2008 Standard Edition has been reduced from 29.99 EUR to 19.99 EUR per month, when freshly ordered.

 

-------------------- The same text in german / der gleiche Text auf deutsch: --------------------

 

Nachdem Microsoft sein neuestes Betriebssystem für Serverumgebungen, Windows Server 2012, im vergangenen Monat offiziell fertig gestellt hat, haben sich unsere Techniker umgehend an die Arbeit gemacht. Wir haben für unsere Kunden zahlreiche Funktionstests und insbesondere auch die Integration des neuen Systems in unser "ASI" (Automatic System Installer) System durchgeführt, so dass wir heute mit Erfolg melden können:

Windows Server 2012 ist ab sofort für all unsere Rootserver und V-Server als Upgrade erhältlich!

Es kann von Neukunden direkt während des Bestellvorganges auf unserer Homepage, von Bestandskunden jederzeit via Email als Upgrade hinzu bestellt werden.

Microsoft hat die Einführung von Windows Server 2012 genutzt, um das Versions- und Lizenzmodell radikal zu vereinfachen. Im Gegensatz zu seinen Vorgängern, Windows Server 2003 und 2008, ist Windows Server 2012 nur noch in zwei Versionen erhältlich, nämlich in der Standard Edition und in der Datacenter Edition.

Kunden unserer dedizierten Server können - neben der üblichen, breiten Auswahl an Linux-Systemen - frei zwischen den beiden neuen Versionen sowie den Vorgänger-Versionen der 2008er Reihe wählen. Windows Server 2012 Standard Edition kostet lediglich 19,99 € pro Monat, die Datacenter Edition schlägt mit 99,99 € etwas teurer zu Buche, bringt allerdings auch zahlreiche Vorteile mit sich.
Genau wie für Windows Server 2008 gilt auch für das neue Windows Server 2012: Unsere Kunden können das System in den ersten beiden Monaten kostenfrei testen, während der ersten beiden Monate fallen keine Zusatzkosten an!

Unseren V-Server-Kunden stellen wir von Haus aus die größere Datacenter Edition zur Verfügung, die auf Wunsch für nur 6,99 € / Monat installiert wird. Auch für unsere V-Server steht daneben weiterhin die übliche, breite Auswahl an Linux-Systemen zur Verfügung.

Schließlich haben wir die Neueinführung von Windows Server 2012 noch genutzt, um auch den Liebhabern von Windows Server 2008 etwas Gutes zu tun: Der Preis für die Windows Server 2008 Standard Edition beträgt für neue Bestellungen ab sofort nur noch 19,99 € / Monat statt bisher 29,99 € / Monat.