Questions tagged [ip-routing]

293 questions
82
votes
6 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
31
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
  • 877
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,747
  • 10
  • 49
  • 73
16
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…
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…
11
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
  • 315
  • 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…
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
  • 1,083
  • 9
  • 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…
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…
7
votes
2 answers

Ubuntu defaults to IPv6, should default to IPv4

Ubuntu 16.04.5 with kernel 4.4 used to work as intended: IPv4 is default. Since changing to kernel (hwe) 4.15, it uses IPv6 as default. It has IPv6 available via Tunnelbroker, broadcasted by the router. It is now defaulting to IPv6: curl ifconfig.co…
Gaia
  • 1,975
  • 5
  • 36
  • 63
6
votes
1 answer

Carrier Grade NAT concepts: IP bans

I'd like to deploy a Wireless WAN using IPV6 for at least the wireless bits given that 6 offers higher through-put. I'm exploring the concept of CGN and what strikes me immediately is the liability. Suppose you use a single IP address for 14…
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…
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,351
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 …
1
2 3
19 20