Command line tool for manipulating and listing the routing table.

learn more… | top users | synonyms

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
898 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
209 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
94 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
3k 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
888 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
406 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
492 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
194 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
169 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
398 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
670 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 ...
3
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
214 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
3k 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
893 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
391 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
3k 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
193 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
2k 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
917 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
93 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
569 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
354 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
100 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
270 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
65 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
8k 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
442 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 ...
0
votes
2answers
453 views

Linux add route error

Here are these Linux and IP: LinuxA: eth0 188.9.5.2, tun0 10.0.0.1 LinuxB: eth0 188.8.6.3, tun0 10.0.0.2 LinuxC: eth0 188.9.7.4 LinuxD: eth0 10.62.8.5 On LinuxA, I can ping to 10.0.0.2 of LinuxB. ...
0
votes
1answer
592 views

getting multicast on a virtual interface on linux

I create a virtual network interface with: ifconfig eth0:1 192.168.0.1 netmask 255.255.255.0 but when I ping the multicast address: ping 224.0.0.1 my virtual interface does not respond. Why?
-1
votes
1answer
260 views

How can I filter traffic using a layer 3 switch?

I have a layer 3 switch which needs to route traffic to 2 different networks which don't see each other. What would be the simplest and most efficient way to do this? And is there any straight ...
-1
votes
2answers
124 views

Adding More IPs to a Netcard on Linux

How do I add more IP addresses to a network card on Linux? Do I use the route command? It's Ubuntu Server 10.04 LTS.
0
votes
1answer
110 views

Routing problem (no ping) [closed]

I have a computer A (190.21.8...) and B (190.21.5....) and C(222.104.100....) I can mstsc from A to B, and also - I have ping from A to C, and from A to B, but not from B to C? How can this be fixed? ...
0
votes
1answer
2k views

openvpn: after changing to server mode, client does not create TUN device

i had a previously working configuration with the config files used in a previous question However, i've changed this now to the following configuration using server mode, everything on the logs seem ...
1
vote
2answers
2k views

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 ...
1
vote
3answers
723 views

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