{"id":201,"date":"2025-12-26T02:00:03","date_gmt":"2025-12-26T02:00:03","guid":{"rendered":"https:\/\/virtualserversvps.com\/blog\/?p=201"},"modified":"2026-08-09T22:17:46","modified_gmt":"2026-08-09T22:17:46","slug":"how-to-setup-a-virtual-nic-card-for-vps-server","status":"publish","type":"post","link":"https:\/\/virtualserversvps.com\/blog\/how-to-setup-a-virtual-nic-card-for-vps-server\/","title":{"rendered":"Virtual NICs on a VPS: Adding Interfaces, Bridges, and VLANs"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">This guide shows you how to add a second virtual NIC to a Linux VPS, configure it persistently, and set up bridges and VLANs for multi-network setups. You need root access over SSH and a provider control panel that lets you attach additional network interfaces. Most KVM and OpenVZ plans support extra NICs; the exact panel path differs by provider, but the Linux-side configuration is identical everywhere. If you are still shopping for a host, the provider guides on <a href=\"https:\/\/virtualserversvps.com\/\">virtualserversvps.com<\/a> cover private-network options, and <a href=\"https:\/\/virtualserversvps.com\/#providers\">compare VPS providers on our comparison table<\/a> to shortlist hosts with the interfaces you need.<\/p>\n\n\n<h2 class=\"wp-block-heading\">1. Confirm what the hypervisor exposes<\/h2>\n\n\n<p class=\"wp-block-paragraph\">Start by listing the interfaces Linux currently sees:<\/p>\n\n\n<pre class=\"wp-block-code\"><code>ip -br link<\/code><\/pre>\n\n\n<p class=\"wp-block-paragraph\">A typical KVM VPS shows <code>lo<\/code> and <code>eth0<\/code> (or <code>ens3<\/code>). Names like <code>ens4<\/code> mean the provider uses virtio drivers. Note the MAC address of each interface; you will need to match it if the panel asks you to bind the new NIC to the instance.<\/p>\n\n\n<ul class=\"wp-block-list\"><li><code>eth0<\/code>\/<code>ens3<\/code>: primary interface with your public IPv4 and IPv6<\/li><li><code>lo<\/code>: loopback, ignore it<\/li><li>If no second interface exists yet, you must add it in the control panel first<\/li><\/ul>\n\n\n<h2 class=\"wp-block-heading\">2. Attach the second NIC in the provider panel<\/h2>\n\n\n<p class=\"wp-block-paragraph\">In most panels (Vultr, DigitalOcean, Hetzner, and smaller providers alike) this lives under \u201cNetwork\u201d or \u201cInterfaces\u201d. Create a new interface, optionally attach it to a private network or VLAN, then reboot the instance or hot-plug it. Virtio NICs are hot-pluggable, so after a few seconds:<\/p>\n\n\n<pre class=\"wp-block-code\"><code>sleep 5 && ip -br link<\/code><\/pre>\n\n\n<p class=\"wp-block-paragraph\">If the new interface appears as <code>eth1<\/code> or <code>ens4<\/code>, continue. If not, reboot once so the kernel re-enumerates PCI devices. Verify the driver with <code>ethtool -i eth1<\/code>; a virtio driver with a current kernel version is expected on any modern provider.<\/p>\n\n\n<h2 class=\"wp-block-heading\">3. Configure the interface persistently<\/h2>\n\n\n<p class=\"wp-block-paragraph\">On Debian\/Ubuntu with netplan, add a block for the new interface in <code>\/etc\/netplan\/01-netcfg.yaml<\/code>:<\/p>\n\n\n<pre class=\"wp-block-code\"><code>network:\n  ethernets:\n    eth1:\n      dhcp4: true\n      dhcp6: true<\/code><\/pre>\n\n\n<p class=\"wp-block-paragraph\">Then apply and confirm an address was assigned:<\/p>\n\n\n<pre class=\"wp-block-code\"><code>sudo netplan apply && ip -br addr show eth1<\/code><\/pre>\n\n\n<p class=\"wp-block-paragraph\">On systems using ifupdown (<code>\/etc\/network\/interfaces<\/code>), append the equivalent:<\/p>\n\n\n<pre class=\"wp-block-code\"><code>auto eth1\niface eth1 inet dhcp<\/code><\/pre>\n\n\n<p class=\"wp-block-paragraph\">If the provider assigned a static private IP, use <code>address<\/code> and <code>gateway<\/code> lines instead of DHCP and skip the gateway on the second NIC \u2014 a VPS normally keeps a single default route on the primary interface.<\/p>\n\n\n<h2 class=\"wp-block-heading\">4. Bridges for VM and container traffic<\/h2>\n\n\n<p class=\"wp-block-paragraph\">If you run KVM guests or LXC containers on the VPS, bridge the new NIC so guests share it:<\/p>\n\n\n<pre class=\"wp-block-code\"><code>sudo ip link add name br1 type bridge\nsudo ip link set eth1 master br1\nsudo ip link set br1 up<\/code><\/pre>\n\n\n<p class=\"wp-block-paragraph\">Persist the bridge in netplan by declaring <code>br1<\/code> as a bridge with <code>eth1<\/code> as a member, then re-apply. Guest traffic then exits through the second NIC, keeping host traffic on <code>eth0<\/code> and isolating the two planes \u2014 useful when you run database replicas or CI runners that generate heavy internal traffic.<\/p>\n\n\n<h2 class=\"wp-block-heading\">5. VLANs with iproute2<\/h2>\n\n\n<p class=\"wp-block-paragraph\">To trunk VLANs over the new NIC, create VLAN sub-interfaces:<\/p>\n\n\n<pre class=\"wp-block-code\"><code>sudo ip link add link eth1 name eth1.100 type vlan id 100\nsudo ip link set eth1.100 up\nsudo ip addr add 10.0.100.2\/24 dev eth1.100<\/code><\/pre>\n\n\n<p class=\"wp-block-paragraph\">Add the same lines to netplan or the interfaces file so the VLAN survives reboots, then verify with <code>ip -d link show eth1.100<\/code>. The VLAN tag is only relevant if your provider actually delivers tagged traffic; on a plain private network you do not need VLANs at all.<\/p>\n\n\n<h2 class=\"wp-block-heading\">6. Verify performance and routing<\/h2>\n\n\n<p class=\"wp-block-paragraph\">Confirm the new path works end to end:<\/p>\n\n\n<pre class=\"wp-block-code\"><code>ping -I eth1 10.0.100.1\nip route get 10.0.100.1<\/code><\/pre>\n\n\n<p class=\"wp-block-paragraph\">For throughput, run iperf3 between two VPS instances on the same private network:<\/p>\n\n\n<pre class=\"wp-block-code\"><code># on the receiving VPS\niperf3 -s\n\n# on the sending VPS\niperf3 -c 10.0.100.2<\/code><\/pre>\n\n\n<p class=\"wp-block-paragraph\">On a 1 Gbps private link you should see 900+ Mbit\/s with default settings; anything under 500 Mbit\/s points to an MTU mismatch or an outdated virtio driver. Check MTU parity on both ends (1500 by default, 1450 inside a VPN overlay) with <code>ip link show<\/code>.<\/p>\n\n\n<h2 class=\"wp-block-heading\">7. When a second NIC is worth it<\/h2>\n\n\n<p class=\"wp-block-paragraph\">A dedicated private-network NIC removes contention with public traffic, which matters for database replication, offsite backups, and internal API calls between instances. For a single small VPS, one interface is usually enough \u2014 spend the effort on disk I\/O and kernel tuning instead. Before provisioning extra resources, <a href=\"https:\/\/virtualserversvps.com\/#providers\">compare VPS providers on our comparison table<\/a>; most providers there support private networks on standard plans.<\/p>\n\n\n<p class=\"wp-block-paragraph\">If you need a budget VPS with multiple NICs and a private network for testing, <a href=\"https:\/\/interserver.net\/vps?id=1067805&amp;sid=virtualserversvps\" rel=\"noreferrer noopener sponsored\" target=\"_blank\">InterServer VPS plans<\/a> start at a few dollars a month and include full root access.<\/p>\n\n","protected":false},"excerpt":{"rendered":"<p>Setting up a virtual NIC (Network Interface Card) for your VPS server can greatly enhance your network capabilities. This guide will walk you through the process step by step, ensuring you have a solid understanding of how to configure your virtual NIC effectively. For more insights and resources, check out\u00a0Virtual Servers VPS.<\/p>\n","protected":false},"author":1,"featured_media":202,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":19,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-201","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vps-guides-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.1 (Yoast SEO v26.1) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Virtual NICs on a VPS: Adding Interfaces, Bridges, and VLANs - Virtual Servers VPS Blog<\/title>\n<meta name=\"description\" content=\"Setting up a virtual NIC (Network Interface Card) for your VPS server can greatly enhance your network capabilities. This guide will walk you through the process step by step, ensuring you have a solid understanding of how to configure your virtual NIC effectively. For more insights and resources, check out\u00a0Virtual Servers VPS.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/virtualserversvps.com\/blog\/how-to-setup-a-virtual-nic-card-for-vps-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Virtual NICs on a VPS: Adding Interfaces, Bridges, and VLANs\" \/>\n<meta property=\"og:description\" content=\"Virtual NICs on a VPS: Adding Interfaces, Bridges, and VLANs\" \/>\n<meta property=\"og:url\" content=\"https:\/\/virtualserversvps.com\/blog\/how-to-setup-a-virtual-nic-card-for-vps-server\/\" \/>\n<meta property=\"og:site_name\" content=\"Virtual Servers VPS Blog\" \/>\n<meta property=\"article:published_time\" content=\"2025-12-26T02:00:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-08-09T22:17:46+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/virtualserversvps.com\/blog\/wp-content\/uploads\/2025\/12\/227779-3.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"640\" \/>\n\t<meta property=\"og:image:height\" content=\"426\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Virtual-Servers-Vps-Editor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Virtual-Servers-Vps-Editor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/virtualserversvps.com\/blog\/how-to-setup-a-virtual-nic-card-for-vps-server\/\",\"url\":\"https:\/\/virtualserversvps.com\/blog\/how-to-setup-a-virtual-nic-card-for-vps-server\/\",\"name\":\"Virtual NICs on a VPS: Adding Interfaces, Bridges, and VLANs - Virtual Servers VPS Blog\",\"isPartOf\":{\"@id\":\"https:\/\/virtualserversvps.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/virtualserversvps.com\/blog\/how-to-setup-a-virtual-nic-card-for-vps-server\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/virtualserversvps.com\/blog\/how-to-setup-a-virtual-nic-card-for-vps-server\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/virtualserversvps.com\/blog\/wp-content\/uploads\/2025\/12\/227779-3.jpg\",\"datePublished\":\"2025-12-26T02:00:03+00:00\",\"dateModified\":\"2026-08-09T22:17:46+00:00\",\"author\":{\"@id\":\"https:\/\/virtualserversvps.com\/blog\/#\/schema\/person\/82a299a8284a66ff49f97c74684724a0\"},\"description\":\"Setting up a virtual NIC (Network Interface Card) for your VPS server can greatly enhance your network capabilities. This guide will walk you through the process step by step, ensuring you have a solid understanding of how to configure your virtual NIC effectively. For more insights and resources, check out\u00a0Virtual Servers VPS.\",\"breadcrumb\":{\"@id\":\"https:\/\/virtualserversvps.com\/blog\/how-to-setup-a-virtual-nic-card-for-vps-server\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/virtualserversvps.com\/blog\/how-to-setup-a-virtual-nic-card-for-vps-server\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/virtualserversvps.com\/blog\/how-to-setup-a-virtual-nic-card-for-vps-server\/#primaryimage\",\"url\":\"https:\/\/virtualserversvps.com\/blog\/wp-content\/uploads\/2025\/12\/227779-3.jpg\",\"contentUrl\":\"https:\/\/virtualserversvps.com\/blog\/wp-content\/uploads\/2025\/12\/227779-3.jpg\",\"width\":640,\"height\":426},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/virtualserversvps.com\/blog\/how-to-setup-a-virtual-nic-card-for-vps-server\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/virtualserversvps.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Virtual NICs on a VPS: Adding Interfaces, Bridges, and VLANs\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/virtualserversvps.com\/blog\/#website\",\"url\":\"https:\/\/virtualserversvps.com\/blog\/\",\"name\":\"Virtual Servers VPS Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/virtualserversvps.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/virtualserversvps.com\/blog\/#\/schema\/person\/82a299a8284a66ff49f97c74684724a0\",\"name\":\"Virtual-Servers-Vps-Editor\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/virtualserversvps.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d820b15f1cd028e97610d9adf536df7be5cb6423869967037d468d5355fa003f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d820b15f1cd028e97610d9adf536df7be5cb6423869967037d468d5355fa003f?s=96&d=mm&r=g\",\"caption\":\"Virtual-Servers-Vps-Editor\"},\"sameAs\":[\"https:\/\/virtualserversvps.com\/blog\"],\"url\":\"https:\/\/virtualserversvps.com\/blog\/author\/virtualserversvps\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Virtual NICs on a VPS: Adding Interfaces, Bridges, and VLANs - Virtual Servers VPS Blog","description":"Setting up a virtual NIC (Network Interface Card) for your VPS server can greatly enhance your network capabilities. This guide will walk you through the process step by step, ensuring you have a solid understanding of how to configure your virtual NIC effectively. For more insights and resources, check out\u00a0Virtual Servers VPS.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/virtualserversvps.com\/blog\/how-to-setup-a-virtual-nic-card-for-vps-server\/","og_locale":"en_US","og_type":"article","og_title":"Virtual NICs on a VPS: Adding Interfaces, Bridges, and VLANs","og_description":"Virtual NICs on a VPS: Adding Interfaces, Bridges, and VLANs","og_url":"https:\/\/virtualserversvps.com\/blog\/how-to-setup-a-virtual-nic-card-for-vps-server\/","og_site_name":"Virtual Servers VPS Blog","article_published_time":"2025-12-26T02:00:03+00:00","article_modified_time":"2026-08-09T22:17:46+00:00","og_image":[{"width":640,"height":426,"url":"https:\/\/virtualserversvps.com\/blog\/wp-content\/uploads\/2025\/12\/227779-3.jpg","type":"image\/jpeg"}],"author":"Virtual-Servers-Vps-Editor","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Virtual-Servers-Vps-Editor","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/virtualserversvps.com\/blog\/how-to-setup-a-virtual-nic-card-for-vps-server\/","url":"https:\/\/virtualserversvps.com\/blog\/how-to-setup-a-virtual-nic-card-for-vps-server\/","name":"Virtual NICs on a VPS: Adding Interfaces, Bridges, and VLANs - Virtual Servers VPS Blog","isPartOf":{"@id":"https:\/\/virtualserversvps.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/virtualserversvps.com\/blog\/how-to-setup-a-virtual-nic-card-for-vps-server\/#primaryimage"},"image":{"@id":"https:\/\/virtualserversvps.com\/blog\/how-to-setup-a-virtual-nic-card-for-vps-server\/#primaryimage"},"thumbnailUrl":"https:\/\/virtualserversvps.com\/blog\/wp-content\/uploads\/2025\/12\/227779-3.jpg","datePublished":"2025-12-26T02:00:03+00:00","dateModified":"2026-08-09T22:17:46+00:00","author":{"@id":"https:\/\/virtualserversvps.com\/blog\/#\/schema\/person\/82a299a8284a66ff49f97c74684724a0"},"description":"Setting up a virtual NIC (Network Interface Card) for your VPS server can greatly enhance your network capabilities. This guide will walk you through the process step by step, ensuring you have a solid understanding of how to configure your virtual NIC effectively. For more insights and resources, check out\u00a0Virtual Servers VPS.","breadcrumb":{"@id":"https:\/\/virtualserversvps.com\/blog\/how-to-setup-a-virtual-nic-card-for-vps-server\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/virtualserversvps.com\/blog\/how-to-setup-a-virtual-nic-card-for-vps-server\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/virtualserversvps.com\/blog\/how-to-setup-a-virtual-nic-card-for-vps-server\/#primaryimage","url":"https:\/\/virtualserversvps.com\/blog\/wp-content\/uploads\/2025\/12\/227779-3.jpg","contentUrl":"https:\/\/virtualserversvps.com\/blog\/wp-content\/uploads\/2025\/12\/227779-3.jpg","width":640,"height":426},{"@type":"BreadcrumbList","@id":"https:\/\/virtualserversvps.com\/blog\/how-to-setup-a-virtual-nic-card-for-vps-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/virtualserversvps.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Virtual NICs on a VPS: Adding Interfaces, Bridges, and VLANs"}]},{"@type":"WebSite","@id":"https:\/\/virtualserversvps.com\/blog\/#website","url":"https:\/\/virtualserversvps.com\/blog\/","name":"Virtual Servers VPS Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/virtualserversvps.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/virtualserversvps.com\/blog\/#\/schema\/person\/82a299a8284a66ff49f97c74684724a0","name":"Virtual-Servers-Vps-Editor","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/virtualserversvps.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d820b15f1cd028e97610d9adf536df7be5cb6423869967037d468d5355fa003f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d820b15f1cd028e97610d9adf536df7be5cb6423869967037d468d5355fa003f?s=96&d=mm&r=g","caption":"Virtual-Servers-Vps-Editor"},"sameAs":["https:\/\/virtualserversvps.com\/blog"],"url":"https:\/\/virtualserversvps.com\/blog\/author\/virtualserversvps\/"}]}},"_links":{"self":[{"href":"https:\/\/virtualserversvps.com\/blog\/wp-json\/wp\/v2\/posts\/201","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/virtualserversvps.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/virtualserversvps.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/virtualserversvps.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/virtualserversvps.com\/blog\/wp-json\/wp\/v2\/comments?post=201"}],"version-history":[{"count":5,"href":"https:\/\/virtualserversvps.com\/blog\/wp-json\/wp\/v2\/posts\/201\/revisions"}],"predecessor-version":[{"id":847,"href":"https:\/\/virtualserversvps.com\/blog\/wp-json\/wp\/v2\/posts\/201\/revisions\/847"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/virtualserversvps.com\/blog\/wp-json\/wp\/v2\/media\/202"}],"wp:attachment":[{"href":"https:\/\/virtualserversvps.com\/blog\/wp-json\/wp\/v2\/media?parent=201"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/virtualserversvps.com\/blog\/wp-json\/wp\/v2\/categories?post=201"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/virtualserversvps.com\/blog\/wp-json\/wp\/v2\/tags?post=201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}