Routing (in IP-based networks) is the process of selecting paths in a network along which to send network traffic.
Questions tagged [routing]
1142 questions
4
votes
1 answer
Not understanding the meaning of Genmask in linux routing table
lanix@lanix ~ $ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.0.0.138 0.0.0.0 UG 0 0 0 wlan0
10.0.0.0 0.0.0.0 …

user
- 1,589
3
votes
3 answers
Sending packets out on different vLANs based on the output address port
I have a board sending out two kinds of UDP packets.
On the same board I configured a couple of vLANS:
sudo modprobe 8021q
sudo ip link add link enP2p1s0 name enP2p1s0.5 type vlan id 5
sudo ip link set enP2p1s0.5 up
sudo ip link add link enP2p1s0…

adagan
- 31
- 3
3
votes
1 answer
Routing tables and default routes
I have two rules in my routing tables. The default route, which is to the gateway, and a second route which forwards everything in the network segment to * or to no gateway. Is this second rule necessary so that local packets do not by default go…

rubixibuc
- 1,747
3
votes
1 answer
complex dd-wrt routing setup - is it possible?
I have access to my university's VPN through OpenVPN, and would like to extend it to all the devices at home. I have cable internet, a DD-WRT router, a bunch of clients (mostly Windows), and a RHEL-derivative, two-NIC, always-on PC. Right now, the…

nvja
- 31
2
votes
1 answer
Routing using second interface
I've got a machine I control running Ubuntu 12.10. I'm on a network that will only allow me to have one device connected. I've also got a USB ethernet adapter. I'd like to create a private network hung off that for eg my Raspberry Pi so I can SSH…

TimD
- 123
- 3
2
votes
1 answer
Setting up Public vs Private routing on Ubuntu
I've been looking around for a while and can't seem to find a good answer for this so I thought I'd ask before spending another couple of days banging my head on my desk.
I have a Ubuntu box with two physical interfaces and one virtual interface.
…

UAdmin
- 21
1
vote
0 answers
Is it possible to connect a system running the linux kernel to two separate physical networks with the same subnet on each?
I have a public network (A) and a private network (B) and would like to use a public IP on a host connected to a vlan in network B.
Three entities in this scenario
The ISP gateway: 10.0.10.1
The linux system: (Network A: 10.0.10.2/24, Network B:…

ACiD GRiM
- 61
1
vote
0 answers
Route data between two interfaces
I try to route packets between two interfaces of a virtual Ubuntu 16.04 machine hosted in OpenStack. Following what I found on Internet, here is what I did:
# Enable ip forwarding:
sysctl -w net.ipv4.ip_forward=1
echo 'net.ipv4.ip_forward = 1' >>…

Nakrule
- 246
1
vote
0 answers
Debugging packets disappearing after reception
I'm going to try to make this explanation as straightforward as possible, it's driving me up the wall since I've eliminated every option I can think of.
There are two hosts, we'll call them Alice and Bob.
On Alice 10.242.0.1/32 is assigned to lo…

Kaithar
- 111
1
vote
1 answer
connecting and sending internet traffic through a specific host
I'm not sure it's a routing question - my understanding is too basic. There is the issue:
I am connected to a network as 10.103.38.4 and route goes per default per:
10.103.38.0/24 dev enp10s0 proto kernel scope link src 10.103.38.4 metric 100…

The Arkaroo
- 11
1
vote
0 answers
How to set the source IP for the routing in nmtui?
How to set the source (src address) IP for a routing entry in nmtui? On Centos 7.
from /usr/share/doc/initscripts-9.49.37/sysconfig.txt, the interface config file can have the following line too:
SRCADDR=use the specified source address for…

PeterBill
- 69
1
vote
3 answers
Routing to different subnet via single NIC to another box
I have a home network with 3 subnets (I like to play around!)
I've been struggling with something that I thought would be easy, but after a few days I'm no closer to the answer. My network is depicted in this image
The main subnet is 192.168.1.0/24,…

Vetkop
- 21
0
votes
0 answers
Static routes explained
On my router I'm having a following static routing configuration:
ID
Destination
Subnet
Gateway
Interface
1
0.0.0.0
0.0.0.0
<3-octet base>.1
wan
2
<3-octet-base>.0
255.255.255.0
0.0.0.0
wan
3
192.168.1.0
255.255.255.0
0.0.0.0
lan
I'd…

Tomas
- 101
- 1
0
votes
1 answer
Traffic not being routed to tun interface despite routing rule
I've got a tun interface set up with an IP address of 172.100.0.1. ip addr confirms this. I've also run
ip route add 192.168.0.0/16 dev tun0
ip route list shows
10.2.164.0/22 dev wlan0 proto kernel scope link src 10.2.166.25
192.168.0.0/16 dev…
0
votes
1 answer
How are static routes set
Looking at man ip-route, I see this section under protocol:
static - the route was installed by the
administrator to override dynamic routing.
Routing daemon will respect them and,
probably, even advertise them to its peers.
How does an…