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
1
vote
0 answers

IPv6 multipath routing with configurable weight

With Linux kernel 4.14, when I add IPv6 multipath routes with weights (10 & 30), they are getting added with same weight '1'. IPv4 route does not have this issue. I checked with exact same steps in a different machine with Linux kernel 4.19, where…
m.divya.mohan
  • 333
  • 1
  • 6
1
vote
1 answer

ss --events no output on CentOS 7

I try to monitor continously TCP connections on a CentOS 7 box with the ss utility. If I start ss --events I recieve no events. Is there any trick to enable this? Or is the kernel (3.10) in CentOS 7 too old for the excersise?
krisek
  • 13
  • 2
1
vote
2 answers

Process that adds hosts as unreachable

I have been troubleshooting an issue where users could not connect to a CentOS 7 server from a particular host. I eventually determined that the system considered the requesting host to be unreachable, and so was unable to send any response. Running…
Brett38
  • 11
  • 3
1
vote
1 answer

NetworkManager adding extra default gateway

Using NetworkManager, I am trying to setup multiple interfaces on different VLANs; the primary interface, em1, is used on a development VLAN; the secondary interface is on a dedicated iSCSI VLAN. I am using kernel arguments to launch the host from…
Matt Clark
  • 685
  • 1
  • 10
  • 26
1
vote
1 answer

Unable to Configure WireGuard to Use Secondary IP Address Instead of Main IP Address of the Server

The Setup The main ethernet interface of my server is enp8s0, has one public IP address (116.202.221.254—server's main IP address), and here's how it is set up. # ip addr show enp8s0 2: enp8s0: mtu 1500 qdisc…
its_me
  • 225
  • 1
  • 7
  • 23
0
votes
0 answers

Unable to change link-local address for tunnel with iproute2

I have a couple of HE sit tunnels on Ubuntu 18.04 box. Only first one works as expected and I suppose the reason is almost same link-local addresses (generated from same MAC). What I'm trying is to spoof link-local address of next tunnel. Brand new…
ppmag
  • 1
  • 1
0
votes
1 answer

Filter ss process output without using grep

ss -p can give the process name, process id (PID) and the file descriptor associated with the connection. Example: ss -tuanp [...] tcp ESTAB 0 0 x.x.x.x:59594 x.x.x.x:993 users:(("thunderbird",pid=1985,fd=98)) [...] While the filter…
wget
  • 291
  • 2
  • 8
0
votes
1 answer

tc filter ... ht HANDLE ... does not allow buckets of 8 bits

TC-u32 man page states that HANDLE is: HANDLE := { u12_hex_htid:[**u8_hex_hash:[u12_hex_nodeid]** | 0xu32_hex_value } so the size of the bucket should range from 0x00 to 0xff as it is a u8 value. The problem is I can't create a bucket greater than…
Ethy
  • 11
  • 1
0
votes
1 answer

How to swap(with yum) two rpms on fly?

I'm trying to install MPTCP(Multi-Path TCP) enabled kernel and tools on a CentOS7 box according to the installation doc. It needs 3 rpm packages to be installed. I encounter a trouble when I installing iproute-mptcp_v0.94. [root@c7builder tmp]# yum…
Leon
  • 169
  • 9
0
votes
1 answer

Need to create route to bypass VPN which allocate full traffic as default route

I have 2 VPNs: utun0 and ppp0. ip r s default via 175.15.105.123 dev utun0 default via 192.168.0.1 dev en0 127.0.0.0/8 via 127.0.0.1 dev lo0 169.254.0.0/16 dev en0 scope link 10.0.15.0/24 via ppp0 dev ppp0 When i connect to utun0 then ppp0 stop…
Rinat
  • 111
  • 4
0
votes
1 answer

iptables: Marked packets not routed via configured route

I need to configure a firewall server with two internet lines (A on eth1, B on eth0) and an internal network (C on eth2). Additionally to the default routing table (via A / eth1), I have two routing tables with their own default gateways each. I can…
hey
  • 327
  • 1
  • 5
  • 14
0
votes
1 answer

How to multiple incoming from interface[s]

I have 3 interface(2 wan, 1 local) and enabled forward, but only one incoming interface(ppp0) can to local destination, the following is my iptable command: iptables -t nat -A PREROUTING -i ppp0 -p tcp -m multiport --destination-ports 80,443 -j DNAT…
Cloud
  • 1
  • 3
0
votes
1 answer

How can I add (not replace!) a default route upon OpenVPN connection?

When I run sudo openvpn foo.conf I do not yet have a default gateway defined. Once the connection is established, I run sudo ip route add default via X.X.X.X, where X.X.X.X is the local IP of the newly created tun interface. That works perfectly…
user569825
  • 351
  • 3
  • 6
  • 12
0
votes
1 answer

dump all routes of all tables with iproute2

I want to save all routes of all routing tables. I have this script: #!/bin/bash DUMP=dump.log for i in `seq 0 255`; do routes="`ip route show table ${i}`" if [ ! -z "${routes}" ];then echo "table: ${i}" >> ${DUMP} echo…
darc
  • 103
  • 1
  • 5
0
votes
1 answer

Not able to add static IP with Netplan on Ubuntu 18.04

so I have the following problem. There is dedicated Ubuntu 18.04 host, that is supposed to be assigned a static ip address. There are two interfaces, eth0 and eth1. eth0 ist getting its address via DHCP from the hoster. From the same hoster, we got…
lotophagist
  • 1
  • 1
  • 2