Questions tagged [iproute]

40 questions
14
votes
2 answers

Use ip route add to add multicast routes to multiple interfaces

TLDR: Is there a way to use "ip route" to add multicast routes for multiple NICs? We have software that uses two multicast groups to communicate with two different groups of devices on two separate physical networks. With the exception of this…
gnac
  • 243
  • 1
  • 2
  • 7
6
votes
3 answers

Multiples ip address on interface. I want to specify one of them for output

I ran curl on curlmyip.com, and I got the wrong output ip address. My systemd service file is: [Unit] Description=Wired Networking Wants=network.target dibbler-client.service Before=network.target…
Cubox
  • 118
  • 1
  • 2
  • 12
6
votes
1 answer

iproute: disable "tc" command

I'm after running this command to simulate a network latency of 500ms with 100ms std deviation: tc qdisc add dev eth2 root netem delay 500ms 100ms Trouble is, I forget how to cancel this command! My computer currently has an awful latency and I…
Eamorr
  • 596
  • 5
  • 13
  • 27
5
votes
1 answer

Routing traffic to two NICs on the same network

I have a few linux test boxes on Scaleway, each having 2x NICs that are all connected to the same network 10.0.0.0/8 but each has its own gateway. I want to be able to use both NICs (eth0/eth1) and their IPs for communication. So if applications…
Vad1mo
  • 268
  • 2
  • 14
4
votes
1 answer

Linux: ip alias versus iproute

When setting up a web server with multiple IP-based virtual hosts, I've always used the eth0:x alias notation in /etc/network/interfaces. The wiki on my hosting provider states however that this is deprecated and one should now use the iproute…
Frank Brenner
  • 321
  • 1
  • 3
  • 9
4
votes
2 answers

Same netmask or /32 for secondary IP on Linux

There appear to be (at least) two ways to add a secondary IP address to an interface on Linux. By secondary, I mean that it'll accept traffic to the IP address, and responses to connections made to that IP will use it as a source, but any traffic…
derobert
  • 1,288
  • 12
  • 22
3
votes
2 answers

Linux GRE - ip tunnel vs ip link

Can someone please explain the difference between linux ip tunnel and ip link command when it comes to configuring tunnels (such as GRE, IPIP, or VXLAN)? I can see that I can configure a GRE tunnel, for example, in two ways: ip link add name gre1…
FitzChivalry
  • 177
  • 8
3
votes
0 answers

"ip route get" on Ubuntu returning default instead of static route

We've been trying to solve this seemingly simple routing problem for days. We are trying to route traffic through an OpenVPN tunnel. Specifically, traffic to 10.0.1.136 should be routed through our tunnel interface. Thus we've added the route "…
2
votes
2 answers

OpenVPN client lan to reach Server lan

I have OpenVPN Server running in VPC and client running in office network. Have following table on 10.24.11.37 # route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 10.24.11.0 0.0.0.0 …
roy
  • 119
  • 1
  • 2
  • 12
2
votes
1 answer

From specific source IP to specific destination IP with ip route or ip tables

Problem I've already created different IP aliases, (each with a different virtual Mac Address too) this way on my shell: ip link add link eth0 address 00:11:11:11:11:11 eth0.1 type macvlan ifconfig eth0.1 172.17.1.15/21 up I have used eth0.1…
fqlenos
  • 23
  • 1
  • 5
2
votes
2 answers

hostapd not working anymore

I had a working hostapd file and a functioning wifi hotspot (device is busybox, iMX6 board). While the hotspot was up and running, I was doing manual routing connected to the device via ssh (I'm able to connect this device via another device's…
user522636
2
votes
1 answer

Why Linux continues to use disconnected ethernet interfaces?

I have a Linux system with two ethernet interfaces, eth0 & eth1, which are used on the same subnet. At times, I see that even when one of the interfaces is disconnected (cable unplugged), Linux continues to use its IP address. For example, if eth0…
2
votes
0 answers

NAT for multiple servers with iptables over OpenVPN

I have successfully created an OpenVPN Network (server hosted in a VPS) 10.8.0.0/255.255.0.0 for my home needs, and clients that support OpenVPN clients can connect through the server and connect between them successfully. There are also some…
hargikas
  • 21
  • 2
2
votes
2 answers

ip route get recognizes address as anycast

# ip route get 1.2.3.4 anycast 1.2.3.4 dev eth0 src 5.6.7.8 and the question is how does it know the address is an anycast ? (which apparently is true). UPDATED: Present as anycast route: root@hv2 ~ # ip route get 1.2.3.4 anycast 1.2.3.4 dev eth0 …
pawel7318
  • 203
  • 1
  • 2
  • 10
1
vote
0 answers

Static route not working in CentOS 7.6

UPDATE: There was nothing wrong with the OS. The gateway for the static routes had some double NAT rules which caused the traffic to be dropped. I have a simple network setup on a CentOS server. The server has only one…
Fanttazio
  • 11
  • 3
1
2 3