Questions tagged [iproute2]

iproute2 (ip) is a tool used to manipulate network configurations.

The ip command is meant to replace ifconfig/route commands on Linux. This command lets you perform advanced configurations that were not possible with ifconfig/route.

See:

242 questions
9
votes
2 answers

ip link set not assigning IP Address but ifup does

Since ip is set to replace ifconfig, I'm trying to get myself used to using the ip suite of commands. I'm trying to enable my NIC with ip link set eth3 up That doesn't assign an IPv4 address correctly. However, if I run ifup eth3 it works…
chizou
  • 477
  • 3
  • 8
  • 18
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
8
votes
3 answers

What is the local routing table used for?

I am trying to understand what is the local routing table. If I add a random address in it with the following command: sudo ip route add to local dev Now I can ping this address, but no interface listed by…
Lilás
  • 213
  • 1
  • 3
  • 5
7
votes
1 answer

Utilize two gateways on the same network same interface with load balancing

My setup is two ISPs on a single interface and single network. I can either set my default gateway to 192.168.0.1 or 192.168.1.250 and either work. Edit: Netmask (as noticed in the comment) is 255.255.254.0 - as I said, they are on the same…
RushPL
  • 169
  • 1
  • 6
6
votes
3 answers

Advanced dynamic routing with external program

I need to build a system in which i am able to route packets based on a number of parameters, such as port/protocol etc, which are somehow "normal", but also on other aspects, such as queue length, and other external factors. My router is composed…
lbedogni
  • 111
  • 5
5
votes
3 answers

Incoming (ingress) traffic shaping on Linux - bw is lower than expected

I want to limit incoming (download) speed for Linux box. Both, the box, which is configured, and trafic source (HTTP server) are connected to the same switch, if shaping is not configured, download speed is 30MBps I use tc according to…
andreikop
  • 53
  • 1
  • 1
  • 3
5
votes
2 answers

Blackhole route private intranet traffic

I have a private network with a handful of Linux routers all route sharing via OSPF. How do I blackhole private network ranges that I don't have routes for? In other words, I want to be sure I NEVER route 10.0.0.0/8, 172.16.0.0/12 or 192.168.0.0/24…
tMC
  • 215
  • 2
  • 7
4
votes
1 answer

How is Netflix tracking that I'm behind a VPN?

Disclaimer: This is not a "I need VPN to surf Netflix". Surfing without VPN at this site allows Netflix. The question is instead the other way around: "There is a PC that needs to Internet through VPN only, but Netflix detects it is behind VPN.…
Marco
  • 1,709
  • 3
  • 17
  • 31
4
votes
0 answers

Route QEMU VM traffic through hosts VPN

tl;dr Host connects via VPN to the internet and a VM on this host doesn't go through this VPN (but it should). I think the network config isn't quite correct. The host The host (arch Linux) connects to a VPN network using openvpn and a config file,…
theo_retiker
  • 41
  • 1
  • 2
4
votes
2 answers

Physical interface MAC rather than macvlan MAC is sent as ARP response

On Arch Linux ARM (Raspberry Pi) Kernel 4.4.37, I created a macvlan e.g. ip link add link eth0 mac0 type macvlan The macvlan virtual NIC then appears in the list so I assign it an IP address, and set the link state to up. (By the way, I have tried…
bao7uo
  • 1,704
  • 12
  • 24
4
votes
1 answer

VRF on Linux using network namespaces

My ultimate goal is to implement Virtual Routing and Forwarding (VRF) in Linux. The method that seems to be most widely accepted is to set up different network name spaces (one for each separate routing table) and run a Quagga or BIRD daemon for…
4
votes
2 answers

iproute rt_table and mark not working on linux

I have this configuration which comes from official and unofficial guides and questions readings here and a lot of failed tests. CentOS 7 and Ubuntu server 15 (LAMP and only eth0). /etc/iproute2/rt_tables 1 tunnel0 I PREPARE THE ROUTES AND…
fab
  • 151
  • 1
  • 9
4
votes
1 answer

Limiting bandwidth on Ubuntu Linux

I am in the situation where I have to simulate a P2P-environment (for my masters thesis in computer science). To do that I am using Docker with Ubuntu to create a bunch of virtual machines that is gonna be connected in a BitTorrent network. I then…
Kasper Vesth
  • 51
  • 1
  • 7
4
votes
2 answers

How to do policy routing with systemd?

I need to do policy routing on my CoreOS instances which use systemd. But I haven't found any documentation or examples on how to do it with systemd-network. How do I do that? So far I have only managed to create another routing table by adding an…
hookenz
  • 14,472
  • 23
  • 88
  • 143
4
votes
2 answers

Why doesn't TUN device have BROADCAST flag?

When creating a TUN device in Linux, on my machine the created TUN device has following flags: Clearly MULTICAST is listed in there but not BROADCAST. Since TUN device works with IP packets, it's the…
Song Gao
  • 141
  • 1
  • 4
1
2
3
16 17