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

5
votes
3answers
21k 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
164 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
27 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
25 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
55 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
28 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
95 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
30 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
34 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
71 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 ...
1
vote
1answer
3k 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 ...
3
votes
0answers
42 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
161 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
23 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
58 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
114 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 ...
9
votes
2answers
25k views

iptables --set-mark - Route diferent ports through different interfaces

Short story, 3 interfaces, eth0 (LAN), eth1(ADSL), eth2(4G). eth0 -> eth1: Works (ports 80, 443, 4070) eth0 -> eth2: Doesn't happen This is a graphical representation of the idea: Port 80 & ...
1
vote
2answers
5k views

Route add gw: how to

I'm in a network with IP 10.0.1.X (pc A). There's another sub-network: 10.0.3.0 I can ping pc B connected to this network: ping 10.0.3.X ---> OK Now, B is connected also in wifi to a network ...
2
votes
0answers
80 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.
1
vote
1answer
2k 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
96 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
109 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
518 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
0answers
43 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
2answers
4k views

Static routes in route-eth0 ignored

Why might route-eth0 be ignored but route-eth1 not? Might be because eth0 is using DHCP and eth1 is statically-configured? I have some static routes configured in ...
2
votes
0answers
134 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 ...
1
vote
0answers
219 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 ...
3
votes
3answers
246 views

Change routes for VPN

I need to use for some things a cisco VPN connection, but I don't want to route all my trafic over the VPN but only that traffic, that is send to a specific network. How does a script look like, that ...
2
votes
1answer
216 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 ...
0
votes
1answer
172 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?
3
votes
1answer
115 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
2answers
335 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 ...
2
votes
0answers
220 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 ...
2
votes
2answers
4k views

Packet loss with RX error packets

I am seeing packet loss from all my blade servers within the HP Blade C7000 enclosure. # ping 192.168.2.140 PING 192.168.2.140 (192.168.2.140) 56(84) bytes of data. 64 bytes from 192.168.2.140: ...
1
vote
0answers
111 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 ...
6
votes
1answer
587 views

Route VPN traffic through socks proxy [closed]

There is no way to set proxy on an unrooted Android, but there is an option to connect to VPN. In my network VPN connection is not allowed! so I am looking for a way to run a local VPN server on my ...
4
votes
1answer
71 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
87 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 ...
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
88 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
364 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
220 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
58 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
246 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
55 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? ...
4
votes
3answers
20k 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 ...
1
vote
1answer
44 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
66 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 ...
1
vote
0answers
32 views

A Way Around: Host Accessing Guest in Internal Network?

folks. I have installed a Linux virtual machine in VirtualBox with 2 adapters: vnet0 is a host-only network and vnet1 is an internal network. I am able to get the IP address given by vnet0. ...