Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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

1
vote
2answers
23 views

Define network interface as the default gw independently of IP

I know how to assign a default gw to an interface with an IP ip route add default via <host> dev <dev> # e.g. ip route add default via 192.168.0.101 dev eth0 The problem is that the IP ...
-1
votes
0answers
27 views

Route requests from wlan0 to eth0 on Debian Jessy

I am trying to route requests from wlan0 (port 8080) to eth0 (port 80) on a Single Board Computer (SBC) running Debian Jessy. The device I am trying to access is a network camera. I've testing ...
0
votes
0answers
10 views

how to migrate servers on premise in cloud whithout overlapping and changing IP

I'm trying to migrate 100 servers located in two large subnets from premise (192.166.1.0/24 and 192.166.2.0/24) to cloud. the servers have different operating systems (windows server - redhat ...) and ...
1
vote
1answer
24 views

why iptables marked but not route as my except

I want to control the route packets of my browser using domain name , let traffic packets within special domain names through VPN ,and other traffic packets without special domain names through ...
0
votes
2answers
34 views

Linux routing flow

I want to know how Linux uses routing table when reaching out to another ip. As i know for example when we run "ssh 192.168.21.2", system will create the tcp packet with destination ip as 192.168.21.2 ...
0
votes
0answers
28 views

routing vpn connection via gateway1 but vpn traffic via gateway2

Situation: network via dhcp internet gateway 192.168.x.1 dhcp server 192.168.x.10 dhcp gateway 192.168.x.2 => this gateway has a permanent vpn tunnel via openvpn to vpn provider, so I want to ...
0
votes
1answer
30 views

Static route added with nmcli not showing up

root@Andromeda:~# nmcli con show "Wired connection 1" | grep -i routes ipv4.routes: -- then ... root@Andromeda:~# nmcli con modify "Wired connection 1" +ipv4.routes "188....
0
votes
0answers
35 views

Route traffic to particular interface for specific port

I would like to route the outbound traffic to a particular interface for ssh port. We have a routing table like this: default via gw_ip dev eth0 default via gw_ip dev eth1 metric 10001 10.x.y.z/23 ...
6
votes
2answers
169 views

Restoring lost network routes after loss of network

I have a server in a locked-down environment with no egress to the internet, and 2 interfaces: a physical eth0, and a vlan iface eth0.101 /etc/network/interfaces contains a post-up command to enable ...
1
vote
1answer
58 views

What do a network route and a host route look like in a routing table?

In the routing table output by route, What do a network route and a host route look like? From https://www.cyberciti.biz/faq/what-is-a-routing-table/ Network Route: A route (path) to a specific ...
3
votes
1answer
68 views

Is there no routing entry for loopback addresses?

$ /sbin/route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.122.1 0.0.0.0 UG 0 0 0 ens3 192....
1
vote
1answer
34 views

Why does a routing rule directing to a local network interface accept more than one destination IP addreses?

$ /sbin/route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.122.1 0.0.0.0 UG 0 0 0 ens3 192....
1
vote
0answers
48 views

What route 0.0.0.0 0.0.0.0 0.0.0.0 mean?

when starting Cisco AnyConnect I get: $route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 0.0.0.0 0.0.0.0 U ...
0
votes
2answers
84 views

When does `[::]` or `0.0.0.0` mean this network and when this host? [duplicate]

Tanenbaum's Computer Networks says The IP address 0.0.0.0, the lowest address, is used by hosts when they are being booted. It means ‘‘this network’’ or ‘‘this host.’’ [::] is IPv6 version of ...
0
votes
1answer
26 views

KVM: how do I add host route when VM starts?

Is there a way to automatically add a host route (pointing to the VM IP) when VM starts ? ATM I'm doing this by hand. I've also tried to add a route via /etc/sysconfig/network-scripts/route-virbr0 ...
0
votes
1answer
238 views

Add static route to one specific address to dhcpd.conf

I want to add a static route to 10.13.0.1/32 via 192.168.178.10 to my dhcpd.conf of my dhcpd server. Unfortunately this seems to be insanely complicated. I tried the following: option static-routes ...
1
vote
1answer
37 views

Linux Routing Question, more specific route still using default route [closed]

Trying to route NNN.130.0.0 via NNN.NNN.206.254 however it appears to still be using the default gateway. What am I missing here? root@xxxxxx ~ # route add -net NNN.130.0.0 netmask 255.255.255.0 gw ...
1
vote
1answer
851 views

How to add a static route in systemd-networkd?

I have a host which is on 192.168.0.0/24 with an IP of 192.168.0.13. Its DHCP-provided gateway is 192.168.0.254. The configuration is done via systemd-networkd and the issue below is present at ...
0
votes
1answer
311 views

Route traffic to specific network through specific interface

I have a Ubuntu server hosted on Digital Ocean and used as a VPN and through it I would like to access my other servers there over the local network (Private Network). But I am unable to access other ...
0
votes
1answer
62 views

How to do ssh tunnelling into a private network?

My local machine (A) can access a login server (B) via SSH. The login server (B) can access a computing server (C) via SSH. That is, (B) has a public IP. (C) has only a private IP within the private ...
0
votes
0answers
115 views

OpenVPN Server inside VM + VM VPN

How to setup OpenVPN Server inside VirtualboxVM running Debian on Debian Host? At Guest System OpenVPN is running to tunnel all internet Traffic to another VPN-Server. Now I want to setup an OpenVPN ...
0
votes
2answers
54 views

Routing over Gateway

I have a very basic question about a routing issue I have right now. So my central server with the ip 10.0.0.1 of my own network is the router for the ip net 10.0.0.0/25. On the client 10.0.0.100 I ...
0
votes
1answer
31 views

Dual Network Gateway on CentOS 6.7

I have dual NIC machine running CentOS 6.7 and asterisk. First NIC is for LAN & Internet connectivity and second is for trunk provider's connectivity. Both of these have gateways configured. I don'...
1
vote
0answers
25 views

Redhat route InfiniBand problem

I have a system (HPC) have 1 headnode (192.168.2.2) 10 node and (192.168.245-254) 1 NFS server (192.168.2.244). My headnode can't ping to NFS server but from NFS server I can ping to headnode. I ...
0
votes
0answers
49 views

fwmark routing not taken

I'm trying to set up kind of "on my demand dynamic routing". Basically, when I activate a script , I would like it mounts a new interface (tun vpn for example) and define the appropriate firewall and ...
0
votes
0answers
125 views

default routing to tun interface though socks proxy

Here is my default (and working) route setup on my fedora workstation: [root@localhost ~]# ip route default via 192.168.0.1 dev enp0s3 proto dhcp metric 20100 192.168.0.0/24 dev enp0s3 proto kernel ...
0
votes
1answer
47 views

iptables, vpn server, routing

I set up my server (let's call it server A) firewall so that no input/output rules be allowed, apart from: - incoming ssh conection - outgoing ssh connection This is working well by now! Now, i ...
0
votes
1answer
41 views

NAT ETH1 PORT 5000 Traffic to PPP0

I have a Digi i.MX6UL running a variant of Linux. I have attached to the ETH1 (169.254.0.1) port an Advantech EKI-6332GN Router (169.254.0.5). I have a Zebra MC67 (169.254.0.3) device running ...
2
votes
0answers
36 views

No such process (3) when not connected to a network (AF_ROUTE)

When I am connected to a network, I can send a struct rt_msghdr* to the kernel and receive a corresponding route. However, when I disconnect from the network and try to send the same route message ...
1
vote
0answers
487 views

iscsiadm: cannot make connection to <IP>: No route to host

when I try iscsiadm discovery: iscsiadm -m discovery -t sendtargets -p <IP> I get this error: iscsiadm: cannot make connection to <IP>: No route to host however, I can ping the IP fine....
1
vote
0answers
36 views

Configure (route) specific connections outside of a VPN

I am using NetworkManager (Gnome) to handle all my network connections. I am connecting to a VPN with OpenVPN. My firewall (nftables) drops all traffic outside of the tun0 interface. Now I want to ...
3
votes
1answer
185 views

ssh routing between multiple linux system containers transparently

I have system where I run multiple containers. Each container is a linux system with a specific purpose and every container has a ssh server enabled. I want to make an entity that manage new ssh ...
-4
votes
3answers
4k views

Command route not found [closed]

I can' t use the command route: route bash: route: command not found Why is it not found? (I'm using debian 9). I tried to run it as root but it still does not work. However it is supposed to work ...
1
vote
0answers
29 views

Mobile Broadband for only one host

What is the easiest method to configure a mobile broadband connection in a way that: no default route is added a route to a specific host is added The connection is managed by Network Manager. The ...
3
votes
1answer
543 views

Permanent outgoing IP address with enabled DHCP [closed]

I have some problems making my outgoing IP address configuration permanent. I googled a lot and I do not find configuration that work for me. Assume my network is 192.168.1.0/24 with default gateway ...
1
vote
0answers
180 views

How to route traffic from ethernet to a tun device (create a VPNed ethernet port)

I have a Network Video Recorder which is connected to a raspberry pi directly through ethernet, and the raspberry pi is connected to internet through wlan0. I want to route all the traffic from the ...
1
vote
0answers
30 views

SSH connection to local Rasberry Pi sporadically loses route to host [closed]

I'm trying to connect to my Rasberry Pi which is connected to the same network as my laptop. Most of the time everything works fine and I can SSH to the Pi no problem. Sometimes however (...
0
votes
1answer
40 views

How do I determine what network interface this is and why it's blocking me from a subnet? [closed]

My router has my network separated into two subnets - 192.168.1.0/24 for wired and 192.168.2.0/24 for wireless clients. My home server lives at 192.168.1.42 and is not reachable from a client on the ...
0
votes
1answer
202 views

Routing traffic to my ipv4 routes except 0.0.0.0 address?

How to route traffic to my ipv4 routes except 0.0.0.0 address because I don't want it to be the default interface default via 192.168.5.1 dev enp7s0 proto dhcp metric 100 169.254.0.0/16 dev enp7s0 ...
0
votes
2answers
1k views

Route a specific host to different gateway

I have a basic Ubuntu 18.04 setup where the computer has two interfaces - one for internal (enp4s0) and one that heads to the internet (enp5s0). On the internet interface I successfully have a VPN (...
0
votes
2answers
514 views

How to set an additional route on the same gateway with systemd-networkd

Due to some network peculiarities involving VPNs and conflicting IP ranges, I have two subnets routing to two different interfaces. I would like to make one IP address in one subnet go out via a ...
1
vote
1answer
1k views

How can I use ISC KEA DHCP (DHCPv4) server to push routes to clients?

QUESTION: I have an infrastructure with 5 servers (Server #1, #2, #3, #4 and #5). I am trying to use a server (Server #5) with ISC KEA DHCP (DHCPv4) ( https://kea.isc.org/wiki ) to push routes to ...
2
votes
1answer
1k views

Use dnsmasq to pushing routes to my clients on a small local network

I'm trying to use dnsmasq to pushing routes to my clients on a small local network. However my clients (Server #1, #2 and #3) can not use these routes. The dnsmasq service is running and I do not ...
1
vote
2answers
1k views

How to route to a gateway on different subnet? [closed]

My network is on 10.3.4.x/24, with my router on IP 10.3.4.254. I need to ssh access my server on IP 10.3.4.100 but when I set up the server I forgot that I restricted ssh access to 192.168.x.x IPs ...
0
votes
2answers
98 views

Routing multiple Virtual IP (192.168.11.X) to connect with test server (192.168.10.246)

We are trying to setup a test bed for our server testing, to simulate multiple connection / msg handling, I am trying to connect to our test server from a virtual IP. on the client machine (Debian) ...
0
votes
1answer
1k views

route traffic on certain port through certain interface?

I am currently running a system in which I need to be able to send and recieve HTTP and HTTPS traffic directly, however all other traffic must go via a VPN. My setup is : x2 interfaces : eth0 (...
2
votes
1answer
329 views

Compiled modules support for openWRT

In order to add driver for my wireless adapter, Bus 001 Device 002: ID 0bda:8172 Realtek Semiconductor Corp. RTL8191SU 802.11n WLAN Adapter I am building openWRT for my GL.iNet AR150. The ...
0
votes
1answer
44 views

Force internet traffic through wifi

I currently have a setup where my rpi 3b (raspbian jessie), is connected to two routers, using eth0 and wlan0. I want to using eth0 only to communicate with another device in tha LAN. And i want to ...
1
vote
1answer
1k views

pppd default route configuration

I'm running pppd in a Ubuntu VM. When it's connected the ip route is like this # ip route default via 192.168.154.2 dev eth0 onlink XX.XX.250.5 dev ppp0 proto kernel scope link src XX.XX.250.43 ...
2
votes
0answers
130 views

Adding a higher-priority route allows communication?

So for some reason I am having connection issues with my raspberry pi. The weird thing is that I can easily ping everything else I have on the local network. I "solved" it in the end by manually ...