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

systemd-networkd and direct routes

I have problem adding direct routes through systemd-networkd. What I'm trying to achieve is similar to: ip a a 192.168.0.2/32 dev enp0s3 ip r a 192.168.0.1/32 dev enp0s3 ip r a default via 192.168.0.1 This is weird setup, I know, but I can't use…
Ineu
  • 280
  • 1
  • 2
  • 8
9
votes
5 answers

Is it possible to connect a single NIC to two different VLANs?

I know it is possible to assign multiple IP addresses to the same NIC as long as they are on the same sub-net (e.g. server A can be assigned both 192.168.1.1 and 192.168.1.2). However, is it possible to assign multiple IP addresses that are a…
sagi
  • 707
  • 3
  • 9
  • 19
9
votes
3 answers

DNS servers already use anycast. Will adding more IPs enhance scalability?

RFC 1034 requires us to assign at least two IP addresses for DNS servers. However, redundancy can already be achieved by a single IP address if we use anycast addressing. BGP anycast seems to scale well into hundreds or even thousands of servers. If…
Pacerier
  • 521
  • 16
  • 35
9
votes
4 answers

How can I forward the HTTP and SSH port to my internal server using iptables?

I do not have the router so I made my CentOS 6.4 Linux system into a router, forwarding the public network traffic to my local LAN. It has two NIC cards, one for the public IP address (eth1) and another for the private IP address (eth2). I have a…
Rahul
  • 93
  • 1
  • 1
  • 7
9
votes
6 answers

Securing a guest VM to give it internet access, but block access to host LAN

I have a Linux guest VM running under a Windows host. If I set the networking mode to NAT, the guest can get internet access (which I want), but can also access the hosts LAN (which I dont). For various reasons, I cannot set up a separate network…
Francis Appa
  • 131
  • 1
  • 2
  • 6
9
votes
1 answer

Where can I embed proprietary information in a layer 2 or layer 3 packet?

The Citrix Netscaler has an interesting property that embeds information in the TCP packet that gets sent to the host. This property is echoed back to the Netscaler in such a way that the Netscaler can use this to determine which Virtual Server,…
makerofthings7
  • 8,911
  • 34
  • 121
  • 197
9
votes
3 answers

Bypass openvpn for particular ip

My desktop machine runs Trisquel GNU/Linux 6.0 (which is basically a libre version of Ubuntu 12.04), and I use OpenVPN to connect to a commercial VPN provider for internet access. It currently routes all my traffic through the VPN, which is great,…
Lloyd Smart
  • 93
  • 1
  • 1
  • 4
9
votes
1 answer

Static route without knowing the nexthop (linux)

I have an eth3 interface in a linux router, with an adsl modem. This adsl modem is in bridged mode, so the public IP is assigned to eth3 (say 11.22.33.44), and the modem is just not seen by my server. I want to define a static route to a specific IP…
alci
  • 443
  • 2
  • 6
  • 15
9
votes
1 answer

CentOS, two nics eth0 eth1 with different subnets aren't reachable outside VLAN/subnet

I am having an issue with a CentOS 6.3 box. We have two NICs (eth0 and eth1) in the server which each have an ip from a different subnet assigned, let's say eth0:192.168.1.2/24 (gateway 192.168.1.1) and eth1:192.168.2.2/24 (gateway 192.168.2.1). The…
Scott
  • 163
  • 1
  • 2
  • 6
9
votes
3 answers

Limiting interface bandwidth with tc under Linux

I have a linux router which has a 10GBe interface on the outside and bonded Gigabit ethernet interfaces on the inside. We have currently budget for 2GBit/s. If we exceed that rate by more than 5% average for a month then we'll be charged for the…
hookenz
  • 14,472
  • 23
  • 88
  • 143
9
votes
4 answers

Multi-WAN bonding across different media

I've recently been thinking again about a product that Viprinet provide, basically they've got a pair of routers, one that lives in a datacentre, Their VPN Multichannel Hub and the on-site hardware, their VPN multichannel routers They've also got a…
Tom O'Connor
  • 27,480
  • 10
  • 73
  • 148
9
votes
2 answers

deleting filters in tc

I have added a filter in tc as follows: tc filter add dev eth0 parent 1: protocol ip handle 6 fw flowid 1:6 This should be sending packets marked by iptables with '--set-mark 6' to class 1:6. The problem is, I can't figure out how to later delete…
Neal
  • 280
  • 1
  • 2
  • 7
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…
Balázs Pozsár
  • 2,133
  • 1
  • 14
  • 16
9
votes
2 answers

Is there a way to stop relaying network traffic through VPN?

I have been experimenting with VPN lately, and I managed to get it running on W7 PC. The problem is, though, that as soon as someone connects to my PC, the internet traffic from their PC is routed through my PC, or so it seems. Is there a way to…
Coder
  • 367
  • 1
  • 2
  • 9
9
votes
8 answers

Force Juniper-network client to use split routing

I'm using the Juniper client for OSX ('Network Connect') to access a client's VPN. It appears that the client is configured to not use split-routing. The client's VPN host is not willing to enable split-routing. Is there a way for me to over-ride…
craibuc
  • 467
  • 2
  • 5
  • 15