Questions tagged [routing]

the process by which data packets on communication networks are forwarded into the direction of their ultimate destination by routers.

Modern communication networks are built mostly on the concept of destination routing (although other concepts, such as source routing, do exist). In this concept, the sender of a data packet does not need to know where exactly to find the destination for that packet, all it needs to know is the address of the next router. This router will then decide, based on routing tables and the destination address of the packet, where to send it next (this is called the next hop). This process is repeated until the packet arrives at a router where the destination address is in a directly connected network, and the final router then sends the packet directly to that destination.

Routing decisions are usually based on routing tables, which can be influenced by many factors, such as available links, link quality, routing policies, QOS, etc.

3661 questions
29
votes
1 answer

What CAN cause 'RTNETLINK answers : No such process' when adding a route

I have come up against this error a number of times, but haven't yet found an explanation of what the error means, or what can cause the problem. I'm not posting my configs or the specific route I'm trying to add as I don't want someone to tell me…
TaninDirect
  • 405
  • 1
  • 4
  • 4
27
votes
2 answers

ip route show src field

I read the man page of ip and still do not understand what src is and I could not find much documentation. Please, if you can explain it thoroughly or point to some link it a good answer.
coredump
  • 397
  • 1
  • 3
  • 7
26
votes
6 answers

Why "Nexthop has invalid gateway" when it seems to be defined?

I have my own wireless router to which a remote VPN client, 10.7.0.6, is connected. I want traffic from one of the wireless clients to go through it, but I'm getting "Nexthop has invalid gateway". (I'm aware that I'll have to persuade 10.7.0.6 to…
Adrian May
  • 361
  • 1
  • 3
  • 3
26
votes
4 answers

What makes a private IP address not routable?

I understand that private addresses such as 10.0.0.0/8,172.16.0.0/12 and 192.168.0.0/16 are not routable. However, what exactly is stopping these addresses from being routable? Do ISPs implement ACLs that prevent these networks from routing or is it…
QuantumRads
  • 363
  • 1
  • 3
  • 7
25
votes
4 answers

ip address scope parameter

In Linux, the command ip address add [...] has a scope argument. The man page says that the scope is "the scope of the area where this address is valid". Follows the list of legal scopes: global site link host What does this "area" of "validity"…
rolaf
  • 568
  • 1
  • 4
  • 8
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,717
  • 10
  • 48
  • 72
25
votes
1 answer

Two network interfaces and two IP addresses on the same subnet in Linux

I recently ran into a situation where I needed two IP addresses on the same subnet assigned to one Linux host so that we could run two SSL/TLS sites. My first approach was to use IP aliasing, e.g. using eth0:0, eth0:1, etc, but our network admins…
Scott Duckworth
  • 846
  • 1
  • 10
  • 12
24
votes
7 answers

How to verify a AWS VPC (S3) endpoint works?

I added a VPC endpoint to my VPC using CloudFormation, and allowed s3 usage. The routes are visible in the AWS console, but not in the local routing tables of the EC2 instances: $ route -n Kernel IP routing table Destination Gateway …
M. Glatki
  • 1,964
  • 1
  • 17
  • 33
24
votes
6 answers

Prevent SSH connection lost after logging into VPN on server machine

I encountered an issue that I can't deal with. When I'm logged onto an VPS over SSH and try to estabilish VPN connection on that VPS, the SSH connection between VPS and my machine get lost. I assume that's because routing got changed by VPN…
mic22
  • 341
  • 1
  • 2
  • 5
23
votes
2 answers

Routing selection: specificity vs metric

I understand that Linux chooses the most specific route to the destination when it does routing selection. But what about a route's metric? Does it have a higher priority than route's specificity? A reference to the details of the routing selection…
Eugene Yarmash
  • 2,433
  • 5
  • 34
  • 54
23
votes
2 answers

Aws vpc default route table in CloudFormation

Am I missing something but is there no way to add a route via CloudFormation to the default route table that comes provisioned with a VPC?
21
votes
3 answers

Difference beetween DNAT and REDIRECT in IPTABLES

Okay, it may be because I am dense or maybe just not finding the right source, but I can't understand why one of these IPTABLES setups would be better than the other. Here is my setup: I have a box that is serving as a transparent proxy and a router…
QWade
  • 917
  • 1
  • 11
  • 17
20
votes
5 answers

Are people really going to use public IPv6 addresses on their private networks?

I have been reading the Debian System Administrator's Handbook, and I came across this passage in the gateway section: ...Note that NAT is only relevant for IPv4 and its limited address space; in IPv6, the wide availability of addresses greatly…
Questionmark
  • 321
  • 1
  • 3
  • 9
19
votes
2 answers

Multipath routing in post-3.6 kernels

As you all probably know, ipv4 route cache has been removed in 3.6 Linux kernel series, which had serious impact on multipath routing. IPv4 routing code (unlike IPv6 one) selects next hop in a round-robin fashion, so packets from given source IP to…
Eugene
  • 501
  • 1
  • 3
  • 11
19
votes
6 answers

Specifing ip address for outbound connections on a multi ip host

one of my servers (Debian 5.0.6) has two public ip-address on the same interface. This used to work well for months but suddenly it is using "the wrong" ip addresses for outgoing connections. This is a problem because the reverse lookup will not…
Hendrik Brummermann
  • 336
  • 2
  • 4
  • 11