Questions tagged [iproute2]

iproute2 (ip) is a tool used to manipulate network configurations.

The ip command is meant to replace ifconfig/route commands on Linux. This command lets you perform advanced configurations that were not possible with ifconfig/route.

See:

242 questions
1
vote
2 answers

Gateway redundancy on a single subnet

I'm trying to discover if there are any methods to have more than 1 default gateway (in a fail-over strategy) on a single subnet. If one gateway goes down then I would like to have servers fail-over to a backup default gateway. I've looked into…
Justin
  • 11
  • 2
1
vote
3 answers

Using DNS in iproute2

In my setup I can redirect the default gateway based on the source address. Let's say a user is connected through tun0 (10.2.0.0/16) is redirect to another vpn. That works fine! ip rule add from 10.2.0.10 lookup vpn1 In a second rule I redirect the…
Oliver
  • 113
  • 1
  • 4
1
vote
1 answer

What's the difference between GRE and IPIP tunnel?

What's the difference between GRE and IPIP tunnel and which one is better for connecting two Linux machines?
Antonio
  • 720
  • 4
  • 13
  • 29
1
vote
1 answer

Linux networking and routing

I have 3 networks: 192.168.1.0/24 192.168.11.0/24 192.168.50.0/24 192.168.1.0/24 and 192.168.11.0/24 are connected to each other through an IPSec tunnel, and 192.168.11.0/24 and 192.168.50.0/24 are connected to each other in the same way. […
axon
  • 163
  • 3
1
vote
1 answer

iproute and nat across devices

I've got the following configuration: vlan123@eth0 - range 1.2.3.0/24, with 1.2.3.4 assigned to it br2000 - range 10.2.3.0/24 In the ip route I see: 10.2.3.0/24 dev br2000 proto kernel scope link src 10.2.3.1 In the iptables I rewrite the…
viraptor
  • 1,296
  • 6
  • 21
  • 41
1
vote
2 answers

Reported bandwidth usage differs between iproute2 and ifconfig

My group has a server set up to image our workstations using FOG. I was a bit curious to see how much bandwidth we were using. When I run ifconfig eth0, the TX/RX lines read RX packets:166949376 errors:0 dropped:0 overruns:0 frame:0 TX…
Ben Webber
  • 63
  • 1
  • 1
  • 7
1
vote
2 answers

getting linux kernel routing rules into version control

We currently use a number of linux routers, and currently a number of the team tend to jump into servers and change the routing rules when needed, and the auditing is becoming incredibly tedious. For all other server configs we store in a git…
bobinabottle
  • 579
  • 2
  • 7
  • 19
1
vote
1 answer

Linux split access (multiple internet connections w/ load balancing)

Short story: I've got a faulty cisco 1811 on my hands. It's a dual wan fixed configuration router. I had it setup with route maps to do load balancing. It works but every couple of hours it shits itself and needs rebooting. I need to take it out of…
Mike
  • 196
  • 1
  • 2
  • 13
1
vote
0 answers

network namespace with veth bridge not working - ICMP sent but no reply

I'm attempting to achieve a somewhat standard bridged netns setup with a veth pair, with one end in the ns and the other on the bridge : iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE iptables -A FORWARD -i eth0 -j ACCEPT iptables -A FORWARD…
simonw
  • 35
  • 6
1
vote
1 answer

VPN gateway in custom route table fails

My goal is configure a container behave as a router which load balances over a number of VPN connections. To do this I'm probabilistically marking initiating packets with: iptables -I PREROUTING -t mangle -j CONNMARK --restore-mark iptables -A…
simonw
  • 35
  • 6
1
vote
0 answers

How to make Wireguard and Tasilscale coexist on the same machine?

Seems that restarting the wg service always creates a routing table with higher priority than Tailsales which results in the inability to. connect to the machine via Tailscale until both services are stopped, firewall rules are flushed and services…
dzhi
  • 800
  • 3
  • 10
  • 26
1
vote
1 answer

Ubuntu 22.04 Jammy netplan goes missing

I would like to know if anybody experienced this. I am running the server cli version of Ubuntu 22.04. After running apt, I see a message saying to run apt autoremove. (I did this) I also got a message about a kernel update and to reboot (I…
Edwin Drood
  • 11
  • 1
  • 3
1
vote
1 answer

Linux with 2 Interface, ping secondary interface fault

I have ubuntu 20.04 server with 2 interfaces / eth0:94.101.177.244 eth1:94.101.176.149 Eth0 is work well and When i ping from server to out with eth1, it success. But when i ping from pc eth1, it fails. ~$ ip route show default via 94.101.176.1 dev…
Mahdi
  • 61
  • 4
1
vote
0 answers

Multiple DHCP NIC and local LAN - Debian, Proxmox

tl;dr: How can i get 3 NIC to route, backup/failover and communicate together? I got a proxmox server with 3 NIC vmbr1: company lan - dhcp (engineering department) vmbr2: robotics network (static) vmbr3: company lan - different subnet (business…
1
vote
0 answers

Two instances of Dante proxy server with two interfaces

I'm running 2 instances of Dante server on my Linux machine, one of them is called danted which is supposed to connect me to the internet through the ethernet cable and the other is sockd which is supposed to connect me through an OpenVPN…
Shayan
  • 85
  • 8