Command line tool for manipulating and listing the routing table.

learn more… | top users | synonyms

1
vote
2answers
388 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 | ...
17
votes
5answers
5k 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
92 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
470 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
191 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
167 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
397 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
651 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
954 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
206 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
116 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
823 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
344 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
188 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
897 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
92 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
470 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
307 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
99 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
256 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
97 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
64 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
7k 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
410 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
425 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
556 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
243 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
109 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
703 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 ...
1
vote
0answers
611 views

Multicast Default Interface - upgrade to RH5.5

I have upgraded a server from RH4 -> RH5.5 and we have an interesting issue with multicast. we have multiple NICS on the server, we want the bond0 to default as the default interface. adding route ...
0
votes
1answer
763 views

Route all traffic through my laptop (using Squid) with Windows [closed]

I have just installed Squid on my laptop and I am successfully blocking all the traffic that I want to block ( websites, protocols etc. ). But I would like to route all the traffic form my LAN ( have ...
2
votes
2answers
364 views

Splitting a subnet, and routing it on a two interface iptables firewall

I have a two interface Linux iptables firewall. Currently I have several servers behind it on a private network 192.168.0.x. The firewall currently has each IP configured locally and uses NAT to ...
7
votes
3answers
29k views

Why ip route add doesn't work, but ip route add with less details and then change works?

I have a problem with ip route add. Surprisingly, I can add the route then change it, but I cannot directly add it: # ip route add 192.168.0.0/16 via 192.168.255.254 src 192.168.1.101 RTNETLINK ...
1
vote
1answer
1k views

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

why tracert does not show the same gateway address as in ipconfig

I am confused by the following: C:\>ipconfig .... Connection-specific DNS Suffix . : some address here IP Address. . . . . . . . . . . . : 10.77.121.54 Subnet Mask . . . . ...
1
vote
1answer
45 views

Are there any Route Server for Windows Server

Are there any router servers, like zebra, for Windows Server?