Quick wins for a faster PC:
Repair Windows errors before they cause bigger problemsFix Now →Scan for outdated or missing drivers - takes under a minuteDriver Scan →iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more
Antihost offers Linux VPS plans with full root access, unlimited traffic on a 1 Gbps port and a 14-day free trial.
Use iproute2’s ip command to inspect and change every major part of a Linux VPS network: device state, addresses, routes, policy rules, neighbors, namespaces and tunnels. The changes take effect immediately in the kernel, but most are runtime-only. The safe workflow is to inspect first, change one layer at a time, verify the kernel’s decision, and then encode a tested configuration in the network manager used by your distribution and VPS provider.
What iproute2 manages
iproute2 is the standard Linux networking toolkit. Its central interface is ip, which shows and manipulates routing, network devices, interfaces and tunnels. Unlike a single-purpose configuration utility, it exposes the kernel’s networking objects directly.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
| Object | Main command | What it controls |
|---|---|---|
| Link | ip link |
Physical or virtual device state, MTU, MAC address, and device creation or deletion |
| Address | ip address |
IPv4 and IPv6 prefixes assigned to a link |
| Route | ip route |
Where packets go and which next hop or interface they use |
| Rule | ip rule |
Which routing table is consulted for a packet |
| Neighbor | ip neigh |
ARP (IPv4) and neighbor discovery (IPv6) cache entries |
| Socket diagnostics | ss |
Listening services, established connections and protocol state |
| Namespace | ip netns |
Separate network stacks for containers, tests or tenants |
| Tunnel | ip tunnel and link-type commands |
Encapsulated or virtual links such as GRE, VXLAN or WireGuard-related interfaces |
Keep the layers separate. A device can be administratively down even when it has an address, and an address can exist without a usable route. A correct route can still fail if neighbor resolution or the destination service is broken.
Before changing a production VPS
- Use an account with
sudoor root privileges for changes. Read-only inspection normally works as an unprivileged user. - Keep your current SSH session open while changing the management interface, address or default route. Open a second session if possible.
- Confirm the provider’s interface name, assigned addresses, gateway, prefix length and whether the gateway is on-link. Do not assume the device is called
eth0; modern VPS images commonly use names such asens3. - Have the provider’s console or out-of-band recovery method available before testing a remote network change.
- Record the current state so you can undo a temporary change:
ip -br link
ip -br address
ip route show
ip rule show
The commands in this article alter the running kernel state. They are useful for testing and emergency repair, but they do not by themselves create a durable configuration for every Linux distribution.
#1 Best Overall
- Powerful Turbo Fan:CAGIWIRU Electric Air Duster have reached speed up to 130000RPM,Can efficient remove dust and debris.With LED light and Three Adjustable Speed to meet with different cleaning tasks.
- With Attached USB C Fasting Charging cable.Charing 3 hours,Enjoy up to 240 minutes of use on the lowest setting, For third speed can use for 25mins.with four charging options to meet with your needs.
- Wide Application: attached 5 different nozzles,making it suitable for a variety of scenes, such as car,pet, pc, keyboards, and other electronic devices. It also serves for office and home clean duster.
- Handy Design & Portable:Cordless air duster electric nozzle is Light weight and small size, design and comfortable to hold and space saving, convenient to carry around. You can put it in your room or inside the car without taking up space.
- Economical &Reusable: Built durable materials with a long-lasting battery,our CAGIWIRU air duster it's a sustainable alternative to disposable air cans.
Inspect interfaces and addresses
Get a compact inventory
The brief forms are convenient on a VPS because they put one link or address per line:
ip -br link
ip -br address
A typical result shows a device name, its administrative and operational state, and its hardware address. The address output lists IPv4 and IPv6 prefixes attached to each device. For full details, use:
ip link show
ip address show
Look for the provider-facing interface, loopback (lo), and any virtual interfaces created by containers or VPN software. The flags and state distinguish an interface that is administratively down from one that is up but has no carrier or peer.
Bring a link up or down
Link state and addressing are separate operations. To activate a device temporarily:
sudo ip link set ens3 up
Replace ens3 with the actual device name. To disable it:
sudo ip link set ens3 down
Bringing a link up does not assign an address or install a route. Conversely, deleting an address does not necessarily bring the device down. The ip-link(8) manual documents additional link attributes, including MTU and creation, deletion and modification of virtual devices.
The Tool Desk
Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →Changing the MTU on a provider interface can break packet delivery when the upstream network does not support the new size. Change it only when the provider or tunnel design requires it, and test both large and small packets afterward.
Rank #2
- Screen Cleaner is Your Screen’s New Bestfriend! - EVEO is proud to present a screen cleaner that’s perfectly suited for your TV. Meet your new screen cleaner, computer screen cleaner, laptop cleaner, iPad cleaner, Macbook,tv cleaner or any other electronic device. Our screen cleaner spray and wipe along with the included plush microfiber cloth, easily removes dust, fingerprints & other smudges on the screen’s surface. Clean effectively for a streak-free screen
- Gentle on your Screens - Our screen cleaner spray and wipes is compatible to be used even for the most sensitive LCD, LED, CRT, and OLED screens in proper use. Be at ease knowing that this product is compatible with all the major brands: LG, SONY, Samsung, Sharp, iPad, iPhone, Android screens, Kindle, PC monitors - we’ve got you covered! Can be used as LCD screen cleaner, tv cleaner, smart tv screen cleaner, and more
- Premium Super Soft Plush Microfiber Cloth - Included in this efficient screen cleaning kit. This screen cleaner spray and wipe has our signature plush microfiber cloth specially designed to comply with screens and monitors and leave them streak-free. Has been shown to effectively absorbs stubborn stains, zero streaks, and no fiber shedding. Always use this together with our screen cleaner for the best results
- Easy-to-Use Screen Cleaner Kit + microfiber cleaning cloth - The EVEO Screen Cleaning Kit will easily be your new favorite tool when it comes to taking care of the things you love most, quick and easy solution for a streak-free screen. Simply screw on the sprayer gun on the screen cleaner bottle. Spray the cleaning liquid onto the microfiber cloth, then wipe the screen until desired cleanliness & shine is achieved.
- Quality Screen Care Kit Worth Purchasing - Enjoy a convenient Screen Cleaner anytime, anywhere you need it. Your satisfaction is our top priority. We stand behind the quality of our products and that’s why, you shouldn’t be worrying at all. We manufacture the Best Screen Cleaner. and can be used for laptop cleaning kit, laptop screen cleaner, tv screen cleaner for smart tv. MacBook screen cleaner, monitor cleaner or screen cleaner spray for electronic devices with microfiber cleaning cloth
Add, remove and inspect IP addresses
Assign an IPv4 address temporarily
sudo ip address add 192.0.2.10/24 dev ens3
ip address show dev ens3
The prefix length is part of the configuration. /24 means a 255.255.255.0 network; it is not interchangeable with a host route such as /32. Use the prefix supplied by your VPS provider. Documentation examples often use the reserved TEST-NET-1 address 192.0.2.10/24; do not use that address on the public Internet.
Remove an address
sudo ip address del 192.0.2.10/24 dev ens3
Specify the same prefix and device used when adding it. To remove all addresses of a family from a device, inspect carefully first; broad deletion can disconnect the VPS.
IPv6 addresses
The same subcommand handles IPv6:
sudo ip -6 address add 2001:db8:1234::10/64 dev ens3
ip -6 address show dev ens3
IPv6 commonly has link-local addresses beginning with fe80::. They are required for neighbor discovery and are scoped to a link; do not treat them as globally routable addresses. Use ip -6 route show and ip -6 route get 2001:db8::1 when diagnosing IPv6 rather than relying on IPv4 output.
Inspect and change routes
Read the current routing table
ip route show
ip route show table main
ip -6 route show
Normal routes are inserted into the main table (ID 254) unless another table is specified. A connected route is usually created when an address is assigned. A default route, written as default via GATEWAY dev DEVICE, handles destinations that have no more-specific match.
Add or replace a route
sudo ip route replace 198.51.100.0/24 via 192.0.2.1 dev ens3
ip route show 198.51.100.0/24
replace is idempotent: it creates the route when absent and updates it when present. That makes it safer in scripts than an unconditional add, which fails if an identical route already exists. The example uses reserved TEST-NET-2 addresses and is illustrative only.
To install a default gateway temporarily:
sudo ip route replace default via 192.0.2.1 dev ens3
Some providers require the gateway to be reachable through a connected prefix; others use a host route or special on-link arrangement. Follow the provider’s documented topology. Installing a gateway that is not reachable at layer 2 can leave the table looking correct while packets never leave the VPS.
Delete a route
sudo ip route del 198.51.100.0/24 via 192.0.2.1 dev ens3
Copy the route’s attributes from ip route show when deleting. Removing the default route on a remote VPS will usually terminate new connections.
Crashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minutePC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11Rank #3
- 【Large size】:Measuring 800 x 300 mm/ 31. 5×12 inches, which is wider and taller than others. Large mouse pad can perfectly fit your keyboard and mouse of any size, and there is also ample space for peripherals such as phones, tablets, etc.
- 【LED backlight mouse pad】:Blade Hawks RGB mouse pad provides 7 static modes and 7 dynamic modes will give you the options you are looking for. Power-off memory function remembers the last lighting mode you selected. The super glow fiber Chroma will give you a colorful gaming setup that you want.
- 【Anti-slip rubber base】:Made from Natural rubber, this gaming mousepad will firmly grip your desktop, allowing you to enjoy the ultimate precision in the games you are most passionate about. It also comes with a texture that enhances this ability even further.
- 【Smooth and waterproof surface】: Micro-textured cloth surface, for extremely precise mouse control and a smooth movement. When liquid splashes on the gaming mouse pad, it forms water droplets and slides down. Will not delay your work or gameplay.
- 【Plug and play】: This mouse and keyboard pad is powered by USB, plug and play, no driver required. One button control light modes. Press one time to change the lighting mode, press twice to change the brightness, press and hold about 3 seconds turn ON/OFF.
Ask the kernel which path it will use
ip route get 1.1.1.1
ip route get 8.8.8.8 from 192.0.2.10
ip -6 route get 2001:4860:4860::8888
ip route get performs a lookup using the kernel’s routing rules and reports the selected device, source address and next hop. It is more useful than merely reading a table when multiple routes, rules or source addresses are present. The lookup does not send a packet and therefore cannot prove that the remote host, firewall or service is reachable.
Use policy routing for multiple paths
Standard routing consults the main table and chooses the longest matching prefix, then the route metric when applicable. Policy routing is appropriate when that is insufficient—for example, two uplinks, source-specific egress, a VPN that should carry only selected traffic, or separated tenant paths.
Understand the default rule chain
ip rule show
At startup Linux installs three default rules:
| Priority | Table | Purpose |
|---|---|---|
| 0 | local (255) |
Routes to local addresses, broadcast and local host destinations |
| 32766 | main (254) |
Normal administrator-managed routes |
| 32767 | default (253) |
Fallback table, normally empty |
Rules are processed in ascending priority order; a lower numeric value runs first. A custom rule that accidentally precedes the local rule can produce surprising behavior, so leave the local rule intact and choose explicit priorities for custom entries.
Build a source-specific table
The following pattern creates a named table for a second provider-facing interface and sends traffic sourced from its address through that interface:
Free tools Windows power users keep installed
One-click scans. No signup required.
sudo sh -c 'echo "100 isp2" >> /etc/iproute2/rt_tables'
sudo ip route add 203.0.113.0/24 dev ens4 src 203.0.113.10 table isp2
sudo ip route add default via 203.0.113.1 dev ens4 table isp2
sudo ip rule add from 203.0.113.10/32 priority 100 table isp2
ip rule show
ip route show table isp2
ip route get 8.8.8.8 from 203.0.113.10
The network and addresses above use reserved TEST-NET-3 values. Substitute the real prefix, source address, gateway and device supplied for your VPS. The table needs a connected route and a default route; without the connected route, the gateway may not be considered reachable. In more complex designs, selectors can match source or destination prefixes, incoming or outgoing interfaces, firewall marks, UID ranges, protocols and ports.
Remove a policy rule safely
sudo ip rule del from 203.0.113.10/32 priority 100 table isp2
sudo ip route flush table isp2
Verify the exact selector and priority before deleting. A rule with a different priority or mask is a different object. Flush only a dedicated custom table, never the main table, unless you have console access and a recovery plan.
Make a configuration persistent
Runtime changes disappear when the VPS reboots, when an interface is recreated, or when a network service reloads its own configuration. iproute2 manuals describe kernel operations; they do not prescribe one persistence mechanism for every distribution or provider.
Rank #4
- 【Softer and More Comfortable】Vaydeer wrist rest has unique diamond pattern, which is the combination of softness and aesthetics. The materials of wrist rest are improved into higher quality memory foam and covered with silky smooth lycra. The computer wrist rest makes you as comfortable and cushiony as like rest your wrists on clouds.
- 【Ergonomic Wrist Saver】The wrist rests for keyboard and mouse comes with a 17.32×3.15×0.83 inch keyboard wrist pad and a 5.94×3.15×0.83 inch mouse wrist support. Based on ergonomic design, the unique concave shape is the perfect fit for your wrist joints. The wrist rest pad fits most computer keyboards and laptops, improve hand and wrist posture, release your wrist and arm stress.
- 【Non-Slip Rubber Bottom】Featuring an anti-skid silicone base on the bottom, this wrist keyboard support stays firmly in place on your desk, preventing the padding from sliding around, ensuring stable and consistent wrist support during extended computer sessions.
- 【Better Experience & Pain Relief】Our keyboard arm rest is beneficial to alleviate the soreness caused by direct contact and friction between your arm and a hard desk surface, reducing the risk of wrist fatigue or carpal tunnel. The soft texture of memory foam can evenly distribute the pressure around your wrists and provide good support with just enough give.
- 【Helpful in Multiple Scenarios】Whether you're working, studying, writing, typing, gaming, this keyboard and mouse rest combo is an essential accessory to add comfort and support to your hands and wrists. It’s also a great gift for men, women, family, friend, coworker, gamer, teacher, etc.
After interactive testing, translate the working state into the mechanism used by the image:
- NetworkManager connection profiles, where NetworkManager manages the interface
- systemd-networkd unit files, where networkd owns links and routes
- Distribution-specific interface configuration, such as the files or declarative system used by that release
- The VPS provider’s metadata or startup configuration when the provider regenerates networking at boot
Do not run an ad-hoc boot script in parallel with a network manager that will overwrite it. Define addresses, gateways, route metrics, policy tables and rules in one owner’s configuration, then reload or reboot during a maintenance window. Confirm persistence by checking the state after a controlled restart.
Remove temporary addresses and routes that were only needed for a maintenance window. Leaving an extra default route or address can change source-address selection and cause asymmetric paths.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Diagnose failures by layer
Link and counters
ip -s link show dev ens3
Packet and error counters help distinguish a device problem from a routing problem. If the interface is down, activate it first and check provider-side status. Rising transmit errors, drops or carrier problems point to a lower layer than the routing table.
Do these 3 things before closing this tab:
1Scan for outdated or missing drivers - takes under a minute2Clear out junk files and repair common Windows errors3Fix the driver behind crashes, sound loss and screen glitchesAddressing
ip address show dev ens3
ip -6 address show dev ens3
Confirm that the expected address and prefix are present on the intended device. An address on the wrong interface can make a route appear valid while replies leave through an unintended path.
Routes and rules
ip route show table main
ip rule show
ip route get DESTINATION
Replace DESTINATION with a real address. Check the selected source, interface, gateway, table and rule priority. For policy routing, repeat the lookup with from SOURCE; an unqualified lookup may follow a different rule path.
Neighbor resolution
ip neigh show dev ens3
ip -6 neigh show dev ens3
An INCOMPLETE or failed neighbor entry indicates that the VPS cannot resolve the next hop at layer 2. Check the gateway, prefix, virtual-network requirements and provider configuration before changing application settings. A stale entry can be removed with sudo ip neigh del ADDRESS dev ens3, but do so only when you understand why it is stale.
Best Value
- 【No Drill Mounted】Cable management tray can be assembled in as little as 3 minutes or less-simply. Side clips easily clampe the edge of desk, pass through the holes on the sides, and secure excess cables with baskets. Desk cable management supports inward or outward installation to meet your needs in different scenarios, and provides you with great convenience when collecting and organizing wires.
- 【Rubber Pad Protects Desk】Wire organizer under desk built-in soft rubber pads on the clamp protect your desk from scratches, so you will not damage your furniture or office.
- 【Sturdy and Beautiful】Cord management under desk is made of high-quality carbon steel and holds about 15 lbs. The wire basket has 2 holes on each side of the tray to enable your cables to pass freely. Cable baskets are suitable for desk thickness use from 0.4" to 2.4".
- 【Space Saving & Keep Organized】Desk cable management tray holds all your power cords, outlet strips, USB hubs and computer transformers hidden from your feet, and the data cables will not enter the vacuum cleaner to keep your desk clean and tidy. Desk wire organizer is also suitable for use in the kitchen and outdoors.
- 【Reduce Safety Risks】Cable tray under desk keeps all plugs away from your kids, no more worry about tripping. Using 2 holes wire tray saves extra space, helps you easily cabling and wire protection. The mesh design is not easy to accumulate dust, but avoids safety accidents caused by messy wires.
Listening services and sockets
ss -lntup
ss -ntup
If the route and neighbor state are correct but a port is unreachable, confirm that a process is listening on the expected address and family. Then inspect host and provider firewalls. A service bound only to 127.0.0.1 will not accept connections arriving on the VPS address; a service bound only to IPv4 will not answer IPv6 clients.
Recommended Free Tools
Advanced objects you may encounter
Network namespaces
Namespaces provide isolated interfaces, addresses, routes and rules. They are useful for container networking and controlled tests. List existing namespaces with:
ip netns list
Commands can be run inside a namespace with ip netns exec NAME COMMAND. A route visible in one namespace is not automatically visible in another, so always state which namespace you are inspecting.
Virtual links and tunnels
iproute2 can create and configure virtual Ethernet pairs, bridges, VLANs, bonds and tunnel devices. The exact syntax depends on the link type. Inspect the resulting object with ip link show, assign addresses with ip address, and add routes only after both tunnel endpoints and link state are verified. Encapsulation reduces effective MTU; test packet sizes and account for that overhead in the persistent configuration.
Use idempotent commands in automation
Scripts should be safe to run more than once and should verify assumptions before making destructive changes. Prefer ip route replace for managed routes, explicit table names for policy routing, and a check that the target device exists:
DEV=ens3
ip link show dev "$DEV" >/dev/null || { echo "missing device: $DEV"; exit 1; }
sudo ip link set "$DEV" up
sudo ip route replace 198.51.100.0/24 via 192.0.2.1 dev "$DEV"
ip route get 198.51.100.10
For addresses, test whether the exact prefix is already present before adding it, or use the configuration system that owns the interface. Log the before-and-after output, and include a rollback command for every temporary change.
Quick Recap
A safe end-to-end workflow
- Identify the device. Run
ip -br linkand confirm the provider-facing name. - Record the baseline. Save
ip -br address,ip route showandip rule show. - Change link state only if needed. Use
sudo ip link set DEVICE up. - Assign the address. Add the provider-approved IPv4 or IPv6 prefix with
ip address add ... dev DEVICE. - Install or replace routes. Use the correct gateway, device and table; avoid deleting the existing default route until the replacement is verified.
- Test the kernel decision. Run
ip route get DESTINATION, and includefrom SOURCEfor source-based designs. - Check neighbors and sockets. Use
ip neighandssto separate next-hop failure from an application or firewall failure. - Persist the result. Encode the tested state in the distribution/provider network manager rather than relying on the interactive commands.
- Re-test after reload or reboot. Confirm addresses, rules, routes, neighbor resolution and service reachability from a separate connection.
Common mistakes and recovery
| Symptom | Likely layer | Action |
|---|---|---|
| SSH stops responding immediately after a change | Link, address or default route | Use the existing session or provider console; restore the recorded device state and route before further testing. |
Address appears in ip address, but Internet traffic fails |
Route or gateway | Run ip route get, verify the connected prefix and inspect the neighbor entry for the gateway. |
| Only traffic from one source address fails | Policy rule or asymmetric return path | Run a lookup with from SOURCE; inspect rule priority and the source-specific table. |
| Route works until reboot | Persistence | Move the tested settings into the active distribution/provider network manager. |
| Port is unreachable although the route is correct | Service or firewall | Check ss -lntup, bind addresses, host firewall rules and provider filtering. |
| IPv6 fails while IPv4 works | IPv6 address, route or neighbor discovery | Use the IPv6 forms of ip address, ip route and ip neigh; verify a usable IPv6 default route and service binding. |
Key distinctions to remember
- Temporary versus persistent: an
ipcommand changes the running kernel; your network manager must recreate it at boot. - Main-table routing versus policy routing: start with the main table; add rules and named tables only when destination-only routing cannot express the design.
- IPv4 versus IPv6: use family-specific inspection and remember that IPv6 link-local addresses and neighbor discovery are normal, not errors.
- One interface versus several: multiple uplinks require deliberate source selection, return-path symmetry and, often, policy rules.
- Inspection versus proof: a table dump shows configuration;
ip route getshows the selected path, whileip neigh, counters andssexplain whether the path can actually deliver traffic.
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.

