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

learn more… | top users | synonyms

3
votes
2answers
2k views

How does iptables MASQUERADE work on the incoming side?

I'm still reading the iptables manual page and other documents and digging around questions and their answers. This is the problem which arises. When we setup the NAT we use a POSTROUTING rule such ...
2
votes
1answer
34 views

Remove route from routing table by position

I know how to delete a route from a routing table providing all of the route's details (ip r d ...). Is there any way to list routing table with some kind of indexes and then delete from its ...
1
vote
1answer
54 views

Can not add static route in my Ubuntu, SIOCADDRT: Network is unreachable

I'm trying to add a static route in my VPS to a client that is on the other side of the VPN tunnel to my VPS and forwards it's traffic through the tunnel. This is the setup of my destination that I'm ...
3
votes
1answer
93 views

ipsec rightsubnet to wide, cannot override routing table | IPSec route some packets 'locally', not via tunnel; ip xfrm change?

I'd like to override part of the (IPSec) routing table (routing to 10.108.0.0/16 locally via eth0, not via IPSec tunnel) my IPSEC config conn vpc type=tunnel authby=secret ...
0
votes
0answers
61 views

Host-only network adapter (enp0s8) not starting on boot in CentOS7

I've installed CentOS7 in virtual box. I've 2 network cards - one host-only (vboxnet0) adapter enp0s8 (which I want to be static) and the other the NAT adapter enp0s3. The host-only adapter never ...
0
votes
1answer
39 views

ip tables by route command and iptables's table by iptables command, is the same?

There are two command : route, and iptables. Both of it have a/many tables: route tables and iptables's table. Does those two kind of tables describe the diffrent thing, or iptables can also be ...
8
votes
3answers
16k views

How to add ipv6 default route

I have the following setup Linux 1 Linux 0 eth1 eth0-------------------eth0 14.14.14.80 19.19.19.20 19.19.19.10 2005::5/64 ...
2
votes
2answers
156 views

Meaning of “route add -host xxx.xxx.xxx.xxx dev eth0:1”

if the format is: route add -host 192.168.1.20 gw 10.1.1.20 dev eth0:1 I know, It will route 192.168.1.20 to 10.1.1.20 Then, what's the "dev eth0:1" mean?
1
vote
0answers
32 views

Centos 6.x multi-homed routing question

I have a conundrum and would like to hear any pointers (been working on this for 2 days now, and need to get this server in to production). My "google-foo" has not been strong with this ...
0
votes
3answers
58 views

How can I use both networks simultaneously

I have two network interfaces: eth0 (10.0.0.0) and usb0 (umts usb-modem) me@ThinkCentre-A50:~$ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use ...
7
votes
4answers
45k views

Why can't I ping Google?

I can't ping google.com (unknown host). But I can ping IP addresses. I tried to ping the IP address of Google but it doesn't work. resolv.conf nameserver 8.8.8.8 nameserver 209.139.209.33 ...
0
votes
1answer
64 views

linux how to config route etc/network/interfaces?

how to config route in etc/network/interfaces ? i want add 3 route in eth0 and eth1 i have try to configure like this: auto lo iface lo inet loopback auto eth0 iface eth0 inet static ...
0
votes
2answers
61 views

Cannot add route

Followed an excellent thread on configuring network settings. Looks like I got the address right (10.10.150.10/24) as I can ping my local interface (10.10.150.10), and the upstream router's address ...
0
votes
1answer
19 views

How does communication between a BeagleBoneBlack occur and what is special about its mounting procedure? [closed]

If a BeagleBone is connected to a linux machine (and probably also to Windows in some form) it will identify itself somehow as a network interface card and, consequentially, will be assigned an ...
1
vote
2answers
215 views

Is /etc/sysconfig/static-routes a deprecated method for adding persistent routes?

RHEL 5.x I'm comfortable with adding static routes via /etc/sysconfig/static-routes. When I was reviewing Red Hat documentation though, I didn't see this mentioned. Instead, the recommendation was ...
0
votes
0answers
23 views

Ubunut 14.04 route timeout

i add a static route in /etc/network/interfaces up route add -net 10.0.0.1 netmask 255.255.255.255 gw 192.168.0.12 But at night the Gateway 192.168.0.12 is shutdown for backup 2 hours. Now every ...
1
vote
1answer
68 views

Change preferred NIC in default routes

I have a VM with CentOS 7.1 and two NICs: eth0, dhcp, 192.168.1.0/24, access to the host and the Internet. eth1, static, 10.0.0.0/24, between VMs only. I have configured IP and connectivity is ...
0
votes
0answers
17 views

How do you interpret these routes? or more or more specifically, what is scope link?

I don't understand completely what these routes mean: [root@samplehost ~]# ip route show ...#default route here 10.68.172.0/24 dev eno33557248 proto kernel scope link src 10.68.172.20 ...
0
votes
1answer
44 views

Adding route entries to the routing table

I have a device that has a default IP address of 10.1.1.102 with netmask 255.255.255.0. Rather than changing it, I tried to add a routing entry to my routing table using route add. sudo route add ...
0
votes
0answers
16 views

socks to remote vpn clients on single server

I have the following setup: [user1] > ssh -D 1080 server > [server A a.a.a.a] openvpn --config vpn1.ovpn > [vpn server #1 x.x.x.x] [user2] > ssh -D 1081 server > [server A a.a.a.a] openvpn --config ...
0
votes
1answer
335 views

route on specific interface based on port

I have a php / bash application on top of a Linux machine with 1 physical interface connecting to e.g., outbound webserver 123.123.123.123 :80. I do this via several openvpn providers. I have both tun ...
0
votes
1answer
47 views

iptables selectable tunnel

I have this configuration script: I OPENVPN TUNNELS openvpn --config serverx.ovpn > /dev/null 2>&1 & openvpn --config servery.ovpn > /dev/null 2>&1 & TEST ON MY ...
1
vote
0answers
38 views

How to route using iproute2 not iptables?

I have a linux machine which has two ethernet ports. One interface eth0 is connected to public interface. And, other interface eth1 is connected to Wireless AP with private IP. eth0: ip: 202.x.x.2 ...
1
vote
1answer
76 views

Forwarding traffic coming from SSH tunnel to VPN tunnel on a Linux device

I want to route network traffic that comes from one end of an ssh tunnel (constructed by ssh dynamic port-forwarding) into one end of a VPN tunnel. Given four Linux devices A, B, C and D, for ...
1
vote
1answer
128 views

Connect to offline network on second interface

I have an offline router I'm using to connect a remote wireless device. The router cannot be configured as an access point, or I would just use it to extend the range of my existing WLAN and use the ...
2
votes
2answers
75 views

How do I know what Interface is my public interface?

I am setting up an application and it requires me to manually enter a public interface. When running sudo route it gives the following result: Kernel IP routing table Destination Gateway ...
1
vote
1answer
151 views

Relationship bettwen route flags using route versus route flags using cat /proc/net/route

When you enter route in the command line, for flags it prints out U, UG, etc. In the file for route it stores flags as a number 0001, 0003 etc. How are the numbers for flags in the file ...
0
votes
0answers
37 views

How to route one IPv6 interface to another IPv6 interface

I am following an instruction from this link, it uses ethernet link and assigns bbbb::/64 address, and another interface (/dev/ttyACM0) that has aaaa::/64 address. It has the following network ...
1
vote
1answer
262 views

How to route traffic through different proxy servers based on destination

Background I work on a corporate network that is behind a proxy server. I also work with some remote sites that I am able to access via a bastion / jump host ssh proxy. In my ~/.ssh/config I have a ...
0
votes
1answer
53 views

connect two networks though common computer using route table

i have two computers. computer A network devices: dev address ------------- wlan0 192.168.1.2 eth0 10.42.0.1 computer A routing table: Destination Gateway Genmask Flags ...
0
votes
0answers
174 views

virtualbox, how to enable host to access the Internet via the guest?

I have a notebook and installed Fedora 21 into it, then I installed virtualbox, then I installed Windows XP as a guest. From the Windows XP, I used the eth0 as the bridge to let the dialer(only ...
2
votes
1answer
82 views

Per user routing on wifi

I'm using vpn but i want to have one user that could access network not through vpn but using my real ip address. The problem is that all solutions i found by quick google'ing, for example this ...
0
votes
1answer
659 views

Set persistent static routes for 4 interfaces on 2 CentOS 7.1 servers

I am tasked to set up two test servers running CentOS 7.1 (Minimal install; the NetworkManager is disabled on both), and have run into a set of issues that I would like to get help here. The ...
1
vote
1answer
171 views

How to add static route in Virtual Guest to reach Host network?

I have a Linux mint virtual machine running with public IP as 203.x.x.x with bridge mode Ethernet adapter whereas my physical machine IP Address is 145.17.x.x subnet. To access my physical PC's ...
1
vote
2answers
34 views

How to use routing to use the next available inetface

My system has 2 interfaces (eth0, eth1). I open a socket and bind it with an ip attached to eth0, now I want the OS to route the packets to another ip (which attached to eth1 but i'm not sure it's ...
0
votes
0answers
29 views

Can't access http anymore

My computer A is connected to an AP with an access to the internet. (interface called new0) I cannot have more than 1 computer connected to this AP. (authentification) I wanted to share internet, so ...
2
votes
1answer
138 views

route some traffic in subnet to other gateway

I want to route traffic destined for 192.168.5.0/24 to a gateway of 10.1.10.24, but all other traffic to a gateway of 10.1.10.1. I tried: ip route add 192.168.5.0/24 via 10.1.10.24 but it seems to ...
1
vote
3answers
658 views

Force all network traffic go through default gateway

I have a machine that I want to force all traffic to go through the default gateway. Even traffic on the local network. I have made it to work by removing the auto generated route for this interface, ...
0
votes
1answer
121 views

route -n gives output “route: fscanf”

If I boot my system and no interface has an IP address I get the above output. However if I give an interface an IP, even if I remove it again, this will disappear. Why does this happen? Is it that ...
0
votes
2answers
22k views

Delete Static Routes on Solaris 10

I have the following routes that I wish to delete: 10.250.0.0 10.250.0.37 UG 1 0 I have run the following to delete this with failure. bash-3.2# route delete ...
0
votes
0answers
56 views

Kernel routes not loaded to Quagga ospfd process (freeBSD)

I'm trying to redistribute kernel routes that are added using the route command. For example: route add -net 2.0.0.0/24 -interface em0 I'm using Quagga ospfd under pfsense to redistribute the ...
0
votes
1answer
86 views

Debian network disappearing

I'm running Debian v8 (systemd purged and systemV installed ... works fine). It is a clean installation (Debian v7 used to be on this machine) The harddrives failed after numerous power failures on 1 ...
0
votes
0answers
147 views

Where is the route table file in SUSE?

According to the documentation at http://www.softpanorama.org/Net/Linux_networking/Suse_networking/suse_etc_sysconfig_network_route.shtml there should be a table containing the routes at ...
1
vote
1answer
88 views

How to connect between two Linux machines VIA Linux router machine

I have three Linux machines that connected as the following: Linux_machine1 --> Route_linux_machine --> Linux_machine2 How to ssh from Linux_machine1 to Linux_machine2 Only VIA ...
1
vote
1answer
1k views

Where is routing table stored internally in the Linux kernel?

When I execute route -n, from where exactly (from which structs) is the information displayed retrieved? I tried executing strace route -n but I didn't help me finding the right place it's stored.
7
votes
3answers
40k views

how to ping & use specific network card

i have 3 network cards , 1 Lan (wired) , 1 wireless network card & 1 is wireless usb how do i ping from specific network card ? & how do i use specific network card for specific ...
1
vote
2answers
219 views

Linux lock down route to avoid changes to the default route

I have a problem that every time I connect my Android phone with USB tethering it hijacks my computer's internet connection. Even if the phone's WIFI is off. I try to manually remove the default ...
1
vote
1answer
116 views

Can't use 2 interfaces at the same time

I can't get eth0 and usb0 (same with wlan0) working at the same. When I activated the Android Tethering, I did route add default gw 192.168.42.129 usb0, and so, route -n outputs: Table de routage IP ...
0
votes
1answer
108 views

Connect through different interfaces to the same server

i have two pppoe interfaces - ppp0 and ppp1. I would like to reach the same server on both interface. I added the desired ip address to the route table: route add 10.88.40.13 ppp0 And I could ...
0
votes
0answers
654 views

iptables - hairpin NAT dual WAN

Here is my lab Client LAN: 192.168.150.95 Gateway: 192.168.150.1 RDP Server LAN: 192.168.150.2 Gateway: 192.168.150.1 Linux Router WAN: 177.129.XXX.XXX Gateway: 177.129.XXX.XXX LAN: 192.168.150.1 ...