User Tools

Site Tools


networking

Networking

In most cases, your virtual servers networking will automatically be configured by means of either DHCP on KVM based services, or by VZCTL in the case of OpenVZ.

If you want to make use of our IP Failover or Anycast IP addresses, though, you'll have to manually configure your networking for both platforms.

While on the Networking tab of your virtual server, you can click the cog next to any of your IP addresses & select Network Settings to see that IP addresses netmask/bitmask, gateway, resolvers, etc.

Remember, do not set multiple gateway entries! This will cause connectivity issues for your virtual server!

IPv4 (Public)

Example configuration for Debian in Las Vegas
  auto eth0
  iface eth0 inet static
       address 205.185.113.2
       netmask 255.255.255.0
       gateway 205.185.113.1 

IPv4 (Private)

  • Netmask: 255.255.0.0
  • Gateway: Do not set a gateway
Example configuration for Debian
  auto eth1
  iface eth1 inet static
       address YOUR_PRIVATE_IP_HERE
       netmask 255.255.0.0
       

IPv6

Las Vegas

  • Gateway: 2605:6400:2:fed5::1
  • Netmask: /48
Example configuration for Debian in Las Vegas
  iface eth0 inet6 static
       address YOUR_IPV6_ADDRESS_HERE/48
       netmask 48
       gateway 2605:6400:2:fed5::1

New Jersey

  • Gateway: 2605:6400:1:fed5::1
  • Netmask: /48
Example configuration for Debian in New Jersey
  iface eth0 inet6 static
       address YOUR_IPV6_ADDRESS_HERE/48
       netmask 48
       gateway 2605:6400:1:fed5::1

Luxembourg

  • Gateway: 2605:6400:3:fed5::1
  • Netmask: /48
Example configuration for Debian in Luxembourg
  iface eth0 inet6 static
       address YOUR_IPV6_ADDRESS_HERE/48
       netmask 48
       gateway 2605:6400:3:fed5::1

Poor Network Performance On Linux

If your virtual server has < 512MB RAM you'll likely suffer poor network performance due to strict default buffer sizes.

To get around this please add the follow to your /etc/sysctl.conf

net.core.rmem_max=16777216
net.core.wmem_max=16777216
net.ipv4.tcp_rmem=4096 87380 16777216
net.ipv4.tcp_wmem=4096 65536 16777216

Once you're done this be sure to sysctl -p to apply it.

These settings will automatically apply during restarts so you shouldn't need to cron/script anything else.

networking.txt · Last modified: 2014/12/13 03:13 by Francisco Dias