This is an old revision of the document!
====== 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 specific IP addresses netmask/bitmask, gateway, resolvers, etc.** ===== IPv4 (Public) ===== == Example configuration for Debian in Las Vegas == auto eth0 iface eth0 inet static address 22.214.171.124 netmask 255.255.255.0 gateway 126.96.36.199 ===== 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 <code> net.core.rmem_max=16777216 net.core.wmem_max=16777216 net.ipv4.tcp_rmem=4096 87380 16777216 net.ipv4.tcp_wmem=4096 65536 16777216 </code> 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.