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
11
votes
4 answers

Difference between routing and forwarding table

What is the difference between forwarding and routing tables?
jokerrnej
  • 121
  • 1
  • 1
  • 4
11
votes
4 answers

second ip address on the same interface but on a different subnet

Is it possible in CentOS 5.7 64bit to have a second IP address on one interface (eg. eth0) - alias interface configuration - in a different subnet? Here is the original config for eth0 more etc/sysconfig/network-scripts/ifcfg-eth0 # Broadcom…
fptstl
  • 111
  • 1
  • 1
  • 4
11
votes
2 answers

ip route add - RTNETLINK answers: File exists

On the Linux box there are 2 interfaces: Bond0: inet addr:170.242.57.113 Bcast:170.242.57.255 Mask:255.255.255.0 Eth4 : inet addr:172.21.136.124 Bcast:172.21.137.255 Mask:255.255.254.0 Because eth4 is on a different network, I want to setup…
rnoooo
  • 141
  • 1
  • 1
  • 3
10
votes
2 answers

When running vpnc in docker, get 'Cannot open "/proc/sys/net/ipv4/route/flush": Read-only file system'

I'm trying to run console Cisco VPN client in Docker. I start the container like that: docker run -it -v /srv/vpn/keys/:/root/keys/ --network=host --cap-add=NET_ADMIN --device=/dev/net/tun -v /dev/net/tun:/dev/net/tun vpn-vpnc-client_img And then…
Dmitriusan
  • 367
  • 3
  • 15
10
votes
4 answers

DEFROUTE vs GATEWAY in RHEL7

I've disabled Network Manager and I'm using ifcfg- scripts for network configuration. And I'm trying to find the difference between DEFROUTE="yes" and GATEWAY options. I understand that "ifcfg files are parsed in numerically ascending order, and…
Roman_T
  • 341
  • 1
  • 5
  • 16
10
votes
7 answers

Can switches do VLAN routing?

I have been learning about VLANs and I am wondering if switch can be used for communication between two VLANs. Since switches support trunk links and already know the destination/source (VID) of the frame could they be used to send the frame from…
Kosta S.
  • 123
  • 1
  • 8
10
votes
4 answers

Clear all and only persistent (static) routes on Windows

Is there a simple way of doing this via a shell command / batch ? A VBScript would also be ok.
Antonio
10
votes
5 answers

Traceroute includes un-routable IP (?)

I ran the following traceroute once, while trying to disagnose a network problem. c:\>tracert linode.com -d Tracing route to linode.com [67.18.186.61] over a maximum of 30 hops: 1 <1 ms * <1 ms 10.43.51.252 2 1 ms <1 ms …
Mikeage
  • 2,741
  • 6
  • 26
  • 37
10
votes
4 answers

Openvpn, forward packets very slowly

I rebooted my server, and an odd issue just came out. I am running on ArchLinux, the clients are Ubuntu, Android and Mac. The problem is that accessing the internet via the clients is slow, about 2ko/s and slowly stop. But downloading something from…
Cubox
  • 118
  • 1
  • 2
  • 12
10
votes
1 answer

Network Restructure Method for Double-NAT network

Due to a series of poor network design decisions (mostly) made many years ago in order to save a few bucks here and there, I have a network that is decidedly sub-optimally architected. I'm looking for suggestions to improve this less-than-pleasant…
Magellan
  • 4,451
  • 3
  • 30
  • 53
10
votes
2 answers

Forwarding traffic from TUN device (C++ backend) to the default gateway

The following problem is just a piece of the bigger solution I have a problem with. All other elements seem working so far, so I'll try to describe very small piece which I have problem with. I've got a linux machine, with tun0 (tunneling interface)…
Marcin Górski
  • 101
  • 1
  • 5
10
votes
2 answers

Traffic routing with unreliable connections

I have a group of offices that are all connected to the main office via DSL links on the far end to save costs. (We're a non-profit, don't ask) We've historically had noticeable problems with the link-up between the ISP that handles our remote sites…
Magellan
  • 4,451
  • 3
  • 30
  • 53
10
votes
3 answers

No internet after dhcp lease renews

Today we had a number of machines stop getting internet access. After a lot of troubleshooting, the common thread is that they all had their dhcp lease renewed today (we're on 8 day leases here). Everything you would expect looks good after the…
Joel Coel
  • 12,932
  • 14
  • 62
  • 100
9
votes
1 answer

OpenBSD route via different gateways which have same IP but on different interfaces

I have multiple VPN connections which use the same gateway IP (I do not have the ability to change this as it is out of my control). These VPNs all provide access to different networks, and the networks are at least one or two hops upstream, so a…
bao7uo
  • 1,704
  • 12
  • 24
9
votes
3 answers

Network Manager: failover between two default gateways

Is Network Manager able to check if a default gateway can route packages to the internet? I have two interfaces, both provide a route to the internet. When I unplug a cable from any of them, default gateway is being updated and my internet…
Volodymyr Linevych
  • 193
  • 1
  • 1
  • 8