Questions tagged [ip-routing]
272 questions
66
votes
5 answers
How do I delete a route from Linux routing table
This turns out to be harder than I thought. The routes I want to delete are the "!" rejected routes, but I can't seem to formulate the right "route del" command to pull it off.
Here is the routing table...
Destination Gateway Genmask …
user54259
26
votes
4 answers
Windows: Get the interface number of a NIC
I have the following problem: I have a server with a rather dynamic network configuration and need to configure routes on it with the IF parameter:
route add ... mask ... ... if ?
Is there a reliable way, manual and or programmatical, to get that…
AndreasT
- 807
- 2
- 10
- 16
25
votes
3 answers
Is it possible to include switches in traceroute hops?
I was wondering if it's at all possible to make a Dell Powerconnect 2848 switch show when running internal traceroutes. This would help with diagnosing issues and make it far easier to see where issues occur.
According to the datasheet, this…
dannymcc
- 2,677
- 10
- 46
- 72
15
votes
5 answers
How does an IP packet know which gateway to take?
Suppose two gateways exist on the same network. If I understand correctly, the IP routing table on sender's computer decides which packets get routed through which gateway.
IP routing tables contain the IP address of the gateway.
How is this IP…
Simon Farshid
- 253
- 2
- 7
12
votes
3 answers
Unable to set up a static host route - "SIOCADDRT: No such process"
At my office, there is a Windows Server 2008 router, 192.168.16.1, which is our default gateway. This sends data through our main internet connection. This works perfectly.
192.168.16.1 also has another internet connection that is currently sitting…
Steve Rukuts
- 332
- 2
- 3
- 12
10
votes
2 answers
Map IP to another IP
Assume the following scenario, if I have a local machine (A) the requests another machine (B) using B's internal IP without regard the ports. But A and B are not on the same network, however, B has a public IP. what I want to do is when requesting…
Yahia
- 305
- 1
- 3
- 8
9
votes
2 answers
linux routing bug?
I have been struggling with this not easily reproducible issue since a while. I am using linux kernel v3.1.0, and sometimes routing to a few IP addresses does not work.
What seems to happen is that instead of sending the packet to the gateway, the…
Balázs Pozsár
- 2,085
- 1
- 14
- 16
9
votes
2 answers
Redundant OpenVPN connections with advanced Linux routing over an unreliable network
I am currently living in a country that blocks many websites and has unreliable network connections to the outside world. I have two OpenVPN endpoints (say: vpn1 and vpn2) on Linux servers that I use to circumvent the firewall. I have full access to…
konrad
- 993
- 7
- 9
8
votes
1 answer
ip rule and route doesn't get respected
I'm trying to route packets based on their source address, and have added the following:
# ip rule add from 10.10.10.0/16 dev eth0 table foobar
# ip route add default via 100.100.100.1 dev eth0 table foobar
Testing the routing however gives me…
Alfred Balle
- 399
- 2
- 6
- 22
8
votes
4 answers
Loadbalancing outbound traffic while using openbgpd on freebsd
I am using openbgpd in freeBSD with 2 ISP connections. I have my own AS number and a /22 network. Currently I am advertising entire /22 to both networks. Inbound traffic comes in But my outbound traffic goes via a single link.
I would like to either…
Rajkumar S
- 463
- 1
- 7
- 12
6
votes
2 answers
How to route traffic from private network to openvpn subnet (and back)
I have a couple servers at Linode. I'm trying to set them up so I have a VPN into one of the machines and can then access all the other machines using the private linode network. Public access to private services (SSH, etc.) would then be…
Randy Syring
- 542
- 4
- 11
6
votes
3 answers
How to prevent asymmetric routing with multiple eBGP routers?
I have 2 routers announcing a /22 subnet to different providers (one providers connects to each of the 2 routers). I have split the /22 in two /23 to announce one /23 on each of the routers plus the /22 (the providers will take the more specific…
Andy Shinn
- 4,131
- 8
- 38
- 55
5
votes
1 answer
RedHat 7: SIOCDELRT: No such process
[user@telco-aa1]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default gateway 0.0.0.0 UG 100 0 0 ens192
10.15.55.0 0.0.0.0 …
Brian Harkness
- 51
- 1
- 2
5
votes
1 answer
How long is an (accepted) ICMP redirect observed for, and how can I shorten that time?
If a Linux host receives and accepts an ICMP redirect (accept_redirects=1 on the interface in question), how long is this route being cached for and observed? Can I lower that time?
I am asking because I have a number of systems that are poisoned…
Nils Toedtmann
- 3,202
- 5
- 25
- 36
5
votes
1 answer
Routing traffic to two NICs on the same network
I have a few linux test boxes on Scaleway, each having 2x NICs that are all connected to the same network 10.0.0.0/8 but each has its own gateway.
I want to be able to use both NICs (eth0/eth1) and their IPs for communication. So if applications…
Vad1mo
- 268
- 2
- 14