Questions tagged [iproute2]

61 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
  • 1,039
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,823
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…
7
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…
William
  • 691
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
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
  • 14,139
  • 30
  • 88
  • 115
5
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,815
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…
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
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
  • 14,139
  • 30
  • 88
  • 115
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
  • 604
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
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

Convert ifconfig command to iproute2

I am using this ifconfig command to set IP on a network interface ifconfig eth0 x.x.x.x netmask x.x.x.x mtu 1400 Now they say that ifconfig is deprecated and I should use iproute2. I converted that command into two commands: ip addr add x.x.x.x/24…
kuchi
  • 153
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. …
1
2 3 4 5