Questions that include employing tools of the IPROUTE2 Utility Suite, especially ip and tc.

learn more… | top users | synonyms

1
vote
0answers
10 views

How to make an iproute2 bridge setup permanent?

I've set up an archlinux inside a Oracle Virtual Box. To be able to reach the VM from the LAN I have added a bridge adapter and configured the guest system following the instructions from the Arch ...
0
votes
2answers
59 views
+50

alternative to “netstat -s”

netstat -s prints out lot of very detailed protocol statistics like number of TCP reset messages received or number of ICMP "echo request" messages sent or number of packets dropped because of missing ...
0
votes
1answer
29 views

linux how to config route etc/network/interfaces?

how to config route in etc/network/interfaces ? i want add 3 route in eth0 and eth1 i have try to configure like this: auto lo iface lo inet loopback auto eth0 iface eth0 inet static ...
3
votes
1answer
45 views

How can I bridge two interfaces with ip/iproute2?

I know how to create a bridge using brctl, but I have been advised not to use this anymore, and to use iproute2 or ip instead(since brctl is deprecated presumably). Assuming this is good advice, how ...
0
votes
2answers
21 views

What reads /etc/iproute2/rt_tables

To do policy routeing, one needs to add a routing table to /etc/iproute2/rt_tables. I was wondering how this gets read. Is it read by the kernel, or is it read by the iproute2 userspace tools?
0
votes
1answer
26 views

Reset link counters

Preferably without bringing down the interface I'd like to reset interface link counters; bonus points if it can be done with iproute2 tools.
1
vote
1answer
29 views

How to get numerical output in `ip route` command

When using route command, -n switch does the trick. How to get numerical output using ip route command? It's man page does not mention anything similar. Specifically I need 0.0.0.0 instead of default. ...
1
vote
1answer
76 views

Persist ip route and ip rule configurations for Policy Based Routing (iproute2)

Currently running on Fedora Server 23, I've been searching for the right way to persist commands such as: ip route add default via 10.0.2.1 dev ens32 table EXAMPLE_TABLE ip rule add from 10.1.2.50 ...
0
votes
0answers
13 views

Do I get the exact same tcpdump output if I use bond or bridge?

I need to get the tcpdump output. I was unable to set up a bridge but I could set up a bond. Does it matter which one I use when looking at the output of a tcpdump?
1
vote
0answers
23 views

Bridging two interfaces with iproute2 doesn't work

I'm trying to create a bridge between eth0 and eth1 with iproute2, but there's always the error: RTNETLINK answers: Operation not supported when I use the command:ip link add name br0 type bridge. ...
1
vote
0answers
30 views

Not permitted to add eth0 to bond0

I'm trying to add an interface to my bond0 but I always get the error. sudo ip link set dev eth0 master bond0 RTNETLINK answers: Operation not permitted I already tried it with sudo and with ...
1
vote
0answers
40 views

ip link add gives me an error that it's not supported

I would like to set up a bridge with iproute2 like this: Adding bridge : ip link add name br0 type bridge Bringing bridge UP : ip link set dev br0 up Adding interface to bridge : ip link set dev eth1 ...
0
votes
1answer
30 views

Route Locally generated packets to different gateway [duplicate]

I need to send the packets of specific port to different gateway. This is the situation: The server has different services, like http, dns, and mail (smtp,pop,imap), and it has two gateways. eth2: ...
0
votes
2answers
71 views

Direct connection w/ ethernet cable

This is for "research" not pragmatic purposes -- I want to know how this is supposed to work, since my guess below does not. In other words, I do not want an answer that involves ...
0
votes
1answer
44 views

routing table and (iproute2 vs net-tools)

I have the following routing table: # route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.42.129 0.0.0.0 UG ...
2
votes
2answers
93 views

ip route save binary or ascii?

According to ip-route(8) : ip route save save routing table information to stdout This command behaves like ip route show except that the output is raw data ...
0
votes
0answers
25 views

How to route one IPv6 interface to another IPv6 interface

I am following an instruction from this link, it uses ethernet link and assigns bbbb::/64 address, and another interface (/dev/ttyACM0) that has aaaa::/64 address. It has the following network ...
3
votes
1answer
83 views

add route in Linux if sub-net, where gateway is situated, is not configured

I have a PC which has 192.168.1.1/24 configured to eth0 interface. Now if I try to add routes via 10.10.10.254, the ip utility reports that No such process: root@PC:~# ip neigh add 10.10.10.254 ...
1
vote
0answers
25 views

Forward public network around current network

For the purposes of this discussion, I have a very current always-on linux machine with two nics: wifi0 eth0 A very crude diagram of my desired configuration looks like this: ...
2
votes
1answer
53 views

What's ndisc_cache?

Suppose I want to use : $ ip ntable show dev eth0 inet arp_cache dev eth0 refcnt 4 reachable 20744 base_reachable 30000 retrans 1000 gc_stale 60000 delay_probe 5000 queue 31 ...
1
vote
2answers
31 views

How to use routing to use the next available inetface

My system has 2 interfaces (eth0, eth1). I open a socket and bind it with an ip attached to eth0, now I want the OS to route the packets to another ip (which attached to eth1 but i'm not sure it's ...
2
votes
2answers
70 views

traffic routing with DNS

I have 2 gateway machines. 1 debian (main - 192.168.1.1), 1 centos (backup 192.168.1.2). There are 2 networks, 1 LAN and 1 WAN, going through "main" and from there over ISP1 "backup" is on LAN and it ...
0
votes
1answer
38 views

redhat 9 persist default gateway

We changed the IP addresses of our RedHat 9 system that controls a conveyor/sorter system. When originally installed many years ago someone chose 192.0.0.10 as the IP! But for some reason it defaults ...
0
votes
1answer
57 views

“ip rule show” does not take any arguments

I'm trying to get the routing rules for a specific IP but the ip rule command throws an error. Shouldn't this work like the add/del etc. ? At least that seems to me from the docs. $ ip rule list ...
0
votes
0answers
116 views

Why do I get “duplicate” local IP addresses on different interfaces?

I have two network interfaces(a wireless and an USB dongle) attached to an Ubuntu server and both get the same local IP address. Is there any reason for this or a way to force it assign distinct IP ...
0
votes
0answers
51 views

Route dies on Ubuntu 14.04.2

So I have this routing setup in EC2 on a Ubuntu machine: 10.50.0.0/24 dev eth0 proto kernel scope link src 10.50.0.163 x.x.x.x via 10.50.0.80 dev eth0 proto static y.y.y.y via 10.50.0.80 dev ...
0
votes
1answer
580 views

Help translating this `ip` command to `route` command in `post-up` hook

I am having trouble getting a static routing ip command to become permanent by way of the post-up hook in /etc/network/interfaces. Here are the relevant details: /etc/network/interfaces # The ...
2
votes
0answers
270 views

Running a systemd service file after the network is up to bypass an OpenVPN default gateway

I would like to add a static route using a systemd service file on system boot. I have a DMZ network on a separate 192.168 class C network reachable via my default gateway. I also use OpenVPN to ...
1
vote
2answers
470 views

How can I bring up up a non-boot (ONBOOT=no) network interface with iproute2?

Have a network interface that does not come up on boot-up: [belminf@tito ~]$ grep ONBOOT /etc/sysconfig/network-scripts/ifcfg-enp0s3 ONBOOT=no I know I could do the following for DHCP: ...
1
vote
0answers
142 views

How do you create an ip alias using iproute utils?

While reading the O'Reilley book on Apache Web Server, they gave an example on using ifconfig to set ip aliases on an interface: ifconfig ep0 192.168.123.2 ifconfig ep0 192.168.123.3 alias netmask ...
1
vote
1answer
130 views

I need dhclient to flush IP address/routes when link goes down

I am running one Ubuntu Server 14.04 with network configuration using /etc/network/interfaces and so ifup/ifdown scripts. I realised that if I configure one interface in DHCP mode, then I unplug the ...
2
votes
2answers
463 views

iproute2 command to enable a IPv4 address

I am investigating how to have iproute2 commands replace the old ifconfig and ifup ifdown command, and I found out something interesting. My NIC setup is: [16:07:41 root@vm network-scripts ]# cat ...
1
vote
0answers
79 views

Interface on Linux for IP range to divide incoming traffic

In order to divide incoming traffic I use the "ip link" command: ip link add link eno1 name eno1.vlan10 type vlan id 10 I want to do the same for a network range, so that I have a named interface ...
3
votes
0answers
91 views

delay in IP route deletion

(Apologies if this is the wrong StackExchange for this question, but there does seem to be some confusion regarding appropriate targeting of IP networking questions) I am very much a network newbie, ...
0
votes
0answers
454 views

default route of br0 gets dev eth0 instead of dev br0

On my LinuxMint laptop, i have a recurring problem with my bridge br0. On each start up, the default route does not work. The routing table uses eth0 instead of br0 probably because of dhcp. i roam ...
2
votes
1answer
55 views

Make a request through vpn interface

I want to be able to make request through a specific network interface, like this: ping -I eth0.1 google.be ping -I eth0.2 google.be This example works on my multihomed OpenWRT router. I now want ...
2
votes
1answer
229 views

Assymetric routing problems in LINUX

Assymetric routing problems are driving me crazy! I am trying to build a multi-homed server with 3 NICs. Each NIC is connected to 3 different subnets: eth0: LAN connected, 10.99.72.38; function: ...
2
votes
0answers
481 views

how to open up socks/SSH on different network interfaces?

iptables -A PREROUTING -i usb0 -t mangle -p tcp --dport 8080 -j MARK --set-mark 1 iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination Chain ...
0
votes
0answers
30 views

Detailed protocol statistics with ss?

What replaces netstat -es? ss -s doesn't provide nearly enough protocol level statistics.
2
votes
1answer
3k views

what do the numbers mean in ip rule show command

If I type ip rule show command in my machine, I get the output as, 0: from all lookup local 32766: from all lookup main 32767: from all lookup default What do the numbers 0,32766 and 32767 ...
11
votes
4answers
11k views

List ports a process PID is listening on (preferably using iproute2 tools)?

I'm looking to list all ports a PID is currently listening on. How would you recommend I get this kind of data about a process? NOTE: I was surprised I could not easily find an answer to this!
9
votes
3answers
2k views

'ip addr' command shows 'UP' even there is no address associated with that interface

I would like to understand what is meant by an network interface up? Because ip addr or ifconfig command shows an interface as up even when there is no IP associated with it. for example on RHEL7 : ...
4
votes
1answer
197 views

Is nameif deprecated? If so is there an equivalent replacement?

I read that the nameif is deprecated, although I still see it on my Ubuntu 14.04 system. If this command is deprecated, is the command cited for removal or will it still be available? This command ...
3
votes
2answers
3k views

Delete IP address alias by label name

I would like to delete an alias I created using: ip addr add 192.168.1.1 dev eth0 label eth0:100 without having to know the IP address. Basically, I would like to do ip addr del dev eth0 label ...
0
votes
1answer
222 views

Impact of using route command when route doesn't exist or already exist

I made a script for this question Monitor an internet link to a remote host this script will be run by cron and, every minute or so, it will reexecute the commands route add .... route del .... I ...
9
votes
1answer
247 views

What's the exact behaviour of the command: ip address change?

I have been fiddling with IPv6 and address lifetimes. I found out that the valid_lft attribute will make a v6-address disappear automagically, if used correctly. To extend an address' lifetime I would ...
1
vote
2answers
485 views

how to route local ip subnet to vpnc tunnel

I have a vpnc client that will connect to Cisco and I put any information to /etc/vpnc/default then I run vpnc-connect status connected. All routes will be replaced to tun0. The targeted 10.10.0.9 ...
1
vote
1answer
364 views

API for IPROUTE2 in any programming language

Is there any API that can be used to manipulate Linux routing table? I want to write a program that listens to sockets and then modifies routing table accordingly, just a simple code, but need an API. ...
0
votes
1answer
51 views

Adding a route with time-limited validity?

I have read different routing protocols, each one adds routes with limited time validity to routing table. Is there a method in Linux/Ubuntu, without installing any routing daemon, to add a time ...
3
votes
1answer
143 views

How does Linux handle 2 identical destinations in its routing table?

I have this is my routing table (in that order): 10.3.68.0/22 via 172.16.100.9 dev vlan4 10.3.68.0/22 dev eth3 proto kernel scope link src 10.3.69.254 eth3 has ip 10.3.69.254/22. Why does ...