Questions tagged [iproute2]

60 questions
12
votes
1 answer

tc / iproute2, how to list the configuration

This is my first time using traffic shaping and I am wondering how I can list the rules I applied like you can with iptables? Walter
Walter
  • 999
  • 3
  • 15
  • 29
8
votes
1 answer

iproute2 not functioning ("RTNETLINK answers: Operation not supported")

The command and error message: gtwy ~ # ip rule add from 64.251.23.186 table t1 RTNETLINK answers: Operation not supported Older article of the same problem, but it did not help me:…
James Watt
  • 1,815
  • 7
  • 19
  • 26
7
votes
1 answer

IPsec in the Linux Kernel

I have some issues (questions) related tot the Linux Kernel implementation of IPsec and it's user-space interface. The biggest question is which is the actual official project for the Linux Kernel IPsec implementation? From what I understood the…
Catalin Vasile
  • 259
  • 1
  • 3
  • 9
6
votes
1 answer

What does the output of 'ss -s' mean?

I have a problem understanding the output of the Linux ss (socket statistics) command. I can not understand the meaning of the output of ss -s For example: [root@dls2304-1 ~]# ss -s Total: 973 (kernel 996) TCP: 600 (estab 280, closed 73, orphaned…
ruanhao
  • 177
  • 2
  • 10
6
votes
3 answers

Create a virtual network interface using the iproute2 "ip link" command with a spoofed MAC address

How can I create a virtual interface similar to the following ifconfig command? $ sudo ifconfig eth1 hw ether 00:01:02:aa:bb:cc SIOCSIFHWADDR: No such device This does not work. I want to set the MAC addresses to test my DHCP server's…
nelaaro
  • 13,149
  • 30
  • 84
  • 111
6
votes
1 answer

What does “scope” do in ip route and why it is necessary to setup static route in Linux?

If I want to replace default dhcp route rules with static ones, I have to add a rule ip route add scope link dev eth0. Or I will get an error: “Nexthop has a invalid gateway”. Here are my questions: Q1: What does “scope link” mean in ip…
user762750
  • 511
  • 2
  • 7
  • 18
4
votes
2 answers

What is the second "state" in "ip link show" output

1: lo: mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 The UP between the brackets means my link is operationnally up. But what does the state UNKNOWN…
little-dude
  • 167
  • 1
  • 7
4
votes
1 answer

Respond to ICMP while having multiple local tables in Linux

I have an IP range and I want to listen on all IP addresses, assume that is 10.0.0.0/8 Using TPROXY and packet mark I can respond to TCP traffic. This range should be in local table, but I don't want outbound traffic responded locally, so I created…
Naeem
  • 41
  • 4
3
votes
1 answer

Use Shorewall to port-forward requests based on the domain requested to different servers

How can I get my firewall to port forward traffic that is comming into different domain to different servers. So I have two web servers. Each one hosts different domains on different servers/IP: first.domain1.com 192.168.1.1 second.domain2.com …
nelaaro
  • 13,149
  • 30
  • 84
  • 111
3
votes
1 answer

How does iproute2's `ip link show` determine link state?

I have a network interface that ip link show reports like this: 3: docker0: mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default link/ether 02:42:43:e6:b1:e7 brd ff:ff:ff:ff:ff:ff But…
Tom
  • 535
  • 1
  • 3
  • 15
3
votes
2 answers

Which utility uses /etc/network/interfaces

I am attempting to setup a WiFi network with dnsmasq on ArchLinux where I have NetworkManager and iproute2 (not net-tools anymore in ArchLinux). As I am reading some tutorials they offen refer to /etc/network/interfaces when setting up static ip for…
ps-aux
  • 3,715
  • 5
  • 29
  • 40
2
votes
1 answer

Why does my ip-route-add fail silently?

I'm trying to configure host A to use a remote Linux server B as the router to Internet. A's eno50332208 has ip address 172.16.100.131. The interface used as gateway on B has address 172.16.100.128. I use command ip route add default via…
xywang
  • 197
  • 1
  • 2
  • 6
2
votes
1 answer

Understanding "ip route" command

I'm trying to set up a backup route for my network as a safety net when the primary link fails; by adjusting the administrative distance with the ip route command. I have one router (cisco 1900 series) and two modems. My issue is i don't really…
2
votes
1 answer

Different routing rules for a particular user using firewall mark and ip rule

Running Ubuntu 12.10 on amd64. I'm trying to set up different routing rules for a particular user. I understand that the right way to do this is to create a firewall rule that marks the packets for that user, and add a routing rule for that mark. …
Paul Crowley
  • 123
  • 4
2
votes
0 answers

Route based on Source IP Address via 2 gateways on same NIC

In a Linux system, which acts as a gateway on my lan, I would like to route traffic based on source IP addresses. I have 2 network cards and one of these cards has 2 different default gateways. I know I can only have one default gateway on one…
famedoro
  • 81
  • 7
1
2 3 4