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

2
votes
1answer
15 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
0answers
13 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 ...
1
vote
3answers
162 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
24 views

Forwarding traffics come from SSH tunnel to VPN tunnel on a Linux device

I want to route network traffic that comes from one end of ssh tunnel (constructed by ssh dynamic port-forwarding) into one end of VPN tunnel. Given four linux devices A, B, C and D, for example, I ...
0
votes
0answers
25 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
35 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
30 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 ...
2
votes
1answer
44 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
72 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.
0
votes
0answers
23 views

How to tune dhcp networks configuration?

I'm not sure how should I configure my guest VirtualBox networks. So far, I figured out how to override this configuration so that I can connect to machines on both networks. But I'm manually ...
1
vote
1answer
42 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
47 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
196 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 ...
0
votes
0answers
63 views

how to set a route and firewall for a static ip

These directions on setting the static ip address for vicidial seem at once very specific and overly broad: Type 'yast lan' and press ENTER Optionally, you can type 'yast' and navigate to the ...
0
votes
1answer
380 views

Problem with routing tables network interface in Centos 6.6

I've problem with the routing tables, I've 2 network interface. (2 interfaces with 2 difference network address IP address: 112.xxx.xxx.xxx: static IP and 10.xxx.xxx.xxx local IP) 1: IP address is: ...
1
vote
1answer
32 views

Gateway configuration is not working

I have three virtual machines, vm1, gwvm and vm2. gwvm has two interfaces, one connected to vm1 and other connected to vm2. Following image has IP and route details, Here vm1 and vm2 are in ...
2
votes
2answers
109 views

which order is the route table analyzed in?

On my pc I have to following routing table: Destination Gateway Genmask Flags MSS Window irtt Iface 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 ...
0
votes
0answers
99 views

OpenVPN Server only Serves traffic from Google.com to Client

So I am pretty sure this is a routing/config problem. Whenever my client (Android OpenVPN) connects to the OpenVPN server it can only retrieve traffic from google.com searches. Whenever I try and ...
3
votes
0answers
59 views

delay in IP route deletion

(Apologies if this is the wrong StackExchange for this question, but there does seem to be some confusion regarding appropriate targeting of IP networking questions) I am very much a network newbie, ...
2
votes
1answer
811 views

proper syntax to delete default route for a particular interface?

summary: me@client:~$ sudo route del default ppp0 SIOCDELRT: No such process me@client:~$ sudo route del default dev ppp0 SIOCDELRT: No such process me@client:~$ sudo route del -net default dev ppp0 ...
1
vote
1answer
46 views

Connect to offline network on second interface

I would think there's likely a dupe of this around but I cannot find it. I have an offline router I'm using to connect a remote wireless device. The router cannot be configured as an access point, ...
2
votes
0answers
70 views

Binding to a VPN interface not working

so I've been working on setting up a Raspberry Pi running Raspbian lately, and I have almost everything set up the way I want. I plan on using it headless, but I've been using X11 forwarding to view ...
2
votes
0answers
211 views

Connecting to two ISP in local network using two different network

We have two ISP 1. BSNL (INDIA), 2. Airtel (INDIA). we getting Bsnl internet through D-Link DSL 2750U modem which holds the IP 192.168.1.1, Airtel internet modem with 192.168.2.1 IP address, Here it's ...
2
votes
0answers
124 views

Default iterface/routes metric in Linux

When I run ip route on my Linux machine, I see default via xxx.xxx.xxx.xxx dev eno1 metric 202 I wonder, where this 202 metric is configured and what other ip commands use it.
2
votes
1answer
4k 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 ...
0
votes
0answers
108 views

connected to ethernet and wifi, “route” browser's connection to wifi only

Sometimes, in my company, I have to work with a different network (through ethernet) that has no internet. On the other hand, I do have access to out Wifi, which has internet. Since I have to spend a ...
2
votes
1answer
134 views

Bring network interface down if physical connectivity is lost

I have a headless Debian server with two network cards: 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT qlen 1000 link/ether 01:02:1d:54:7c:01 brd ...
3
votes
0answers
655 views

OpenVPN and routing problem on OpenWRT

My home topology: router1 (192.168.1.1) - D-Link dsl2540u server with static IP available from Internet (ADSL via ppoe). 4 LAN ports. router2 (192.168.1.2) - D-Link DIR-300 with OpenWRT. Plays ...
0
votes
1answer
65 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 ...
2
votes
0answers
151 views

forward virtual interface network in KVM guest to the physical interface in the host machine

I am trying to experiment with Linux IP routes. This is what I have so far. I have a host machine whose network details are as below. wlan0 inet addr:192.168.1.9 Bcast:192.168.1.255 ...
2
votes
0answers
346 views

Forward multicast between two LAN segments (Chromecast)

I've found some rules but most are inconclusive. Chromecast uses DIAL and discovers via multicast from what I've understood.. I have an Ethernet-connected computer which I would like to route via my ...
1
vote
1answer
7k views

CentOS 7 persistent routing issue?

I have Googled a lot but still can't find a working way on how to make some persistent routes on centOS 7. [root@asd network-scripts]# route -n Kernel IP routing table Destination Gateway ...
2
votes
2answers
381 views

How to use a defined local IP instead of external one

I have a Gentoo Linux server. Server is connected to two networks: internal and external. Internal network ip: 192.168.1.200 External network ip: 192.168.0.2 If I'm trying to make request from ...
3
votes
1answer
143 views

IP rule table look up does not seem to work

I have a sytem with three network interfaces. Below is the configuration that I'm trying to set up. wlan0 (its actually an WiFi AP interface) - other devices connects via this interface. net1 - ...
2
votes
0answers
250 views

KVM guest as default gateway for bridged network

I currently have two vm's both on kvm (virt-manager), both running on separate virtual interfaces (virbr0 and virbr1). The IP of virbr0 is 192.168.122.0; the IP of virbr1 is 192.168.123.0. Both VMs ...
1
vote
0answers
149 views

How to route network in order to use internet on CentOs?

I have 2 computer in local network which have CentOS both. One has wireless card which can use internet connection. Other computer does not have internet connection. I want to route ip addresses in ...
4
votes
1answer
84 views

route added, but shows inverse ip

Using xubuntu... i'm trying to add a route in my work laptop, and so i do route add -host 212.18.178.207 gw 10.15.228.1 eth0 for some strange reason, when i do just route, this is what i get... ...
1
vote
0answers
1k views

Route to LAN subnet via OpenVPN client

I am trying to route to a LAN subnet that is connected via an OpenVPN client. I am having trouble with the route command - I cannot make sense of it. The OpenVPN link is established and I can ping ...
0
votes
1answer
137 views

Impact of using route command when route doesn't exist or already exist

I made a script for this question Monitor an internet link to a remote host this script will be run by cron and, every minute or so, it will reexecute the commands route add .... route del .... I ...
0
votes
1answer
200 views

/etc/sysctl.conf Fedora {17-20}?

Since Fedora 16 or 17 there no longer file /etc/sysctl.conf. How do I setup net.ipv4.ip_forward = 1?
2
votes
1answer
1k views

set ip default outgoing in centos

I have server which has Centos and I want to change the outgoing IP address. This is the output of my route and route list commands. [root@marketport tmp]# route -n Kernel IP routing table ...
0
votes
0answers
97 views

SSH can't use internet when multiple interfaces present in route

I'm trying to make SSH tunnel connection on any possible interface (which has internet connection). I'm currently using ppp0 and eth0 interfaces. ppp0 always has internet and reinitialized if ...
2
votes
1answer
466 views

Linux “ip route” changes source address of TCP but not UDP

When sending packets from an application that binds to a local address TCP uses a different source address than UDP. For example, bind to 10.10.0.51 (alias IP), the src addr for UDP is 10.10.0.51 but ...
1
vote
2answers
309 views

how to route local ip subnet to vpnc tunnel

I have a vpnc client that will connect to Cisco and I put any information to /etc/vpnc/default then I run vpnc-connect status connected. All routes will be replaced to tun0. The targeted 10.10.0.9 ...
0
votes
1answer
63 views

How can I modify route table?

I don't want to delete or add, just want to modify one rule. Is there such a command or do I have to resort to Delete and Add ? Computer is running Debian 6.
0
votes
1answer
298 views

Separate traffic between two tun+ devices with openvpn

I'm running two OpenVPN clients, so I have two tun interfaces configured. Each of the tun interfaces has a different subnet. One of the interfaces, let's say tun1 has a default route, so most of my ...
0
votes
0answers
56 views

Connecting one network interface to the Internet disconnects the other interface

We have got an HP-UX server, but whenever I got connected to that machine using the ethernet cable I got disconnected from internet although my laptop has 2 nw interfaces. One wired one wireless. Why? ...
2
votes
1answer
263 views

How to check and set “rhash_entries” parameter?

I'm reading this article, and it says: rhash_entries is the size of the hash table. If you don't specify it on the kernel command line, it is computed dynamically based on the memory available on ...
1
vote
1answer
51 views

Can I route through interface instead of IP?

I know I can route to another computer by setting its IP as the gateway. Can I also do this by just specifying the interface the packets should take. Like instead of doing route add gw, if I say route ...
2
votes
0answers
73 views

Update Route Entry On another DD-WRT upon New IP address (WAN) SSH linux

I have two routers on two different gateways/ISPs but on the same local subnet (192.168.). If router A (192.168.1.1) gets IP address from the ISP (for example 24.64.10.15, non-static), I would like ...