Skip to main content

Questions tagged [route]

A route is the path through the network packets take in order to reach their destinations. The route command lets the user view and modify the IP routing table

Filter by
Sorted by
Tagged with
0 votes
1 answer
25 views

Setting up network manually, no dhcp, IPV4 only

I’m trying to configure ip (static, so without dhcp), there are some problems that I can't resolve by my self, because I do not understand it in a whole. Sorry if it is already answered, but as I said,...
anothereality444's user avatar
0 votes
1 answer
50 views

Isolated linux bridge interfaces can't ping neighbours

I'm trying to do a learning experiment with linux bridges. I wan't to create an isolated bridge on host without namespaces with the ability to debug interface connectivity. I want to be able ping ...
Dmytro Malovanyi's user avatar
0 votes
1 answer
37 views

The routing metric is changed after a while for eth0 and eth1, automatically

I'm working on an platform that NetworkManager is gracefully embedded into its image. There are two separate eth0, and eth1, along with a 4G modem, all of which work fine. We use NetworkManager to ...
SAP's user avatar
  • 11
0 votes
1 answer
54 views

ip route: no route to host

Straightforwardly, I've two inet devices: enp0s3 and enp0s9. enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether 08:00:27:f3:bf:35 ...
Jordi's user avatar
  • 325
0 votes
0 answers
18 views

Mixed Loopback/Interface UDP request

I'm not sure if this is the most correct spot for this question, if not please let me know and I'll move it. This is my set up: pihole running in a rootless podman container using slirp4netns. The ...
John's user avatar
  • 1
0 votes
0 answers
220 views

Linux IP routing source address selection

I've been trying to independently verify the answer to this stackoverflow question about how the Linux kernel assigns a source address to IP packets when the source doesn't request a specific source ...
jezza's user avatar
  • 138
0 votes
1 answer
59 views

Policy based routing cause NAT not to work correctly

echo "200 rj45" >> /etc/iproute2/rt_tables echo "201 WIFI" >> /etc/iproute2/rt_tables ip route add default via 192.168.5.9 dev eth0 ip rule add from 192.168.5.8/24 ...
Carve8851's user avatar
0 votes
0 answers
107 views

dhcpcd: set priority for link-local connections

I see that there is a metric keyword in the dhcpcd.conf (as explained e.g. https://unix.stackexchange.com/a/413036/47009), which allows me to set the routing priority for a given interface. However, i ...
umläute's user avatar
  • 6,472
0 votes
1 answer
499 views

How to route traffic from ethernet interface to another?

--------------------------------- | | | | -----> eth2 (WAN) --------> WG0-->------->-----> ...
user21379959's user avatar
1 vote
0 answers
65 views

Cause a script to execute when the default route is changed

I have 2 interfaces: the Ethernet (metrics 1) and 4G (metrics 2). When the first disappears the second is used, when the Ethernet comes back, the first one is used again. I would like to send a ...
Oleksa's user avatar
  • 151
0 votes
2 answers
93 views

How netstat is able to read route tables?

For my php containers if I need to detect the ip where ide listens to. I run: ip=$(netstat -rn | grep "^0.0.0.0 " | cut -d " " -f10) And I get the gateway IP. But for that I need ...
Dimitrios Desyllas's user avatar
0 votes
3 answers
109 views

Is checking /etc/hosts and /etc/resolv.conf sufficient to know that no server is trying to falsely represent itself as another?

Say I want to make sure that no malicious actor or process has made an attempt to falsely represent a legitimate web server with their own malicious server on Linux, anticipating that the user will ...
Govind Parmar's user avatar
0 votes
0 answers
115 views

Send notification when the network route changes

I have 2 network interfaces: ethernet enp2s0 with default metric 1 mobile enx0 with default metric 2 When ethernet goes down the metric changes vice versa and I am getting in systems notifications ...
Oleksa's user avatar
  • 151
0 votes
0 answers
789 views

FortiVPN Route Add Failure

I am running Kubuntu 23.04 with the latest public version of FortiClient (7.0.7.0246) which can be obtained via the website, here. I have configured the product to connect to my IP VPN, which worked ...
DankyNanky's user avatar
1 vote
0 answers
640 views

tun/tap interface cannot reach the internet

I am trying to set up a NAT: a tun/tap interface tap0, with IP masquerading. But i cannot reach the internet through tap0 when the default route is through it. Can you help me troubleshoot please? ...
HelloWorld's user avatar
0 votes
1 answer
762 views

Can't have two network interface enabled at the same time?

Rocky Linux 8 X86-64 on a PC with two Ethernet interfaces, each connected to isolated switch hub, then connect to router. LAN1: 192.168.1.2/24 <--> Hub1 <--> 192.168.1.1 (Router port #1) ...
RichardLiu's user avatar
0 votes
0 answers
109 views

Redirect specific requests to a specific interface in linux

I have two networking interfaces on my Linux machine, eth0 and eth1. eth0 is the default interface that some addresses are blocked on this interface. How can I redirect the requests to blocked ...
Alborz Jafari's user avatar
0 votes
1 answer
87 views

eth0 for PXE and local only, eth1 for internet access and ssh

I am using CentOS 7 (yes I know it's old). I have eth0 which is default for PXE booting and local network access. I also have eth1 which I like to use for internet access and remote access via ssh ...
user568471's user avatar
2 votes
1 answer
878 views

Routing response packets from IP/32 based on incoming interface incoming NIC

I have a Rhel 8.7 machine with 2 NICs in different subnets. Let's say eth1-IP:10.10.10.4/24 ,gateway:10.10.10.1. This gateway is also the default gateway for this vm, and a second NIC: eth2, IP:10.10....
l0cal's user avatar
  • 21
0 votes
2 answers
251 views

Is rc.local the best place to add a pon start and network routing change?

I've followed this guide to get a 4G hat networked with my pi zero, and everything seems fine. I'm able to ping out once pon has started in the background and a route has been added. What I want is ...
Harry Lincoln's user avatar
1 vote
1 answer
104 views

Ip routing Linux subnet to an external IP

Good morning I have a scenario where an application makes a request to service A on IP 10.244.5.0 which is not really in use. The goal is to send all request of a subnet (where the service A IP is ...
Minninnewah's user avatar
0 votes
1 answer
366 views

No route to host: physical connection doesn't work (but from a VM yes)

I use Ubuntu Desktop v. 22.04 and at the work there is a very-complicated LAN, with different subnets. Long story made short, until to some day ago I did could connect to a website hosted on IP 192....
sineverba's user avatar
  • 173
0 votes
1 answer
325 views

Undo route "reject"?

I ran this command to "block" an IP address: route add -host 123.123.123.123 reject It works. I can see it in the list of routes: root@mypc:~# route Kernel IP routing table Destination ...
birgersp's user avatar
  • 301
2 votes
1 answer
3k views

Manage two network interfaces on RHEL 8

I'am looking to set up a configuration on a dual network RHEL8 enterprise machine hosting web services (web server, APIs, gitlab...). The machine has two network interfaces : eno1 for the local ...
AntoninC.'s user avatar
0 votes
0 answers
92 views

how does linux kernel choose the right src ip when route packet?

I have a kubernetes cluster using Calico as CNI plugin. We can get some routes in my local route table like root@k8s-master:~# ip r default via 192.168.100.1 dev ens18 proto dhcp src 192.168.100.215 ...
smart's user avatar
  • 1
0 votes
2 answers
5k views

docker exposed port not accessible from outside even when port is opened using iptables command

I have a sample docker tar image in my linux based server and ran that though docker run command as below where 9521f101839f is image id. docker run -p 0.0.0.0:9895:9898 -td 9521f101839f So now ...
Sash_KP's user avatar
  • 111
1 vote
1 answer
115 views

Route trafic to bridged network

I have a server running with multiple services running inside each of their own LXD container. All containers uses a bridged network. For now I am routing everything through the servers main ip ...
dbergloev's user avatar
0 votes
1 answer
16 views

Getting traced route list after sending packet from source to destination

So after I realized internet is just connection between routers and every routers have IP address, I want to know route of my already traversed packet. I mean, look this example case: Suppose my ...
Muhammad Ikhwan Perwira's user avatar
1 vote
1 answer
107 views

"route add/del" in bash script does not work when invoked from within systemd service

I have a script that uses the route command to add or remove a network route. It works fine if I run it from the terminal as a regular script. However I tried to automate its execution so it runs on ...
PizPez's user avatar
  • 41
0 votes
0 answers
276 views

Static Routes not working (linux)

I hope everyone is well along with their loved ones. I Have two Linux-based Dd-wrt routers, on the main router (router A [10.1.1.1] n66u, small metered-like connection) i have a static route for ...
user538977's user avatar
1 vote
0 answers
274 views

virtual gateway interface

I would like your opinion on my Linux router setup. Let's say I have default ISP (main routing table) and a specific one (routing table custom). Default ISP is on eth0 and custom one is on eth2. For ...
user37741's user avatar
  • 127
1 vote
2 answers
1k views

Why does tracepath always display the first hop twice whereas traceroute does not?

Why does tracepath always display the first hop twice : $ tracepath -n X.Y.Z.T 1?: [LOCALHOST] pmtu 1500 1: 172.16.5.2 0.586ms 1: ...
SebMa's user avatar
  • 2,209
0 votes
1 answer
1k views

Why does `ip route replace` add a duplicate new route? [duplicate]

These are my ip routes, default via 172.16.42.1 dev ens5 proto dhcp src 172.16.42.248 metric 100 default via 172.16.42.1 dev ens3 proto dhcp src 172.16.42.79 metric 100 default via 10.2.64.1 dev ...
Evan Carroll's user avatar
  • 31.7k
5 votes
1 answer
17k views

What is an ip route metric, how do I change it?

When I run ip route, I see default via 172.16.42.1 dev ens5 proto dhcp src 172.16.42.248 metric 100 default via 172.16.42.1 dev ens3 proto dhcp src 172.16.42.79 metric 100 default via 10.2.64.1 dev ...
Evan Carroll's user avatar
  • 31.7k
0 votes
3 answers
2k views

Red Hat Linux: default route not persistent

My default route disappears from the routing table on network restart or system reboot. The contents of /etc/sysconfig/network are: NETWORKING=yes HOSTNAME=server NTPSERVERARGS=iburst GATEWAY=192.1.1....
Howard Spindel's user avatar
0 votes
2 answers
313 views

Does CentOS have recursive route lookup feature?

I was wondering if recursive route lookup is possible in CentOS? Here is the scenario: I have 2 NICs on the machine. NIC1 has default gateway. NIC2 needs communicating to outside world to only 2 IP ...
JOKER's user avatar
  • 1
0 votes
0 answers
736 views

Linux iproute2 default routing rules for IPv6

I've been doing some tests with the ip commnand on Linux, and the "ip rule" command showed me different results for IPv4 and IPv6: test-linux# ip -4 rule list 0: from all lookup local ...
user avatar
1 vote
0 answers
912 views

Openvpn unable to ping server, route says network unreachable

i have a situation where i have a server on the IP range of 192.168.255.0/24 and a subnet on the range of 10.0.0.0/24 I state the problem here before adding the config. I am pushing the route to the ...
Robert Driller's user avatar
0 votes
0 answers
609 views

OpenVPN problem wih routing between subnets

Hi i have set up a system like this Situation Graph Here I have the server network at 192.168.255.1/24 and 2 subnets 10.0.0.1/24 and 10.0.1.1/24. I want these to be able to call a client that is in ...
Robert Driller's user avatar
0 votes
1 answer
551 views

Is it possible to move broadcast and local routes in the local routing table to custom routing table without creating a name space?

I have a host with two interfaces. ens4 is mgmnt, ens3 is another network. # ip -br a | sort ens1 DOWN ens2 DOWN ens3 UP 172.16.10.1 ens4 UP 192.168.1.100 # ...
Dave's user avatar
  • 621
1 vote
2 answers
916 views

Openbsd wireguard to wireguard

I build a server (vps) which play the role of my gateway. My whole personal network is connected behind through wireguard. Every think works well, I follow more or less https://openbsdrouterguide.net ...
Airwan's user avatar
  • 81
1 vote
2 answers
2k views

During the lifecycle of "iptables", in which step, will kernel take advantage of "route table"?

iptables. I have went though the manual of Iptables and known some basic concepts, e.g. chain, table, hook, rule and targets. In the Linux ecosystem, iptables is a widely used firewall tool that ...
Ryan Lyu's user avatar
  • 194
0 votes
1 answer
130 views

Iptables - Wifi Router User Sessions to OpenVPN in VM

The goal is to route wireless user sessions from a TP-Link TL-WR902AC Wifi travel router on the same LAN to an OpenVPN Client in a virtual machine. My attempt at this is based on previous successful ...
Herondas's user avatar
0 votes
1 answer
34 views

How to access ubuntu server on two diferent public ips

I'm strugling with the current problem: Background info: Ubuntu 20.04 on dell R710 server I have 2 diferent internet connections with 2 isp supplied routers. I've connected eno2 to isp1 router and get ...
Dan Hendli's user avatar
0 votes
1 answer
89 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 ...
PGEL's user avatar
  • 157
0 votes
2 answers
140 views

why does a VPN need to access a public IP address directly (not through the tunnel)?

I am trying to understand how NordVPN works, from the IP side of things. After establishing a VPN tunnel, my public IP address becomes : $ dig +short myip.opendns.com @resolver1.opendns.com 138.199.16....
ChennyStar's user avatar
  • 1,795
3 votes
2 answers
4k views

nmcli get actual name of interface (e.g. tun0) from connection name

1.) I would like to get the actual name of an interface from the connection name used by nmcli. In my case, I have several VPN-connections, let's call one of them my-vpn. Now, I do nmcli con up id my-...
Marcel H.'s user avatar
46 votes
1 answer
223k views

netplan generate: `gateway4` has been deprecated, use default routes instead

When using netplan generate I kept on getting an error message: gateway4 has been deprecated, use default routes instead. For static IP address assignments in netplan, I've always used the structure:...
erwin's user avatar
  • 2,063
0 votes
1 answer
334 views

ppp as the primary interface with wifi as the backup

On Ubuntu 21.10, I have a cellular modem connected via USB that I need to be the primary interface on which all network traffic utilizes. However, I also need the wifi interface (in my case, wlo1) to ...
smoothgrips's user avatar
0 votes
0 answers
544 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:...
r00f's user avatar
  • 43

1
2 3 4 5
8