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
0
votes
1 answer

How do I load balance outgoing connections with iptables and iproute2?

I have a server behind two public facing gateways INTERNET | | GW1 GW2 | | SERVER GW1's IP is 192.168.w.x, MAC aa:bb:cc:dd:ee:ff GW2's IP is 192.168.y.z, MAC ff:ee:dd:cc:bb:aa # note: w != y and I'm trying to load balance outgoing…
pooch
  • 1
  • 3
0
votes
1 answer

ip route and rule on boot

I'm trying to have the following rule and route added automaticaly on boot. Adding them manually make things work. I'm running CentOS. ip rule add from 10.1.10.10/10 dev my-tun table my-table ip route add default via 100.1.1.1 dev eth0 table…
Alfred Balle
  • 409
  • 3
  • 9
  • 22
0
votes
0 answers

Packets routed through wrong interface

This is a follow up on ip rule shouldn't beat ip route. I've configured everything as per my last question. But... Running: $ ip route get 10.10.10.10 from 10.0.0.13 iif test-interface 10.10.10.10 from 10.0.0.13 via 10.10.10.1 dev eth1 cache iif…
0
votes
0 answers

Mystery persistent /8 on routing table

I have the below route listed, that is persistent over restarts. "route -n" 69.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth0 and "ip route" 69.0.0.0/8 dev eth0 proto kernel scope link src 69.1XX.XXX.X7 metric 100 While…
0
votes
0 answers

how to add multiple default routes ubuntu 16.04 lts

I have the following commands and outputs Here are my current commands (this work fine on RHEL system but not on ubuntu) ip route add default via 10.1.1.1 dev eth0 tab 1 ip route add default via 10.1.1.1 dev eth1 tab 2 ip route add default via…
uberrebu
  • 503
  • 6
  • 17
  • 36
0
votes
1 answer

Linux routes for point-to-point Ethernet network in presence of a default route

SOLUTION: There's a typo in the IP address on my laptop Ethernet interface (see the accepted answer). The following writeup is most probably proper setup. I'd like to communicate with Raspberry Pi (rpi) via point-to-point Ethernet between my laptop…
0
votes
2 answers

Split access from multiple uplinks

Our setting is as follows: +---------+ +------------+ / | | | Modem | / +-----------+------| Firewall|----+ Provider 1 +------- …
quimnuss
  • 155
  • 8
0
votes
2 answers

Why is the order of routing commands important in this case?

Why is the result different between this ip tuntap add dev tun1 mode tun ip link set up tun1 ip route add 1.2.3.4 via 192.168.0.1 dev eth0 ip addr add 10.0.0.1 peer 1.2.3.4 dev tun1 and this (last two commands switched place) ip tuntap add dev tun1…
tuntap
  • 161
  • 3
0
votes
1 answer

does the src field in an ip route entry have any effect on forwarding traffic?

does the src field in ip route have any affect on forwarding traffic? or is it only significant for output traffic? what is the significance of an ip route entry that specifies both dev and src, where src does not belong to dev (but rather to a…
Tomer
  • 13
  • 7
0
votes
2 answers

router's ip on subnet1 conflicts with identical host ip on subnet2

i'm trying to setup a linux machine as router for the following subnets: +--------------------------------------------+ host3 | router | …
Tomer
  • 13
  • 7
0
votes
1 answer

IP routing table with non unique ID?

Is it possible to have multiple routing tables with the same ID? the name of the table would still be unique. I cant find the information about this, seems is focusing on ip rule and add addr to the tables. The table list at /etc/iproute2/rt_tables …
user1501127
  • 103
  • 3
0
votes
1 answer

Linux IP-tables Forwarding loose Source IP on access.log

Team, We have configured IP tables with forwarding request coming on eth1(public IP x.x.x.x) interface to other server. We are able to forward all requests but problem is loosing origin public IP(Source IP of user) on server 192.168.254.X Please…
0
votes
1 answer

Routing issue with iproute2, two gateways and two network interfaces

I am trying to setup a layer 3 iptables firewall, with two interfaces. My firewall has two physical interfaces : eno0, connected to my ISP's gateway, and eno1, connected to my local network gateway. The network setup is described below: ISP…
0
votes
2 answers

Does each custom routing table (w/default gateway) need a link scope route?

My Centos machine has a custom routing table foo_table containing just a default gateway route: # ip route add default via 10.0.2.1 table foo_table # ip route show table foo_table default via 10.0.2.1 dev bond0.2 A policy rule routes all traffic…
Frode
  • 103
  • 6
0
votes
0 answers

Multi WAN ipv4 forward Ubuntu

I want to setup a dual ethernet ubuntu machine as Multi-WAN load-balance router with ipv4 forwarding and NAT for my internal network. I searched for some days now, but only found some tutorials how to setup load balancing or ipv4 frowarding. But…
Michael_mhr
  • 101
  • 2