Command line tool for manipulating and listing the routing table.
Questions tagged [route]
620 questions
1
vote
2 answers
port redirection through a VPN
I would like redirect my tcp traffic to IRC throught a VPN.
I mark the packets with iptables and create a new route for this packets:
echo 1 > /proc/sys/net/ipv4/ip_forward
echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter
echo 0 >…

Sanpi
- 113
- 4
1
vote
2 answers
How do you find current internet network interface?
How do I find the network interface that's connected to the Internet?
This machine could typically be connected via {eth0,eth1,usb0,wlan0}. The best I could think of is:
sudo route | grep default | awk '{print $NF}'
Update: My favoured solution…

hendry
- 677
- 2
- 10
- 23
1
vote
1 answer
Why specific rouing rule is added after VPN connection is setup on Linux?
After VPN connection is setup the following routing rule is added by default:
vpn_server_ip previous_default_gateway
This rule appears useless for me. Why it is added?
Note:
VPN connection is not the connection that is used to connect to the…

Roman Byshko
- 254
- 2
- 13
1
vote
2 answers
Static route for entire octet or by host name?
I've added a few static routes, for the most part the following has worked fine:
route add 123.123.123.123 mask 255.255.255.255 100.100.100.100 metric 10 -p
However, one URL resolves to more that one IP address / it isn't static. Is there any way…

Michael
- 325
- 5
- 13
1
vote
2 answers
SciLinux6 (RHEL6) how to specify network setup and routing the redhat way?
I've got a SciLinux 6 box with 5 nic's in it. I'm not getting the network configuration I want (particularly the routing). While I can certain put a bunch of route statements at the end of rc.local, I'd rather do it the 'redhat' way.
What I'd like…

user52874
- 829
- 2
- 12
- 26
1
vote
1 answer
Unexpected auto-route after adding a new /29-Net
I added a new Network to a Debian 6.0.1 x86_64 Linux 2.6.32-5-amd64 Server with this configuration in the interfaces:
allow-hotplug eth2
iface eth2 inet static
address 172.251.1.86
netmask 255.255.255.248
network 172.251.1.80 #(tried with…

krissi
- 3,387
- 1
- 19
- 22
1
vote
4 answers
Is there a tool like 'route' in Linux to configure the forwarding entry (dst mac address --> interface)
I have a problem in configuring the forwarding table in Linux.
We call IP tables for routing table in layer 3, MAC tables for forwarding table in layer 2.
Now I want to add an entry in forwarding table. I know the tool route command can be used to…
victor
1
vote
1 answer
Routing based on the source ip
I'm trying to configure a host in a way that the traffic is routed either via eth0 or vlan123@eth0, depending on the source address used. Both interfaces have access to the whole network and both have some ip assigned.
For example: eth0 has…

viraptor
- 1,296
- 6
- 21
- 41
1
vote
1 answer
Linux Route All Internet Traffic through secondary interface
Given the following output from ifconfig, I would like all outgoing traffic to come from bond1:1 instead of the default bond1 interface, how would I go about accomplishing this?
bond1 Link encap:Ethernet HWaddr 00:25:90:2a:db:6f
inet…

Michael
- 303
- 1
- 10
1
vote
2 answers
Reroute IP Traffic to another IP?
Is it possible to reroute traffic from one IP/PORT to another in Server 2008? We host game servers, and I was tinkering with the idea of offering our clients an extra IP address, but reroute the connections to the IP that their server is actually…

Aidan Knight
- 650
- 3
- 11
- 19
1
vote
3 answers
IP Routing through VPN to Windows Server
I have the following network topology:
Remote admin network (192.168.10.0/24) I connect to using PPTP to the public IP
Remote gateway assigns an IP adress to me (192.168.10.100, for instance)
I can reach any server on the 192.168.10.0/24 subnet
I…

Astaar
- 448
- 1
- 8
- 18
1
vote
1 answer
How do I force a socket connection to use a specific network adapter under Linux? ip route issue?
I have multiple network adapters, and need to be able to specify which adapter my socket uses for outbound connections, so that I can have one or more sockets bound to each network. I`ve looked at the other answers to this questions but can't seem…
Paul Nolan
1
vote
2 answers
Are there any Route Server for Windows Server
Are there any router servers, like zebra, for Windows Server?

GeorgeU
- 506
- 1
- 5
- 17
1
vote
2 answers
How can I use iptables/route to route traffic from one local network device through its own gateway?
On my Linux server (Ubuntu), how can I configure traffic originating from one of my network interfaces (my VPN device - ppp0) to route through its own gateway address?
Caveats:
I can't set it up as a default route on the server because it is…

Jer
- 171
- 2
- 7
1
vote
2 answers
arp failing after heartbeat failover occurs
I have an LVS based load balancer which has been working just fine. It runs on two servers using heartbeat to provide failover.
I've added support for a second IP range to the system, but when the failover occurs, the server which takes over cannot…

Paul Dixon
- 1,516
- 3
- 23
- 37