Skip to main content

All Questions

Filter by
Sorted by
Tagged with
3 votes
1 answer
3k views

Why is Linux policy-based routing (PBR) not working for ping?

First of all, it seems as if this question is about Linux, but it seems to me that it is about basic routing concepts. I happen to have the following configuration: What I am trying to do is to ...
Tedpac's user avatar
  • 33
2 votes
1 answer
570 views

How to force `ip route get` to ignore a specific device?

How can I do ip route get, but force it to ignore a specific device? When I start my VPN, I run ip route get <vpn_server_ip> to determine what interface to use to connect to the VPN. Then I add ...
Vinicius Fortuna's user avatar
0 votes
1 answer
97 views

Routing between two networks

Basically I would like to know what should I do to connect two PCs in different networks and make them to see each other. The diagram is like the following linux-pc-1-1 (192.168.0.2 eth0) <---> (...
arthur.afarias's user avatar
0 votes
1 answer
2k views

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 ...
Alfred Balle's user avatar
0 votes
2 answers
119 views

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 ...
tuntap's user avatar
  • 161
0 votes
1 answer
2k views

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, ...
Tomer's user avatar
  • 13
0 votes
2 answers
508 views

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 ...
Tomer's user avatar
  • 13
0 votes
1 answer
696 views

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 ...
user1501127's user avatar
0 votes
1 answer
318 views

routing multiple IPs on a single bond device - debian linux

I'm using linux server with nginx and additional IP-addresses for various web-sites. It has main eth0 device with ipv4 (xx.xxx.210.245) and ipv6 (xxxx:xxxx:xxxx:xxxx:xxxx:ffff:6189:d2f5) and bond0 (xx....
WebSurfer's user avatar
0 votes
0 answers
294 views

How to set up a Linux gateway for multiple WAN networks?

I have a network with the following IPv4 and IPv6 addresses: eth0 Link encap:Ethernet Hardware Adresse 30:85:a9:42:3e:60 inet Adresse:109.2xx.239.145 Bcast:109.2xx.239.255 Maske:255.255....
SmileMZ's user avatar
  • 131
0 votes
2 answers
4k views

Failed to ping through gateway which is not default gateway

I have the following network interface configuration, eth0: 192.168.78.1/24 eth1: 192.168.254.76/24 (Gateway 192.168.254.1) eth2: 192.168.253.131/24 (Gateway 192.168.253.1) where both gateways have ...
Amrit's user avatar
  • 101
1 vote
1 answer
420 views

Special setup for a linux server to route to itself

I've got two linux servers in question. When one server initiates a request for a specific IP address that the other server has, I would like the initiating server to route the request back to itself ...
David's user avatar
  • 444
10 votes
1 answer
34k views

Static route without knowing the nexthop (linux)

I have an eth3 interface in a linux router, with an adsl modem. This adsl modem is in bridged mode, so the public IP is assigned to eth3 (say 11.22.33.44), and the modem is just not seen by my server. ...
alci's user avatar
  • 473