Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversHalloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PC×
Skip to content
VGSources
Blog

How to Configure Linux Tools to Use IPv6 on a VPS

Set up IPv6 on a Linux VPS safely: obtain provider details, verify addresses and routes, persist configuration, force curl and SSH to IPv6, expose daemons correctly, and diagnose DNS, firewall and dual-stack socket problems.
Length11 min Posted Quest giverVGSources Team
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Configure IPv6 in layers: first obtain an address or prefix, gateway and interface details from your VPS provider; then persist the address and route with your distribution’s network manager; finally test each client and daemon with IPv6-specific commands. An address by itself is not Internet connectivity—ip -6 route show must show a usable default route, and services must listen on IPv6 with the IPv6 firewall path open.

What you need before changing a remote VPS

IPv6 setup starts outside Linux. Ask the provider for the exact IPv6 address or delegated prefix, prefix length, gateway or next hop, and the interface name to configure. Providers do not all deliver routing the same way: some give a directly connected gateway, some require a provider-specific next hop, and some delegate a prefix from which you assign addresses yourself.

As an Amazon Associate I earn from qualifying purchases.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Record the distribution and release as well. Debian 12, Ubuntu 22.04 and later, and images using NetworkManager may use different configuration files and activation commands. OVHcloud’s documentation, for example, separates its Debian and Ubuntu procedures rather than treating them as interchangeable. Follow the provider’s values while using your distribution’s syntax.

  • Keep an existing SSH session open while changing networking.
  • Open the provider’s out-of-band console before editing a remote interface.
  • Save the current output of ip link show, ip -6 addr show and ip -6 route show so you can restore the previous state.
  • Know how to revert the network-manager file and restart networking from the console if the new route disconnects you.

The documentation-only addresses in examples below use 2001:db8::/32. They are placeholders, not addresses you can route on the public Internet.

#1 Best Overall
Sale
Gaoye Blue Light Blocking Glasses
  • BLUE LIGHT BLOCKING GLASSES: Our blue light glasses for women boast UV400 protection, blocking harmful blue rays from computer screens. With these bluelight glasses women, you can enjoy gaming, reading, or watching TV with no worries of eye strain.
  • EYE RELIEF: Our blue light glasses are engineered to reduce blurry vision or strain caused by prolonged screen time. These womens blue light glasses aid in better sleep by preventing blue light from disrupting your natural sleep cycle, helping you fall asleep faster and enjoy a more restful night's sleep, making them the perfect christmas present.
  • COMFORTABLE: Crafted from durable material, our trendy blue light glasses for woman or blue light glasses men ensure long-lasting comfort. The high-transmittance lenses accessories, gamer gifts for men, help keep your eyes relaxed. Perfect stocking stuffers, gifts for gamers men, christmas gifts for men, halloween costumes.
  • LIGHTWEIGHT: These clear blue light glasses feature a lightweight frame, meaning they’ll stay comfy for long-term wear. Perfect as blue blockers glasses for women or mens blue light glasses, these non-prescription fake glasses for men can be worn throughout the day. The blue light blocking glasses women feature polycarbonate HD lenses, which are anti-reflective and restore true color.
  • WORRY-FREE PURCHASE: If you experience any issues, our support team is ready to assist you quickly. These are the perfect costume glasses for cosplay dressing up.

Inspect the current IPv6 state

Use iproute2, the standard low-level Linux networking toolkit, before making a change:

ip link show
ip -6 addr show
ip -6 route show

ip link show reveals the real interface name; it may be ens3, eno1, eth0, or another predictable name. Do not copy an example that says eno1 until you have confirmed your own interface.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

ip -6 addr show lists addresses by interface and scope. A global address normally has a scope of global. A fe80::/10 address is link-local: it is required for many local IPv6 operations, but its presence alone does not prove that the VPS can reach the Internet.

ip -6 route show must contain a default route, commonly displayed as a line beginning with default. A global address with no usable default route can communicate on its local link while every Internet test fails.

Check outbound connectivity by family

ping -6 -c 4 example.com
curl -6 https://example.com/

These tests ask the tools to use IPv6 rather than silently succeeding over IPv4. A successful ping -6 proves ICMPv6 reachability to that destination; a successful curl -6 proves that DNS resolution, routing, TCP and the HTTPS service all worked for that request. Neither test proves that an inbound service on your VPS is listening correctly.

For DNS comparison, query both address families:

dig AAAA example.com
dig A example.com

A missing AAAA record is a DNS publication issue, not evidence that Linux lacks IPv6 support. Conversely, an AAAA record can exist while the server has no route or firewall allowance.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Choose the address-assignment mode

Your provider determines which mode is valid. Do not select a mode merely because its syntax is familiar.

Mode What Linux receives When it fits Main caution
Static An address and prefix plus a gateway or next hop entered in configuration The provider assigns fixed VPS addressing or a routed prefix Every value, including prefix length and gateway, must match the provider’s allocation
SLAAC Router advertisements supply addressing information The provider advertises a prefix and supports autonomous configuration Address lifetimes and default-router advertisements must remain available
DHCPv6 A DHCPv6 server supplies IPv6 configuration The provider explicitly documents DHCPv6 for the VPS network DHCPv6 behavior differs from SLAAC; enabling the wrong one may produce no usable address

Some networks use SLAAC for addresses and DHCPv6 for additional information. Others provide a static address and a manually specified route. Use the provider’s documented model rather than combining settings from unrelated examples.

Rank #2
Windex Gaming Cleaning Wipes, Pre-Moistened Wipes to Instantly Clean all Gaming Gear and Electronics, Resealable Packaging for a Freshness Lock, 25 count (Pack of 1)
  • WINDEX GAMING WIPES: effortlessly clean all your gaming gear and gaming electronics in one easy step with our new Windex Gaming Wipes
  • AMMONIA FREE: our ammonia-free formula is safe to use on all of your favorite gaming equipment like consoles, headsets, controllers, screens, keyboards, and more
  • PRE-MOISTENED WIPES: each wipe instantly removes dust, dirt, and stubborn smudges and fingerprints leaving a streak-free shine
  • ANTI-STATIC: great for cleaning and wiping down your gaming gear and electronics leaving behind no visible residue
  • COMPACT RESEALABLE PACKAGE: store your pack of Windex Gaming Wipes anywhere in your home for whenever a quick and easy wipedown is needed

Persist IPv6 with the distribution’s network manager

Temporary commands can make an address appear until the next restart. Persistent configuration belongs in the network stack that owns the interface. Identify whether the image uses Debian ifupdown, Ubuntu Netplan, NetworkManager, or another manager, and apply changes through that manager.

Debian with ifupdown

Debian’s NetworkConfiguration documentation supports these patterns. Replace the interface and addresses with the values supplied for your VPS.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
# SLAAC
iface eno1 inet6 auto

# DHCPv6
iface eno1 inet6 dhcp

# Static configuration
iface eno1 inet6 static
    address 2001:db8::c0ca:1eaf/64
    gateway 2001:db8::1ead:ed:beef

These stanzas belong in the ifupdown configuration used by your image, commonly /etc/network/interfaces and included files. Preserve any existing IPv4 stanza. A static IPv6 stanza needs the provider’s actual prefix length; /64 in the example is documentation data, not a universal requirement.

After editing, use the ifupdown activation method documented for your release. Keep the console available, then confirm both address and route:

ip -6 addr show dev eno1
ip -6 route show dev eno1
ping -6 -c 4 example.com

Ubuntu and Netplan

Netplan stores network intent in YAML and renders it for a backend such as systemd-networkd or NetworkManager. The indentation and interface name must be exact, and route syntax varies with the Ubuntu release and provider instructions. Use the provider’s Ubuntu procedure instead of copying a Debian ifupdown stanza into a Netplan file.

After changing a Netplan file, apply it with the Netplan command documented by that release. When working over SSH, prefer a guarded or try-style application when available so an invalid route can be rolled back. Then run:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
ip -6 addr show
ip -6 route show
ping -6 -c 4 example.com

If the route is absent, inspect the rendered configuration and the network-manager logs before repeatedly changing YAML. The key result is not that a file was accepted; it is that the intended interface has a global address and a working default IPv6 route.

NetworkManager and other managers

NetworkManager, systemd-networkd and vendor cloud-init profiles each have their own files and commands. Do not run two managers against the same interface. Determine the owner first, make the smallest change in that manager, activate it, and verify the kernel state with the ip commands above.

Rank #3
Sale
LISEN Cell Phone Stand Phone Holder for Desk, Office Decor Gadgets for Men
  • Ergonomic & Adjustable Design: Fight "text neck" and improve your posture. Designed for comfort, it offers an adjustable height (7.1in-8.5in) (1.4in adjustable range) and angle (5°-85°) Please note: cell phone stand is only 9 inches tall—the length of a standard pencil
  • Without blocking subtitles Perfect for office desk Tiktok Face Time Zoom video—this is the ultimate kitchen desk essential for phones! Perfect viewing experience while reducing neck back strain, A must-have for gamers streamers desk, and anyone who values both style and support!
  • Sleek & Stable Design fits Otterbox Case: Say goodbye to bent cables, tangles, and tip-overs! LISEN’s stylish adjustable desk phone holder features a built-in charging hole and smart cable management, keeping your phone secure and your workspace clutter-free cool gadgets for men
  • ANTI-SLIP DESIGN free hands: The under 10.00 items easy gadgets back and the bottom of this kitchen essentials for women are fully covered by anti-skid silicone, which LISEN stand up desk decor can provide maximum protection device from any scratches and slides
  • Your Perfect Viewing Companion:If your product arrives damaged or breaks within 365 days, reach out to LISEN for a quick and hassle-free solution. Struggling with assembly, like tightening the screw? We’ve got your back! Your experience matters to us. (Product including: phone Holder stand*1, screw*1, hexagon screwdriver*1, specification*1)

When a provider supplies a routed prefix rather than a single host address, you may assign additional addresses to the interface or to services, but the provider’s route model still controls the gateway. Adding an address without the provider route does not create reachability.

Force command-line clients to use IPv6

Once the host has a route, force individual tools by address family when diagnosing or operating a service.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
curl -6 https://example.com/
curl -4 https://example.com/
curl -6 'https://[2001:db8::10]/'
ssh -6 [email protected]

curl -6 (also written --ipv6) requests IPv6, while curl -4 (or --ipv4) requests IPv4. The curl tutorial describes normal behavior as choosing IPv6 when a lookup returns an IPv6 address and falling back to IPv4 if the IPv6 connection fails. Explicit flags remove that ambiguity during troubleshooting.

Literal IPv6 URLs require square brackets around the address so the colons are not mistaken for a port separator. Include the port after the closing bracket:

curl -6 'https://[2001:db8::10]:8443/'

For SSH, ssh -6 [email protected] forces the client’s connection family. If the hostname has both A and AAAA records, compare ssh -6 with an ordinary connection and inspect the server side with ss -lnt6.

Use verbose output to separate failure layers

curl -6v https://example.com/
ssh -6 -vv [email protected]

Verbose output helps distinguish DNS resolution, route selection, TCP connection refusal, timeout and TLS or SSH negotiation. A timeout after an IPv6 address is selected usually points to routing or filtering; an immediate refusal generally means the destination host is reachable but no permitted service is listening on that address and port.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Make a server reachable over IPv6

Outbound success from curl -6 does not configure an inbound web or SSH service. Three separate conditions must be true:

  1. The daemon must bind an IPv6 address or an IPv6 wildcard such as ::.
  2. The host’s IPv6 firewall must allow the service port.
  3. The DNS AAAA record must point to the intended global address when clients use a hostname.

Inspect listeners

ss -lnt
ss -lnt6

The second command focuses on IPv6 TCP sockets. A service that appears only in ss -lnt may have an IPv4-only listener. Configure the daemon according to its own syntax. Apache and Nginx, for example, use bracketed IPv6 listener forms such as an address in square brackets followed by a port; a wildcard listener can expose every IPv6 address on the host, so choose the scope deliberately.

Rank #4
Ledagic IC+RGBW USB Powered Led Light Bar with App & Remote Control, 2 Pack
  • Easy Installation: Our gaming lights have been designed to enhance your entertainment experience. Simply position the led light bar next to your TV or game console to create a game room environment with ease. They come with USB power and a 60 inch cord for direct mounting and mobility
  • Audio Syncing & Extensive Mode: The built-in high-sensitivity music sensor allows you to sync the TV led lights to your favorite music. Lights react and move to the beat of music, film and game audio, creating an incredible immersive sound and light experience – and all without the need for an additional hub. You can choose from 64+ patterns, including strobe, illusion, jump, energy, gradient, running, chasing, fluttering mode etc. Each mode can be applied to different scenes
  • 64+ Chasing IC+RGB & W Effect: The independent control design of IC+RGB and white all-in-one multifunctional rgbw led bar lights monitor backlight allows you to easily switch the led lights for desk between IC+RGB and white to enjoy a variety of lighting effects, you can choose white lighting mode with high brightness for better illumination when working, etc. Choose IC+RGB lighting mode when you need to create an entertaining atmosphere for the light show, 16 million colours of Color changing rgb light bar let you dance to the beat and create a dynamic party atmosphere
  • Dynamic and Dimmable Lights: 1%-full brightness free brightness adjustment gives you the flexibility to adjust dimmable led light bar for room decorations or a variety of occasions
  • USB Powered: USB light bars for room can be powered by powernank, usb charger, TV, Monitor, laptop PC mainframe, making behind TV led lighting bar easy to install in any location.TV led lights are powered by the TV usb interface / PC mainframe, can be turned on/off synchronously with TV / PC

Open the IPv6 firewall path

IPv4 and IPv6 filtering are separate paths. A rule that permits TCP 443 in an IPv4 firewall does not automatically permit TCP 443 over IPv6. Review the firewall frontend in use and its IPv6 rules. On systems managed directly with netfilter, ip6tables is the IPv6 counterpart to iptables; newer systems may use another frontend that still needs an explicit IPv6 policy.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Allow only the required ports, retain established-connection and ICMPv6 handling required by your firewall design, and check both host and provider-level firewalls. Test from an external IPv6-capable network rather than from the same VPS, because a local test can bypass an inbound filtering problem.

Understand dual-stack socket behavior

Linux’s net.ipv6.bindv6only setting changes how an IPv6 socket handles IPv4-mapped connections. The kernel documentation defines value 0 as allowing IPv4-mapped addresses and value 1 as restricting the socket to IPv6; the documented default is 0. A daemon that opens an IPv6 wildcard socket may therefore already cover IPv4, or it may need separate IPv4 and IPv6 sockets depending on its own behavior and this setting.

If adding an IPv6 listener produces “address already in use,” inspect existing sockets and this setting before changing ports:

ss -lnt
ss -lnt6
sysctl net.ipv6.bindv6only

Change IPv6 kernel settings only when required

sysctl reads and writes kernel parameters exposed through /proc/sys. A runtime change is useful for a controlled test, but it disappears on reboot unless persisted.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
sudo sysctl -w net.ipv6.bindv6only=1
printf '%sn' 'net.ipv6.bindv6only=1' | sudo tee /etc/sysctl.d/60-ipv6-sockets.conf
sudo sysctl --system

Use a narrowly named file in /etc/sysctl.d/ rather than editing unrelated settings, and set a parameter only when the application design requires it. Reload the affected daemon and verify its sockets after applying the setting. Ubuntu’s sysctl manual documents sysctl -w, /etc/sysctl.conf, drop-in files under /etc/sysctl.d/, and sysctl --system for loading system configuration.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Install diagnostic tools without mistaking packages for networking

If a minimal image lacks a command, install the distribution package that provides it. On Ubuntu, refresh package indexes with:

sudo apt update

Typical packages include the tools providing curl, iproute2, openssh-client, dig, and traceroute, plus the firewall frontend selected for your system. Package names differ by distribution, so use that distribution’s package database.

Best Value
Sale
HUANUO FlowLift™ Dual Monitor Stand, Fully Adjustable Gaming Monitor Desk Mount for 13–32″ Computer Screens, Full Motion VESA 75x75/100x100 with C-Clamp & Grommet Base, Each Arm Holds 4.4 to 19.8 lbs
  • Compatible with Wide Screens - To ensure compatibility with the dual monitor mount, your each monitor must meet three conditions at the same time: First, computer screens size range: 13 to 32 inches. Second, screen weight range: 4.4 to 19.8 lbs. Third, the back of the monitor screen must have VESA mounting holes with a pitch of 75x75mm or 100x100mm.
  • Regarding the compatibility with desks - Your desk must meet three conditions at the same time: First, desk material: Only wooden desks are recommended, plastic or glass desks cannot be used. Second, desk thickness range: 0.59" - 3.54". Third, the bottom of the desk should not have any cross beams or panels, as this will interfere with installation. We recommend carefully checking that your desk and monitors meets all above conditions before purchasing.
  • Dual C-Clamp Hold - Worried your dual monitors might wobble or slip? Our upgraded base uses a larger platform plus a dual C-clamp structure to lock the dual monitor arm firmly to your desk. Each arm safely keeps your screens steady while you type, click and game—no shaking, no sliding, just a clean and secure setup you can trust every day. It also provides Grommet Mounting installation choice, both options ensure stable and secure fixation for your 0.59" - 3.54" desk.
  • Full-Motion Adjustment For Comfortable View - Pull the screen closer when you’re deep in a spreadsheet, push it back to watch videos, or rotate to portrait for coding — moving everything smoothly with just one hand. The monitor stand offers +85°/-50° tilt, ±90° swivel and 360° rotation. Raise your monitor up to 15.75″ to support a healthy sitting posture. Whether you’re working from home, gaming through the night, or switching between video calls and documents, getting the screens to your natural line of sight helps relieve neck, shoulder and back strain so you can stay focused longer with less fatigue.
  • Keep Your Desk Organized: By lifting both screens off the desktop, this dual monitor stand opens up valuable space for your keyboard, notebook, docking station or a simple, clutter-free work area. Built-in cable management guides wires along the arms, keeping cords out of sight and out of the way. Enjoy a tidy, modern workstation that looks as good as it feels to use.

Installing a client cannot allocate an IPv6 prefix, add a provider gateway, or repair a missing route. If packages download over IPv4 while IPv6 is broken, that only proves the IPv4 path works. Re-run curl -6 after configuration to test the intended family.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Troubleshoot by symptom and layer

Symptom Check first Likely layer Next action
No global IPv6 address ip -6 addr show Provider allocation or local interface configuration Confirm the assigned prefix and the manager’s address stanza
Address exists but no Internet access ip -6 route show, then ping -6 Missing or incorrect default route or gateway Correct the provider-specific route and reapply the network manager
DNS has no AAAA answer dig AAAA host.example DNS publication Publish or correct the AAAA record; do not alter socket settings to solve DNS
curl -6 fails but curl -4 works curl -6v, route, firewall IPv6 path, destination firewall or service listener Separate name resolution, routing, filtering and listener tests
SSH works by IPv4 only ssh -6, ss -lnt6 on the server sshd listener, firewall or DNS AAAA record Confirm an IPv6 socket and permit the SSH port in IPv6 filtering
Service reports address-in-use after adding IPv6 net.ipv6.bindv6only and existing sockets Dual-stack socket semantics Choose one dual-stack socket or separate sockets, then align the daemon and kernel setting

When ping works but the website does not

ICMPv6 reachability and TCP service reachability are different tests. If ping -6 succeeds while a browser or curl -6 request fails, inspect the web daemon’s IPv6 listener with ss -lnt6, then inspect host and provider firewalls for TCP 80 or 443. Confirm that the hostname’s AAAA record points to the same address you tested literally.

When a route disappears after reboot

A route added interactively is not persistent. Put the address and gateway in the active network manager’s configuration, apply it, reboot only during a maintenance window, and run:

ip -6 addr show
ip -6 route show
ping -6 -c 4 example.com

If the route is present before reboot but absent afterward, another manager may be overwriting the interface, cloud-init may be regenerating configuration, or the persistent file may not be the file actually used by the image.

A safe verification sequence

Use this order after every meaningful change; it narrows the fault before you move to the next layer.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Confirm the interface with ip link show.
  2. Confirm a global address with ip -6 addr show.
  3. Confirm a default route with ip -6 route show.
  4. Test external IPv6 using ping -6 -c 4 example.com.
  5. Test HTTP explicitly with curl -6v https://example.com/.
  6. Compare DNS using dig AAAA host.example and dig A host.example.
  7. On a server, verify listeners with ss -lnt6.
  8. From an external IPv6-capable host, test the published service port.
  9. Reboot only after the persistent configuration passes these checks, then repeat the address, route and connectivity tests.

Decide which configuration approach fits your VPS

The reusable command sequence is determined by five variables: distribution and network-manager syntax, address-assignment mode, provider gateway behavior, daemon listener model and IPv6 firewall policy. Two VPSs can run the same Linux distribution yet require different route declarations because their providers deliver different next-hop information.

  • Choose static configuration when the provider gives fixed values and expects them to remain on the VPS.
  • Choose SLAAC when router advertisements are the provider’s documented source of addressing and default routes.
  • Choose DHCPv6 only when the provider explicitly operates DHCPv6 for the service.
  • Use family-specific client flags while diagnosing so a successful IPv4 fallback cannot hide an IPv6 failure.
  • Configure listeners and firewalls independently for IPv6; outbound connectivity does not expose an inbound daemon.

Once the provider allocation, persistent route, family-specific tests, listener and firewall all agree, IPv6 survives reboots and individual Linux tools can be directed to use it predictably.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More quests from Patch Notes

  1. How to Set Up a RedM (RDR2) Server in 2026: License Key, txAdmin and server.cfg, Step by StepBlog11min
  2. Best RedM (RDR2) Server Hosting in 2026: Comparing Four Hosts on Slots, Memory and PriceBlog10min
  3. How to Host a Mindustry Server in 2026: server-release.jar, Port 6567 and the Commands That MatterBlog7min
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.