2022 Developer Survey is open! Take survey.

Questions tagged [iproute]

Questions that include employing tools of the IPROUTE2 Utility Suite, especially ip and tc.

Filter by
Sorted by
Tagged with
0 votes
0 answers
24 views

creating a lot of virtual ethernet devices using ip link add fails

I am trying to create a more than 100 ethernet virtual devices for a simulation. I am working with a virtual machine (x86 using qemu) and using a python script to achieve my goal. When creating the ...
user avatar
0 votes
0 answers
120 views

Routing problem shows this Error: Nexthop has invalid gateway

I am trying to route some traffic over a VPN (to certain IPs) and other via my normal connection. To do this I am trying to add a static route to make traffic to some IPs bypass the VPN tunnel. Very ...
user avatar
  • 151
0 votes
0 answers
16 views

how to set default gateway after ifconfig. part 2

I have an android emulator on bridge and the network is set up via "ifconfig eth1 192.168.41.100" The bridge is 192.168.41/24 and gateway is 192.168.41.1. It works well (it is essentially a ...
user avatar
0 votes
0 answers
14 views

Issue with adding a route to a sub-network card

I'm trying to add any route to a sub-network card eth0:1. When I'm running "ip route list" then this command prints the saved rule for eth0 not for eth0:1. Why ? How to solve that? ip route ...
user avatar
0 votes
0 answers
32 views

Why doesn't MPTCP use an interface that was originally down?

I am trying to setup an MPTCP connection between 2 VMs created using Vagrant with libvirt and the AlmaLinux 8 box from Vagrant Cloud. I have 2 interfaces on each VM setup as MPTCP signal endpoints, as ...
user avatar
  • 173
1 vote
1 answer
52 views

How to config static route from two subnets to firewall

Well, one picture for thousand words. 3 private subnets: +-----+ +-----+ | PC2 | | PC3 | ...
user avatar
  • 918
0 votes
1 answer
95 views

Reply on same interface as incoming, but with dynamic IP addresses

I have a system with two network interfaces, both of which are connected to the internet with different IP addresses. I would like responses to incoming requests to be sent over the same interface ...
user avatar
  • 1,297
1 vote
1 answer
46 views

How to do "ifconfig lo multicast" using IPROUTE2 / ip command

I am trying to figure out how to add the "MULITCAST" parameter to the lo interface using the "ip" command. I already have a netplan config which adds the multicast route to my lo ...
user avatar
0 votes
1 answer
17 views

Compare routes between Linux hosts

I have groups of hosts which require specific routes per group. Every now and again routes are modified, and I would like to write a script which can check for differences between hosts on the same ...
user avatar
  • 77
1 vote
1 answer
37 views

Linux picking wrong source IP

I have an EC2 instance running on a k8s cluster. The instance has three three interface cards. 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 ...
user avatar
0 votes
1 answer
90 views

Unable to use fwmark on Debian 11 (bulleyes)

I have a recipe I already use on many cases, but this time doesn't works on Debian 11 (kernel 5.10.0-10-amd64) my setup is basically an internal interface eth0 for a RFC1918 LAN, and two external ...
user avatar
  • 454
0 votes
1 answer
40 views

IP routes changing without warning

PROBLEM I am using ip route to set up routing tables for a network. Everything is working great, but after a short amount of time (minutes) I lose some of my connections. When I look at my ip route, ...
user avatar
  • 113
0 votes
0 answers
28 views

How to add route that does not depend on network reachability?

I have a pptp server on Centos with Mikrotik routers connecting to it as clients, and I need to add routes between them to enable LAN-to-LAN communication. I have /etc/ppp/ip-up.local script like this:...
user avatar
  • 43
3 votes
1 answer
96 views

What constraints (if any) are there on network interface names on linux

In https://stackoverflow.com/questions/24932172/what-length-can-a-network-interface-name-have, it was asked how long a network interface name could be (apparently 16 bytes). However, the answers to ...
user avatar
0 votes
1 answer
56 views

Which interface does a specific IP address will get routed over?

Is there a way to determine which netdev or IP link interface that a given IP address will route over … in bash/shell language? This is not about what an IP address is, given a network device name. ...
user avatar
0 votes
0 answers
46 views

IP link -show works but ip link up does not

li@ilak:~$ lsusb Bus 001 Device 014: ID 0bda:817f Realtek Semiconductor Corp. RTL8188RU 802.11n WLAN Adapter li@ilak:~$ sudo ip link set wlan0 this was acepted without error message (didnt know ...
user avatar
0 votes
0 answers
13 views

Best approach to internally load-balance tcp flows to dummy interfaces for traffic capture?

Background - I would like to horizontally scale a packet capture and analysis tool running on a Linux appliance. The capture uses two processes to capture and process the captured traffic. The raw ...
user avatar
1 vote
1 answer
52 views

virtual gateway iptables

I'm trying to setup kind of simple networking configuration, but I cannot wrap my head around this. My goal is to make LAN clients go via VPN, while having the possibility to reach the server itself. ...
user avatar
  • 115
0 votes
0 answers
109 views

Archlinux Ip Route configuration for wifi interface not connecting to Internet

I have configured my WLAN interface via wpa_supplicant. Right now, my WLAN interface got access to my local network (I can ping my gateway, and I can even connect through ssh to that IP), however, I ...
user avatar
  • 101
0 votes
0 answers
42 views

How can I make changes made using the ip command permanent?

ip link add link ens192 name ens192.11 type vlan id 11 ip addr add 10.11.0.12/24 dev ens192 ip route add default via 10.11.0.1 Those three lines are all I need to quickly setup networking on a Linux ...
user avatar
  • 93
0 votes
0 answers
345 views

Why does an IPv6 neighbour router status become STALE? How can I avoid it?

I have a VM on a host with bridged networking (hence, with its own MAC address). Both host and VM run CentOS. Their network is managed by simple /etc/sysconfig/network-scripts/ifcfg-enpXsY files. ...
user avatar
  • 7,487
0 votes
1 answer
42 views

Route to network via two different (bridged) interfaces

It is possible to have two different routes to the same destination network via two different interfaces? I have a network I want to reach: 10.0.0.0/24 from a host with multiple (bridged) interfaces, ...
user avatar
1 vote
0 answers
496 views

Mark a packets with iptables in order to make a source ip routing

I have a linux machine, which I use as a gateway and firewall. The linux machine (GW/FIREWALL) is connected to a device which allow internet connection (Router Aggregator), it has 2 IP addresses 172....
user avatar
  • 135
0 votes
2 answers
84 views

Why is there always a way for a packet to find the default route?

I have an interesting problem that I would like to understand more. This is my following rules list: # ip rule show 0: from all lookup local 32761: from all to 188.40.122.95 lookup vpn 32762: from ...
user avatar
  • 243
0 votes
2 answers
65 views

Can I sort the output of ip address?

I have a router with a few hundred network interfaces (most of which virtual, naturally). That means that the output of ip a shows very many lines which makes management and analysis difficult. ...
user avatar
  • 7,487
0 votes
1 answer
26 views

How to add ip rule after dockerd is up?

I want to add an ip rule that involves the docker0 interface. But docker0 does not exist until docker is up. ip rule will fail if docker0 does not exists. I could use a script that repeats until ...
user avatar
  • 179
0 votes
2 answers
171 views

How to add route without via / specifying the next hop IP?

I know that I can add route using ip route add default via 5.5.5.5 dev eth1 table 200 But what if eth1 is a wireless interface getting its IP via DHCP because I don't know the AP's IP before hand? ...
user avatar
  • 179
0 votes
1 answer
132 views

How many ipv6 addresses do I have?

I have a vps with both ipv4 address and ipv6 address configured. The "ip a" command has the output like: ... inet yyy.yyy.yyy.yyy/24 brd yyy.yyy.yyy.255 scope global eth0 ...
user avatar
  • 115
1 vote
1 answer
459 views

Why two bridged veth cannot ping each other?

I need to set up a network environment where two veth interfaces is attached to one bridge and they need to be able to communicate with each other. So I execute the following commands in a clean ...
user avatar
1 vote
1 answer
61 views

iproute2 ss - not showing process/pid information if user is not the same user as listening process?

Is it normal behavior, or a bug, that when I run ss -nltp, I only see the process/pid information if the user I am running ss -nltp as is the same user as the listening process? $ docker run -it --rm ...
user avatar
  • 23
1 vote
1 answer
226 views

How to configure a GUE receive tunnel in Linux for IPv6

I am trying to configure a GUE tunnel to receive IPv6 packets that contain GUE encapped IPv4 packets but I am having trouble de-encapsulating the packets. The IPv6 packets have a GUE encapsulated ...
user avatar
1 vote
1 answer
221 views

How to configure a transmit GUE tunnel using iproute2 for IPv6

I am trying add a transmit GUE tunnel with GRE as the header using IPV6 addresses in linux like this: ip -6 link add name gue1 type ip6gre remote $REMOTE_IPV6 local $LOCAL_IPV6 dev eth0 encap gue ...
user avatar
1 vote
1 answer
1k views

No route to host with routing to interface for specific port

I have a server A with a VPN configured to another server B. Currently, server A can ping server B by using the VPN address 10.12.0.1. I would like to route all HTTPS traffic via server B and let ...
user avatar
1 vote
1 answer
112 views

Subnets not ping eachother on strongswa vpn tunnel

AOA, I have two clients one remote and other is local but both on same LAN i.e (192.168.137.0/24), while the UBuntu servers in which strongswan is implemented are connected to each other with ethernet ...
user avatar
0 votes
0 answers
31 views

Setting up an IPv6 router with two interfaces, why is only my config's LAN -> 'NET access not working?

I'm setting up a linux firewall/router on Fedora. I'm working on getting the IPv6 working. My simple network looks like this 'NET | | ATTMODEM | | | enp2s0 | 2600:yyyy:yyyy:zzzz::53 | ...
user avatar
0 votes
2 answers
212 views

How can I route internet connection from isolated interface with iproute2?

I am trying to create a dhcp server with iproute2 and the DHCP part is working fine, yet the clients don't get any internet. The host is getting internet from 192.168.150.0/25 network and functions as ...
user avatar
  • 89
1 vote
0 answers
54 views

Network bandwidth aggregation

Lets say I have access to two different networks: A and B. My device has two different network interfaces N1 and N2. A has a bandwidth of 5 mbps B has a bandwidth of 3 mbps I want to combine these two ...
user avatar
1 vote
0 answers
25 views

Use specific IP from list of multiple IPs as the source IP for a Solaris host

My solaris server host webhost has many IP addresses a few are listed below. $ ifconfig -a lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1 inet 127.0....
user avatar
  • 297
0 votes
0 answers
33 views

setting up ip route to access internet via a node connected to internet directly

I have 3 nodes connected via a router one of the machine is connected to internet via a different nic interface . Other machines cannot be connected the same way as the machine that is currently ...
user avatar
1 vote
2 answers
196 views

How to accommodate a VPN client, a VPN server and regular traffic at the same time on a single Linux box

What I want to achieve I am contemplating the following setup on my Linux box (a Raspberry Pi v3 under a recent brew of Raspberry Pi OS): A VPN client for all the outgoing connections by default A ...
user avatar
  • 119
0 votes
0 answers
166 views

Understanding output of iptables -L, ip rule show (policy based routing), and ip route with multiple tables

I'm looking for is a good explanation of how to interpret the output of iptables -L and ip rule show in conjunction with the ip route show table <table_name> commands. I am struggling to ...
user avatar
3 votes
2 answers
616 views

How to share wireguard with namespace?

I have a wireguard connection (interface name wg0) to a trusted machine inside an admin network at $DAYJOB. Usually, I don't want to use wg0 for all my traffic, only for IP addresses in the 172.16.0.0/...
user avatar
  • 1,171
1 vote
2 answers
2k views

What's the meaning of these ip route rules

There are some IP route rules in an old code, but I don't know the meaning of them: ip route flush table 100 ip rule add fwmark 1 lookup 100 ip route add local 0.0.0.0/0 dev lo table 100
user avatar
0 votes
1 answer
60 views

How to send a traffic from Linux machine A to linux Machine C Via Linux Machine B, when all linux machine are in same network?

I have 3 VMs A,B and C which are running on Ubuntu. Those VMs are connected like follows :- A (eth0/10.1.1.10) <------>(eth0/10.1.1.20)B(eth1/10.1.1.30)<------------>(eth0/10.1.1.40)C ...
user avatar
0 votes
0 answers
48 views

Ping same server with different interfaces using different ports

In my SoC imx6 I have two 4G modems using two different operators. I would like to give a score to each one so I can detect the best interface for my critical application. I decide to use a small ...
user avatar
2 votes
1 answer
502 views

iptables forward some devices to different interfaces based on source IP

I'm trying to expand further on a recent question I had asked here (and was helped) based on this tutorial: https://www.instructables.com/Raspberry-Pi-VPN-Gateway/#step5. Using a Raspberry PI as a VPN ...
user avatar
  • 93
1 vote
1 answer
225 views

Can’t reach the whole subnet

I hope someone can help me. This server issue I have is driving me crazy! So I have the following configuration: INTERNET ...
user avatar
  • 11
2 votes
1 answer
183 views

Why does this command break networking? ip rule add from 0.0.0.0/8 unreachable

By chance I found out that ip rule add from 0.0.0.0/8 unreachable breaks networking. Not even ping on the same LAN works. I don't understand why. I remember that the 0.0.0.0/8 IPv4 address block is ...
user avatar
  • 671
11 votes
2 answers
6k views

The difference between ip link down and physical link absence

In Linux, is there any difference between after-ip link down-condition and real link absence (e.g. the switch's port burned down, or someone tripped over a wire). By difference I mean some signs in ...
user avatar
  • 605
7 votes
2 answers
736 views

iproute2: How to display the TYPE of a network devices?

With iproute2 userspace tools one can display the network devices using the ip commands verb link show( sometimes shortened to l sh ). The output generate does not display the TYPE of link/interface ...
user avatar
  • 517

1
2 3 4 5 6