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

9
votes
2answers
20k 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 & ...
6
votes
1answer
495 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 ...
5
votes
1answer
9k views

Set persistent routing table on Debian

I have modified my routing table by deleting one rule, and adding two new rules for my second interface eth1: route del -net 10.1.2.0 netmask 255.255.255.0 route add -host 10.1.2.51 eth1 route add ...
5
votes
2answers
640 views

Route and “e” flag

k# route -6 Destination Next Hop Flag Met Ref Use If ::/0 fe80::8001 UGDAe 1024 0 0 eth0 [...] What does flag "e" mean?
4
votes
2answers
769 views

What is the difference between `/sbin/ip route` and `/sbin/route`?

Linux comes with two utilities /sbin/route /sbin/ip route What is the difference between the two and what is the rule of thumb to use when you decide which one of the two you should use? I know ...
4
votes
2answers
823 views

how to set what route would be added when bringing interface up

I have one two interfaces on one machine, one is the Internet connection that get its IP from a DHCP, no problem. The other interface (eth1) is to local machines, and it has the gateway 192.168.3.1 ...
4
votes
1answer
35 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... ...
3
votes
1answer
2k views

What is the GNU/Linux equivalent of BSD's “route get …”?

The BSD route command has a feature that will show what route will be selected for a given host. For example: /Users/mhaase $ route get google.com route to: iad23s07-in-f8.1e100.net destination: ...
3
votes
3answers
14k 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 ...
3
votes
1answer
2k views

How do I route traffic through specific interface for a specific process

I have a script that runs from cron every 15 minutes. The script is meant to ping my DNS server to update a dynamically changing IP. I want this script to ping through the wlan interface and not the ...
3
votes
1answer
621 views

Route SSH to host through interface

Is it possible to route all outgoing requests for SSH (port 22) to mydynamicdns.afraid.org via wlan0 instead of eth0 when both are connected? Since my IP is dynamic, I would like to use a name ...
3
votes
1answer
1k views

How to use two gateways with the same IP address?

I have to configure a NAT and manually split internet traffic between two gateways which are connected to a Linux box. There was no problem if each gateway has a specific IP address. I can do this by ...
3
votes
1answer
1k views

LAN server with two network cards, can't telnet / ping to the second even if it works

I have an issue with an Ubuntu 12.04 LTS (updated) server. For reasons too long to detail, it has got one eth0 interface assigned to 192.168.1.9 and one Wifi wlan0 interface assigned to 192.168.1.10. ...
3
votes
1answer
53 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 - ...
3
votes
3answers
190 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
2answers
244 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
1answer
2k views

system wide SOCKS5 Proxy

I connect to my Server on the internet using ssh -D 3128 user@rootserver.com. If I am right I thereby open a SOCKS v5 Proxy to my Server. Using firefox and FoxyProxy I can now add this to my proxys ...
2
votes
1answer
264 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 ...
2
votes
1answer
137 views

about route table setting, and ssh between vmware

firstly i got 2 physical machines PC and notebook 1. under PC(WIN7, 192.168.1.2) have a VMWARE, VMWARE installed one solaris(172.168.1.50). I can use putty to access to solaris from PC. ...
2
votes
1answer
210 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 ...
2
votes
1answer
97 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 ...
2
votes
2answers
2k 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: ...
2
votes
3answers
8k 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 ...
2
votes
2answers
2k 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
38 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
71 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
0answers
51 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 ...
2
votes
1answer
625 views

CentOS 6.5 have to manually add the default route

With CentOS 6.5 on an R710 I have to manually remove the default route; and sleep 10 before adding it back otherwise the interfaces do not use the default route that was added upon boot. There are no ...
2
votes
1answer
580 views

Accessing VirtualBox guest via VPN

I've searched and tried a few suggestions but I haven't been able to get this to work, yet... My host is running Ubuntu. I installed VirtualBox, created a host-only adapter, set the host IP to ...
2
votes
0answers
334 views

How to bind ppp0 interface (PPTP VPN) as 'external' in proxy server?

I'm trying to bind ppp0 interface (PPTP VPN) as 'external' interface in proxy server (Tinyproxy). Unfortunately it does not work. Using route add -net default gw 10.9.0.1 I can make all the traffic ...
2
votes
0answers
414 views

Route VPN gateway traffic via tun0 instead of normal gateway

On my Linux box, I have a tun0 interface by IPIP tunnel like: tun0 Link encap:IPIP Tunnel HWaddr inet addr:10.10.10.2 P-t-P:10.10.10.1 Mask:255.255.255.255 and I running an ...
1
vote
1answer
752 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 ...
1
vote
1answer
158 views

Point IP to an application instance

I was just wondering how I go about pointing a static IP address which I have purchased to an application instance on my server, using a different IP from the one I currently have pointing to my main ...
1
vote
1answer
109 views

Routing 4 Networks

I've been trying for almost a week to make it work but without success. I'm starting to feel hopeless. I have 4 Ethernet adapters : 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state ...
1
vote
1answer
3k views

Only routing certain traffic through VPN

I have a central development server, running a VPN server, and a couple clients that need to connect to it. The server is running Apache, but is only accepting local requests (only listening on ...
1
vote
1answer
2k views

iptables forwarding and routing

In fact, this question is about openwrt and CoovaAP, but I guess it's the same in other linux distributions. I've two interfaces, a "wan" and a "wlan" interface. Is there by default any filter, ...
1
vote
2answers
102 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 ...
1
vote
1answer
35 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 ...
1
vote
1answer
101 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
1k views

With two interfaces, how can I make one the default route and the other an alternate?

I have wired connection to intranet / lan of my work (with proxy) and one wireless without proxy that doesn't have access to the office lan. (Like Guest Wifi) My idea is to route all traffic to eth0 ...
1
vote
0answers
53 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
0answers
96 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 ...
1
vote
0answers
63 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 ...
1
vote
0answers
282 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 ...
1
vote
0answers
25 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. ...
1
vote
0answers
52 views

generate gateway automatic through resolvconf & can't change my gateway [closed]

my connection is cable ethernate , UEFI mother board i7 intel processor, direct connect no routter, aliance broad band my root process:- #ip link set eno1 up #ip addr add (IP)/(netmask) dev eno1 #ip ...
1
vote
1answer
134 views

How to relay packet in a wireless ad hoc network?

I am trying to connect several Linux computers in wireless ad-hoc multicast : -computer C1 (192.168.1.3) -computer C2 (192.168.1.5) -computer C3 (192.168.1.6) C1 can not reach C3 On computer C1, ...
1
vote
0answers
303 views

I have a route to the network but from the traceroute output it doesn't leave the server

I have an HP-UX box and I'm trying to determine why a host can't be reached. I'm trying to reach the host 10.32.13.146 root@hp-ux:/root # traceroute -I 10.32.13.146 traceroute to 10.32.13.146 ...
1
vote
0answers
479 views

Packets not received by TUN device

I created a TUN device(nat64) and created a route so that all the required packets are forwarded to the TUN device from an eth device. But, I see that many packets are not received by the TUN device. ...
0
votes
1answer
358 views

Undestanding the output of route -n

Can someone explain me what the out put of route -n? # route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.0.1 ...