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
1answer
33 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
59 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
31 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
43 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
65 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
16 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
94 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
36 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
313 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
131 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
57 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
93 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
47 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
24 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
39 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
94 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
36 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
35 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
24 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
353 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
31 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
160 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 ...
-3
votes
3answers
2k 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
25 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
460 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
158 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
29 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
37 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
163 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
1answer
417 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
925 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
975 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
855 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
82 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
305 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
37 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 ...
0
votes
0answers
22 views

How to setup a local gateway

What I want to accomplish I would like to setup three virtual machines connected through a virtualbox internal network. Each machine has a different role: there is server, a client and a middlebox. I ...
0
votes
0answers
91 views

Setting up classless static routes manually in GCE

In GCE, the DHCP server return the IP address with mask of 32 bits. Making the instance the only one in its subnet. It also return couple of static routes (RFC3442) that need to be configured. Example ...
1
vote
1answer
921 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
119 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 ...
1
vote
1answer
326 views

How to route traffic over specific interface on linux (debian)?

I would like to route traffic over usb0 (a cellular modem) when it is available instead of eth0. The ip address for usb0 may change over time. How do I create a route in this scenario since the ip ...
0
votes
2answers
102 views

equivalent command `route -n` in BSD

Command route -n of BSD return nothing $ route -n usage: route [-dnqtv] command [[modifiers] args] It's output of GNU version What's the equivalent in BSD?
-1
votes
1answer
1k views

How to understand the output of route

Saying that I'm configuring the network of an Ubuntu system. So I may edit the /etc/network/interfaces as below: ... address x.x.x.x netmask x.x.x.x gateway 192.168.1.1 Then I execute the command ...
0
votes
1answer
257 views

On OS X, how to grant network 192.168.3.* access to network 192.168.1.*?

I connect to Wifi with OS X, it is network 192.168.1.*. Then I also connect a second computer to Mac's ethernet port, which is configured as network 192.168.3.*. I don't need the eth-box to access ...
6
votes
3answers
1k views

How to set a static IPv6 default route with dhcpcd?

I am going to set a static IPv6 address and a corresponding IPv6 default route with dhcpcd. I have looked through man dhcpcd.conf, but to find nowhere mentioning how to set an IPv6 default route. My ...
1
vote
1answer
73 views

Adding a route to make server directly accessible over VPN, for specific subnet?

I have a Linux machine on a segregated network that I VPN into. When I VPN in, I get assigned a virtual IP by the VPN server like 192.168.251.x I've found that when I VPN in, I can RDP to Windows ...
1
vote
0answers
64 views

Connect 2 networks through a Linux gateway

I am moving my first steps in Linux networking and I'm a bit stuck on this. I have 2 private networks 10.0.1.0/24 and 10.0.3.0/24 And I want to be able to ping the machines from one network to ...