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
19
votes
5 answers

Windows static routes w/o specifying gateway (next hop)

I have the following scenario: Computer A: 198.51.100.8, netmask 255.255.255.0 Computer B: 203.0.113.9, netmask 255.255.255.0 Both computers are on the same LAN segment; no default gateway is specified in either case. To get these two computers to…
fission
  • 3,601
  • 2
  • 21
  • 31
18
votes
1 answer

Getting Squid and TPROXY with IPv6 working on CentOS 7

I'm having trouble getting TPROXY working with Squid and IPv6 on a CentOS 7 server. I was previously using a generic intercept setup with NAT, but it was limited to IPv4 only. I'm now expanding the setup to include IPv6 with TPROXY. I've been using…
James White
  • 674
  • 3
  • 18
  • 32
18
votes
4 answers

How is route automatic metric calculated on Windows 7?

KB299540 explains how Windows XP automatically assign metrics to IP routes: The following table outlines the criteria that is used to assign metrics for routes that are bound to network interfaces of various speeds. Greater than 200 Mb: 10 Greater…
Etienne Dechamps
  • 2,194
  • 8
  • 24
  • 28
18
votes
2 answers

RFC 1918 address on open internet?

In trying to diagnose a failover problem with my Cisco ASA 5520 firewalls, I ran a traceroute to www.btfl.com and, much to my surprise, some of the hops came back as RFC 1918 addresses. Just to be clear, this host is not behind my firewall and there…
longneck
  • 23,082
  • 4
  • 52
  • 86
18
votes
6 answers

Why do Facebook users sometimes end up on my site when they enter www.facebook.com in their browser?

Every few weeks I get an email (usually a very unpleasant one) or sometimes even a phone call from a Facebook user who believes that I am "hacking" their internet. They come to this conclusion after they end up on my site after entering…
Peter
  • 183
  • 4
17
votes
4 answers

Best practice for assigning private IP ranges?

Is it common practice to use certain private IP address ranges for certain purposes? I'm starting to look into setting up virtualization systems and storage servers. Each system has two NICs, one for public network access, and one for internal…
Tauren
  • 739
  • 4
  • 14
  • 24
16
votes
3 answers

How do I make actual use an IPv4 block that I own?

We (a small French company) had reserved an IPv4 /24 block (256 addresses) from RIPE-NCC, over 20 years ago, but never used it. Update: our assignment belongs to the "Provider Independent (PI) address space", similar to that for this nearby block…
fgrieu
  • 365
  • 4
  • 17
16
votes
3 answers

Public static ip for vagrant box

I have server (Debian Squeeze) with 1 ethernet card and 2 public static IPs (188.120.245.4 and 188.120.244.5). What I want: Setup virtual box (Ubuntu) with access via static IP (188.120.244.5). What I was trying: config.vm.forward_port - good…
Numbata
  • 183
  • 1
  • 1
  • 8
16
votes
3 answers

Force SSH connection through a different interface

I want to connect remotely using SSH. However, I'm not able to while my VPN is active, so I disconnect from the VPN and then connect using the other connection. How can I force the connection through my other connection when connected to the…
Naeem
  • 333
  • 1
  • 2
  • 8
15
votes
1 answer

Disabling rp_filter on one interface

I have an Ubuntu 16.04 Server which is acting as a router with multiple (VLAN) interfaces. By default, rp_filter (reverse path filtering) is enabled for all interfaces. I want to keep it that way, but make an exception for exactly one interface.…
Cybran
  • 422
  • 2
  • 6
  • 16
15
votes
2 answers

Add static route with Ansible

How do I add and delete routes in my route table with Ansible? I can't seem to find any network or system modules for this.
Jay
  • 275
  • 1
  • 2
  • 6
15
votes
1 answer

Difference between "genmask" and "netmask"?

In the output of route -n on Linux, you get something like this: Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 10.0.0.1 0.0.0.0 UG 0 0 0…
dirtside
  • 1,551
  • 5
  • 17
  • 22
15
votes
3 answers

IPv6: differences between "routed prefix" and "link prefix"?

What are the exact differences between "routed prefix" and "link prefix" for IPv6?How do these differences in a wireshark-Trace? (if you observe a Host with an assigned "routed prefix" or a Host with an assigned "link prefix").How do these…
Erik
  • 161
  • 1
  • 5
15
votes
1 answer

Why must the IP be configured on the bridge device?

My understanding of a network bridge is having a kind of "virtual switch" which virtually connects the network devices (that were added to the bridge) as if I would connect them to a real switch with cables... but something must be wrong with that…
SDwarfs
  • 385
  • 4
  • 18
15
votes
3 answers

How to Set Up Linux Server As A Router with NAT

We have a simple router which has NAT of symmetric type, but because this router doesn't provide us with any debugging interface, we cannot figure out if a specific packet reaches the NAT or not. Thus we want to setup a LINUX computer making it…
Steve Peng
  • 559
  • 1
  • 8
  • 18