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
6
votes
2 answers

Per-user routing doesn't seem to work

So, I'm trying to implement per-user routing so that I'm able to route all btpd torrent traffic over a VPN. Unfortunately, btpd does not currently allow you to bind to a specific IP address. :( I decided to try to follow this guide. Basically, you…
Nick
  • 63
  • 3
6
votes
3 answers

IPv6 and NAT, routing to multiple ISPs

Currently I have a nice setup using private IPv4 address space and uplinks from two ISPs to the Internet. Thanks to NAT I can just take down one of the interfaces and the Internet access is still there. I've been thinking how to duplicate this…
Hubert Kario
  • 6,361
  • 6
  • 36
  • 65
6
votes
2 answers

When to start using OSPF

We have 4 offices in different countries. They are all connected via VPN to each other (i.e. at least one VPN tunnel from each office to all other three). Each office has between 1 and 4 separate subnets, and each office has an OpenVPN server. Two…
wolfgangsz
  • 8,847
  • 3
  • 30
  • 34
6
votes
8 answers

opvnvpn: addressing nodes in LAN-behinds

I've setup an openvpn server which i can access remotely, once it is connected, it creates a tun0 device on both server and client with virtual ip 10.15.119.x. the openvpn server is itself 10.15.119.1. Question: how do i address other nodes in the…
lurscher
  • 172
  • 1
  • 3
  • 17
6
votes
2 answers

/etc/interfaces file for multiple gateways, same network? (linux)

I've got my ip routing table setup as I'd like it: # ip r s 10.1.248.0/24 dev eth0 proto kernel scope link src 10.1.248.11 default via 10.1.248.1 dev eth0 metric 100 default via 10.1.248.3 dev eth0 metric 200 10.1.248.1 is the primary…
Mark Rose
  • 314
  • 1
  • 3
  • 9
6
votes
2 answers

IPv6 routing problem

I've received a native IPv6 /64 subnet from my server provider, but I can't get it to play the way I want it. I'm running virtual machines, and I want them to have their own public ip(s). Let's pretend I got the following information: IPs:…
brain
  • 163
  • 1
  • 4
6
votes
5 answers

Hubs/switches taking out switches?

Here's the issue...we have a network with a lot of Cisco switches. Someone plugged in a hub on the network, and then we started seeing "weird" behavior; errors in communication between clients and servers, or network timeouts, dropping network…
Bart Silverstrim
  • 31,172
  • 9
  • 67
  • 87
6
votes
3 answers

Amazon CloudFront and EC2: Global Load Balancing

We have an app that is going to store and serve up a decent amount of data in S3 to a global audience where latency should be minimized. So, we've been doing tests with Amazon CloudFront and have seen favorable results. However, we need a thin…
Matt Rogish
  • 1,512
  • 6
  • 25
  • 41
6
votes
1 answer

difference between 0.0.0.0 and * network in ss output

The ss command seems to distinguish between * and 0.0.0.0. While the listing of ssh with 0.0.0.0:22 and [::]:22 is clear, *:7946 and *:80 is not quite as much. $ ss -ntl State Recv-Q Send-Q Local Address:Port Peer Address:Port LISTEN …
tcurdt
  • 413
  • 1
  • 4
  • 10
6
votes
2 answers

When to use routers and when to use layer 3 switches

If you were to connect two buildings on the same site via fiber, what is best to use - routers or layer 3 switches? The layer two switches in each building have VLAN's, so these will either connect to a router or layer 3 switch, and then the router…
The_Bear
  • 163
  • 4
6
votes
1 answer

Making an `ip rule` higher priority than `local`

I'm trying to redirect a subsection of incoming traffic to a different destination using fwmarks. The procedure 1) Mark matching incoming packets: iptables -t mangle -A PREROUTING -i pppoe0 -p tcp -m tcp --dport 80 -j MARK --set-xmark 6 2) Add a…
Coops
  • 6,055
  • 1
  • 34
  • 54
5
votes
7 answers

Multiple devices with one IPv6 to the Internet?

I want to connect several devices (in the LAN) to the Internet via a single public IPv6 address. Unfortunately I did not find a good way to do this. The only idea I had was to tunnel everything from the PF/OPNsense via OpenVPN to an Raspberry Pi or…
Hannes
  • 301
  • 4
  • 9
5
votes
1 answer

Confused about iproute2 rt_tables

I found the following content in the file: /etc/iproute2/rt_tables 255 local 254 main 253 default 0 unspec #1 inr.ruhep 126 anycast_test_1 127 anycast_test_2 I did read some documents about rt_tables, but I still can't understand what do the…
Jack
  • 173
  • 1
  • 1
  • 7
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
  • 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,342
  • 5
  • 26
  • 36