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

learn more… | top users | synonyms

1
vote
0answers
26 views

Adding network route for new subnet?

I've found several related questions, but none of them seem to be solving my particular problem. I have a server at 10.a.b.1, and another server at 10.c.d.2. We're in AWS EC2 classic with no control ...
1
vote
1answer
42 views

List *all* IP routes to a destination in the Linux routing table

ip route get 2607:f8b0:4005:804::200e will show me the best (longest prefix) route to google.com, but it does not show all routes that can take me there. Right now I am using ip -6 route show | grep ...
0
votes
0answers
27 views

Multiple records for the same destination in a routing table

When we use a linux machine as a router and we also use iproute to add two rules for a destination (let's say 123.123.123.123) in the default routing table: e.g. ip route add 123.123.123.123 via 123....
2
votes
0answers
27 views

How To Permanently Add Source IP to Route Table Entry in CentOS 5.11

I have a multi-homed CentOS 5.11 server in which I have manually changed the default route entry so that packets are sourced from a particular IP (45.32.6.197). How can I make this change permanent ...
1
vote
0answers
32 views

What's the “default” routing table for in Linux?

When I list the routing rules in my Linux desktop, this is what comes up: $ ip rule 0: from all lookup local 32766: from all lookup main 32767: from all lookup default I've used routing rules ...
5
votes
1answer
114 views

Simulate ethernet cable unplugged on a remote machine while staying connected

I am working from home on remote embedded Linux machine "X" via ssh. It has one physical network card. I need to simulate Ethernet cable unplugged condition on the same remote machine "X" , while ...
0
votes
0answers
19 views

IPTables/IPRoute + Avoiding VPN

I have a debian jessie headless server running an OpenVPN connection. However there is certain traffic I don't want passing through the VPN, and would rather pass through my local gateway. I have ...
0
votes
2answers
34 views

Configuring 2 NIC with 2 gateways

Lets say my router has a LAN (192.168.0.1/24) and a DMZ (192.168.1.1/24). My computer has 2 NICs, one for LAN and one for DMZ. How can I configure my routes so that it uses both gateways instead of a ...
1
vote
1answer
32 views

Meaning of address and route scope

I've been searching information concerning the meaning of scopes both in addresses and routes but I don't understand the documentation I've read so far. This is what I've been reading: man 8 ip http:...
0
votes
1answer
110 views

Configure multiple interfaces with DHCP on CentOS

I am trying to get a DHCP-assigned address for a veth device (veth-inside) inside of a network namespace (myns) on CentOS 7, but dhclient is already running. The veth peer device (veth-outside) is in ...
1
vote
0answers
30 views

'ip netns exec' command execution using nsid obtained from 'ip netns list-id'

I have previously used ip netns exec command to modify netns interfaces. But if there is no name associated with a netns (eg: docker), how can I use nsid result of ip netns list-id command for ...
4
votes
0answers
20 views

Routing policy is not working

I have an Access Point with OpenWrt. On other host of the same LAN there is a squid (IP Address 192.168.80.148). I'd like to route packages with destination port 80 to 192.168.80.148. So I have root@...
1
vote
0answers
34 views

How to determine the logical type of a linux network device

with logical I mean everything legal in the command ip link as in, for instance: ip link add link dum0 name dum0.200 type vlan protocol 802.1Q id 200 where the logical type would be "vlan". All ...
2
votes
2answers
247 views

Meaning of “route add -host xxx.xxx.xxx.xxx dev eth0:1”

if the format is: route add -host 192.168.1.20 gw 10.1.1.20 dev eth0:1 I know, It will route 192.168.1.20 to 10.1.1.20 Then, what's the "dev eth0:1" mean?
4
votes
0answers
105 views

Simulate a network cable unplugged without losing all routes

I want to simulate unplugging a cable from a Linux instance. My initial response was ip link set eth0 down. However, this command has impact on higher-level networking functions, e.g. routes (...
2
votes
0answers
57 views

Why could policy routing on iptables marks applied in FORWARD or OUTPUT chains be inconsistent?

I am routing HTTPS connections down a SSH tunnel (-w) using iptables marks and iproute2 rules, the reasons I need to do it this way are contrived, to say the least, so most alternate solutions may not ...
1
vote
1answer
51 views

ss not showing all ports being listened on

After doing a ssh -fND 1080 localhost, ssh will listen on port 1080 to provide the SOCKS service: box:~$ netstat -ln|grep 1080 tcp 0 0 127.0.0.1:1080 0.0.0.0:* ...
1
vote
0answers
105 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 ...
6
votes
3answers
746 views

alternative to “netstat -s”

netstat -s prints out a 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 a ...
0
votes
1answer
85 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
630 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
98 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
90 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
37 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
271 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
17 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
45 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
148 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
470 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
89 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
167 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 /etc/network/...
0
votes
1answer
70 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
299 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
39 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
272 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
31 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
102 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
34 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
170 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
43 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
90 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 192....
0
votes
0answers
183 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
1answer
1k 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
390 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
915 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: [belminf@...
1
vote
0answers
206 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
203 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 ...
3
votes
2answers
821 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
92 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
115 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, ...