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

4
votes
1answer
22 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
36 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
32 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
38 views

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

Since Fedora 16 or 17 there no longer file /etc/sysctl.conf. How do I setup net.ipv4.ip_forward = 1?
2
votes
1answer
50 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
36 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
54 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
50 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
32 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
41 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
24 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? ...
1
vote
0answers
40 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
28 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
40 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
20 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. ...
2
votes
1answer
315 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 ...
0
votes
2answers
158 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
1answer
209 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 ...
1
vote
0answers
48 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 ...
2
votes
2answers
713 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
2k 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
0answers
62 views

Trouble with adding routes to different subnets

I'm having some confusion with adding routes to different subnets. Here's the layout: I have a vpn connection on tap0 which connects me to 192.168.14.110 That connection, on the other end is routed ...
2
votes
2answers
826 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 ...
0
votes
1answer
31 views

Adding access to PPP

I have a PPP connection over USB (dev ppp0), and an eth0 connection. My Linux box has IP 192.168.1.1, I have a second Windows PC with an IP of 192.168.1.3. The ppp conection is 192.168.1.2 - which is ...
1
vote
1answer
89 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 ...
3
votes
1answer
745 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 ...
2
votes
1answer
99 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. ...
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. ...
5
votes
1answer
6k 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 ...
4
votes
2answers
565 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 ...
0
votes
2answers
6k 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 ...
1
vote
1answer
109 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
1answer
546 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 ...
0
votes
0answers
93 views

How to route 3 computer in wireless ad-hoc network?

I have three computers connected on the same wireless ad-hoc network with the following adresses : 192.168.1.3 <-----> 192.168.1.5 <-----> 192.168.1.6 On computer 5, I only did : ...
0
votes
1answer
245 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 ...
1
vote
1answer
105 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 ...
2
votes
0answers
262 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 ...
1
vote
0answers
235 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 ...
0
votes
1answer
222 views

Restoring default ip rule

I accidentally issued ip rule flush, now the default ip rule are all gone, which is, 32766: from all lookup main 32767: from all lookup default Anyone know how to add them back?
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 ...
3
votes
1answer
592 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 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 ...
1
vote
1answer
2k 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
0answers
390 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. ...
1
vote
1answer
144 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 ...
2
votes
2answers
145 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 ...
9
votes
2answers
17k 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 & ...
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: ...
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, ...
6
votes
1answer
449 views

Route VPN traffic through socks proxy

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 ...