Command line tool for manipulating and listing the routing table.

learn more… | top users | synonyms

2
votes
1answer
1k views

Under what circumstances will Linux ignore the route table when choosing the MAC address for an outbound frame?

While debugging a problem with the networking configuration for a set of virtual machines running under KVM, I discovered a circumstance where the kernel in the guest VM has decided to stamp the ...
0
votes
1answer
1k views

Why is a ping response being sent to the wrong gateway?

In a previous question, I was trying to determine why my OpenVPN clients could not ping the server LAN, even though the server LAN could ping the clients. Having investigated this further, I ...
0
votes
1answer
1k views

using a gre tunnel as default route

I have two private networks (A, B) that connects via another company's private network (C). Network A has internet access. I want to make a tunnel between B and A that goes through C. Then network B ...
1
vote
1answer
888 views

Windows 7 + IPSec: Force all remote traffic through VPN

I have set up a VPN connection to an remote L2TP/IPSec VPN server, which works fine. Now i like to ensure that all remote traffic is being routed through this VPN, so if the VPN connection drops, no ...
2
votes
3answers
2k views

Route all wlan0 traffic over tun0

I'm looking for a way to route all wlan0 traffic (tcp and udp) over tun0 (openvpn). However, all other traffic originating from the device itself should not be routed through tun0. I'm guessing this ...
2
votes
1answer
3k views

Routing OpenVPN tunnel in via public interface and out via NAT'd interface (to internet)

I hope someone can help... I want to Configure OpenVPN-AS (i.e. OpenVPN Access Server, NOT OpenVPN) to work on my VPS. The VPS is a KVM running Ubunto 10.04 LTS, with a very vanilla configuration. ...
2
votes
2answers
8k views

What does this linux command mean “route add -net 224.0.0.0 netmask 240.0.0.0 eth0”

Could somebody explain what exactly this command means in relation to transmitting and receiving multicast traffic route add -net 224.0.0.0 netmask 240.0.0.0 eth0
1
vote
1answer
379 views

How do I setup a routing rules to allow https traffic

This is about a clearOS installation. eth0 = external interface (dhcp Internet) eth1 = internal lan, static 192.168.0.10 eth2 = dmz The problem is, after initial installation, I was able to ...
1
vote
1answer
520 views

iptables and virtual machines of KVM, no ping, no ssh from VMs

Hi everyone :) I have two virtual machines KVM. I did two alias to eth0 - eth0:0 and eth0:1 and put them on an external IPs (eth0:0 - 89.114.122.3, eth0:1 - 89.114.122.4)​​. Now the problem is: ...
0
votes
1answer
910 views

iptables and virtual machines of KVM, external ip

Hi everyone :) In general, I'm still struggling with the virtual machine KVM. I did two alias to eth0 - eth0:0 and eth0:1 and put them on an external IPs (eth0:0 - 89.114.122.3, eth0:1 - ...
1
vote
2answers
215 views

removing static route from linux doesn't disconnect session

I want to test "connection retry" with remote application server. For this, I am using route method, wherein I remove static route from my linux server and check if the connectivity goes down or not. ...
2
votes
1answer
96 views

How can I get the remote machine with Windows Server 2008 after “route /f” executed on it?

Here is the thing, I had made a stupid mistake yesterday. I run "route /f" on a remote machine with Windows Server 2008, and this command cleared the routing tables, including the default route, which ...
0
votes
1answer
2k views

Static route issue on Windows Server 2008 R2

There's a virtual machine with Windows Server 2008 R2 installed. There are two NICs connected to it: PROD & BUP. The BUP interface is configured without default gateway. After adding static route ...
1
vote
2answers
899 views

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 > ...
1
vote
2answers
2k views

How to remove route with IP?

Used to ban some flood-bots with route add -host $ip reject But couple of 'good' IPs were banned as well. My question is stupid (but I've searched and found no good solution (all were large and/or ...
1
vote
2answers
416 views

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 | ...
18
votes
5answers
6k views

Use IPtables or null route for blacklisting about 1 million IP addresses?

I've come across a situation where a client needs to blacklist a set of just under 1 million individual IP addresses (no subnets), and network performance is a concern. While I would conjecture that ...
0
votes
1answer
93 views

Internet Backup if DSL & Cable Fail [closed]

We have a T1, a DSL Line and a cable modem in each building to assure that we can connect to the internet in case one fails. However during the latest power outage we also lost all of them and were ...
1
vote
1answer
497 views

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 ...
0
votes
1answer
4k views

How to make LAN PCs (Windows) accessible from a SonicWALL L2TP VPN connection

We have several LAN devices connected via a physical wired network to a SonicWALL TZ210 on subnet 192.168.2.0/24. Several of those devices are assigned DHCP addresses in the range 192.168.2.100 to ...
0
votes
1answer
195 views

Manage the Win2008 routing table

I have a networking issue As I have now two network cards and each one should connect to a specific network; one should be used to connect to the internet and the other one for intranet. I want to ...
1
vote
2answers
170 views

Network configuration

please see the network map from http://i.stack.imgur.com/HqT7h.jpg I want to connect to network3 from network1 but i want to connect by network2! I have a PC which has Ubuntu 11.04 and it can ...
0
votes
1answer
400 views

centos route problems, can't connect to network

I have an issue with CentOS route... maybe someone can help me to figure it out, how to simple configure route... I have an dedicated ip adress e.g. 13.97.82.85 my netmask is 255.255.255.192 and gw ...
0
votes
1answer
698 views

ASA5505 Route through another Gateway's VPN?

I have 2 routers set up in our office, one an ASA5505 and one is just a smoothwall. The smoothwall has a VPN set up to a data centre rack and users access various servers at our datacentre. I am in ...
2
votes
2answers
1k views

ip over specific network interface

I have two network interfaces with respective ips eth0 : 192.168.70.153 eth2 : 192.168.70.155 when I make route -C Kernel IP routing cache Source Destination Gateway ...
6
votes
2answers
4k views

How many custom route tables can I have on Linux?

I've been working with custom route tables on Linux, and I'm a bit confused by some of the documentation and behavior of the "ip route" command. It seems that the only valid values should be 0-255 ...
4
votes
1answer
3k views

Why Openvpn use network 0.0.0.0 netmask 128.0.0.0 as default route?

If you use "redirect-gateway def1" option in openvpn config file,the server will add a default gateway on your route table, what i want to konw is Why openvpn did not use network 0.0.0.0 netmask ...
2
votes
0answers
215 views

Two separate WAN uplinks for two different NAT networks

I have a server running ubuntu 10.04 with four interfaces. eth0 and eth1 have static WAN ip's, and eth2 and eth3 are connected to two separate NAT networks 192.168.0.0/24 and 192.168.1.0/24 ...
0
votes
2answers
117 views

My server IP routing problem

I am unfortunately from Iran and I have a Problem with my server. when I type in windows CMD nslookup ParsCMS.com 4.2.2.4 it can not find my server IP, but nslookup ParsCMS.com 8.8.4.4 returns ...
1
vote
3answers
2k views

Force static route for IP on same subnet?

Any way to force the use of a defined host static route when the IP is on the same subnet and disregards the static route entry? For instance I have a host host: 192.168.1.2 with subnet 255.255.255.0 ...
0
votes
1answer
933 views

Masquerade traffic from certain source IP to VPN connection

Network Setup: 10.0.0.1 Router: to internet 10.0.0.70 Server: Ubuntu based server,default gateway is 10.0.0.1 10.0.0.51 PC I created a PPTP connection(interface: ppp0) on Server to a machine ...
0
votes
2answers
422 views

Add a route to virtual machine on a different computer

I'd like to add a route from my computer to a VMWare Virtual Machine which runs on a computer in a different office. I can access the host computer (192.168.110.164) where the machine is running on a ...
1
vote
2answers
2k views

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 ...
-1
votes
1answer
195 views

Network communication in 2Hosts [closed]

We have 2 Linux Hosts each has 2 Nic Cards with below IP addresses,ech0 and eth1 are in different network , Host1:eth1 and Host2:eth1 are connected by direct cable, due to some Hardware issue N/W ...
3
votes
3answers
2k views

CentOS Wrong Outgoing IP Address

I have a Centos 5 box with a sub interface: ifconfig eth0 10.1.1.1 255.255.255.255 ifconfig eth0:1 10.1.1.2 255.255.255.255 The netmasks need to be 32bit in the environment this server is in. So ...
1
vote
2answers
1k views

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, ...
3
votes
2answers
948 views

how to add iptables rules for two NICs on CentOS(act as a gateway)

I have a machine C with two NICs, namely eth0 and eth1, with CentOS 4.9 installed on it. Also I have a machine A connecting to C through eth0 and a machine B connecting to C through eth1. Now I want ...
1
vote
1answer
95 views

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 ...
0
votes
1answer
38 views

Configuring ip, subnet and gateway on eth interface

I'm in terminal on RedHat 5 and I need to configure one of the two eth interface with different IP, GATEWAY and SUBNET. I know ifconfig and route add but I'm not sure what I have to do for ...
1
vote
4answers
607 views

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 ...
0
votes
2answers
385 views

set default route interface in iproute2

I have two machines. One runs arch linux and another runs fedora. arch uses iproute2. so i need a conversion for iproute2 from route. this command will set the default interface to ppp0. I have ...
0
votes
1answer
3k views

how to add a static route to external gateway(external IP)?

I am having an issue with setting up a static route in Fedora. I need to route some traffic to an external gateway(105.101.67.70 - public IP address of a VPN router). Any request sent to ...
0
votes
1answer
101 views

iptables - websites redirection

I have three servers. The first is a for my front the two other http server : for dispatch. I want for example, do : receive a request on my front (public) : site1.com an redirect the request on ...
0
votes
0answers
272 views

cannot ping through gre tunnel

This question has been merged I have 4 machines machine 1 have ip address 172.13.0.40/24 machine 2 have two ip address 172.13.0.1/24 and 172.12.0.1/24 machine 3 have two ip address ...
0
votes
1answer
3k views

Add Persistent Static Route in Centos 5

What is the proper way to add a static route in Centos 5 that will persist rebooting? I tired adding an route-eth0 file in /etc/sysconfig/network-scripts that contains a route , but after ...
1
vote
1answer
100 views

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 ...
1
vote
1answer
1k views

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 ...
0
votes
1answer
66 views

Servers cannot see internet gateway though their configuration is the same to another which can

I have 2 switches at the Data Centre - one is connected to the internet, and one for the internal private network. All servers have one NIC into the internet switch and one to the private one. All ...
5
votes
3answers
9k views

Pick the default network interface

I have a server with 2 interfaces. eth0 is 100 times faster than eth1. Though for some reason, every reboot, the default interface is picked at random. To make things more annoying, they both use the ...
0
votes
1answer
466 views

Create a new route for a bond alias

I have an IP address in my linux box 1.2.3.4 that is eth0:1. Alias of eth0. I want to create a route from that IP to an external 5.6.7.8 IP in another box. How can I do it? Do I need netmask and ...