Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [iproute]

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

0
votes
0answers
20 views

Sharing Internet Through a Network Interface

I am trying to share internet to another device using USB NCM functionality. I have successfully configured usb0 interface. However, I am not sure how to share internet. So far I have done: On the ...
-1
votes
1answer
33 views

How to route between two bridge interfaces?

So I have a total of two bridges. One has the 10.0.0.1/24 subnet (br0), and the other has the 10.1.0.1/8 subnet (br1). I want to setup an NGINX reverse proxy that would run on a container connected ...
0
votes
1answer
47 views

For veth pair, ping does not recognize interface name and tc qdisc netem does not work

I have Ubuntu 16.04 LTS with hwe kernel 4.13.0-39-generic. I configure the veth pair in the default network namespace as follows: $ sudo ip link add h1-eth0 type veth peer name h2-eth0 $ sudo ip ...
-5
votes
1answer
45 views

What are the differences between `-f` and `-A` of `ss`?

What are the differences between -f and -A of ss? Which of -f and -A is related to -t, -u, -4, -6, -w, -x? Does -A inet,packet imply -A tcp,udp,raw? I know a few socket concepts, but can't figure ...
0
votes
0answers
27 views

How do I make public on the physical network a local virtual bridge

I'm using Ubuntu (Bionic, 18.04) both on remote servers and on my laptop. In wide scope, I am trying to provide direct network access to VM, currently it works via NAT (with port forwarding). libvirt ...
0
votes
1answer
18 views

Adding a loopback interface

I would like to "overwrite" IP addresses that already exists on the public internet. So, I want to create multiple loopback interfaces on a machine, so I can ping any IP address that I configure from ...
2
votes
2answers
61 views

Is there a way to save current state of network configuration in linux into a datafile or set of ip commands like iptables-save?

Let's say I ran quite a few ip commands and ended up with a required network configuration, but I didn't save the command history. Instead of rewriting commands in a file or script again, is there a ...
0
votes
0answers
48 views

Why does `systemd-nspawn -n` network namespace not show in `ip netns list`

tl;dr Linux has namespaces, in particular, network namespaces. It seems the namespace supposedly created via the -n flag when running systemd-nspwawn does not show up when employing ip netns list (...
4
votes
1answer
62 views

How do I find all interfaces that have been configured in Linux, including those of containers?

I know that you can display interfaces by doing ip a show. That only displays the interfaces that the host can see, but virtual interfaces configured by containers don't appear in this list. I've ...
1
vote
1answer
48 views

managing multiple proxies in linux

I use different proxies for different purposes. I use shadowsocks proxy for my general purpose web surfing. For going to bank websites, I disable proxy. For accessing some websites related to my ...
1
vote
1answer
62 views

What do `<expire_time>` and `<retrans>` mean in the output of `ss -o`?

ss -o shows TCP timer in the following format: timer:(<timer_name>,<expire_time>,<retrans>) What do <expire_time> and <retrans> mean? I found <expire_time> ...
0
votes
2answers
223 views

What is “inet prefix”?

$ ss 'state = established' Error: an inet prefix is expected rather than "state". Cannot parse dst/src address. What is "inet prefix"? What is valid "inet prefix"? Thanks.
-2
votes
1answer
36 views

What is timer information shown by `ss -o`?

man ss says -o shows timer information. What is timer information? I can't tell it from ss -o and ss without -o. Thanks.
-1
votes
2answers
118 views

Where is the official documentation (Debian package iproute-doc)?

Manpage of ss says: FILTER := [ state TCP-STATE ] [ EXPRESSION ] Please take a look at the official documentation (Debian package iproute-doc) for details regarding filters. What does that ...
1
vote
1answer
49 views

Programmatically find unused Linux IP route table ID?

As part of a script, I'd like to temporarily add a route table for the duration of the script. ip route add default via "${ip}" dev "${dev}" table "${table}" . . . ip route flush table "${table}" If ...
2
votes
0answers
105 views

Routing: multiple interfaces/subnets on same device

I am using a debian based gateway for my network. It has four interfaces: eth0: dynamic (connected to ISP) eth1: ip 192.168.1.1 connected to a switch dnsmasq assigns ip addresses to connected ...
2
votes
1answer
47 views

Interface both up and down?

$ ip link | grep vboxnet 10: vboxnet0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000 In the angle brackets, it says UP. What do the angle ...
3
votes
1answer
64 views

ip-rule doesn't work with ToS greater than 0x10

There is some weird behavior of ip-rule with specific IP ToS-values. It works fine just with values up to 0x10, but doesn't accept DSCP-part. I tried: ip ru a tos 0x20 table 1234 And got: ...
0
votes
1answer
165 views

Access IP address on different subnet without gateway

I have an USR-TCP232-S2 IP-to-Serial converter and I would like to access it over Ethernet to set it up. The module comes with a fixed IP address 192.168.0.7. My PC (Lubuntu 18.04) is however on a ...
0
votes
1answer
138 views

Configuring Linux Mint as a Gateway

My trusty Slackware box died, and I had to replace it with an already built Linux Mint v18. I was hoping this would be a drop-in replacement, but routing has changed over the years with iproute2. I ...
0
votes
1answer
158 views

How to persist iproute2 routes and rules in Alpine Linux?

I'm trying to persist (between reboots) routes and rules from iproute2 in Alpine Linux, so far without success. Here are the commands: ip route add default via 192.168.200.1 dev eth1 table net2 ip ...
1
vote
1answer
100 views

How to inspect decrypted TLS/SSL traffic in Wireshark from program not supporting SSLKEYLOGFILE?

TL;DR: I feel I'm pretty close to doing so by using sslsplit's interface mirroring, but I ran into an issue where the kernel is not replying to ARP requests that sslsplit is sending out on the ...
1
vote
1answer
36 views

What is a Linux IP route without outgoing network interface (RTLINK answer lacking `RTA_OIF`) and how do I create one for testing?

When using RTLINK to query the available IP route from a (network-namespaced) Linux kernel, I noticed that on one test system RTLINK returns a route without a RTA_OIF attribute, that is, without an ...
0
votes
0answers
13 views

2 VMs, communicating with static ipv6

In an attempt to better understand IPv6 routing, I've set up 2 Linux virtual machines on the same computer, that are bridged to 2 different NICs. The NICs are connected via physical cable. However, ...
-1
votes
1answer
37 views

what does the wildcard expression mean in command ss?

ss -lnt State Recv-Q Send-Q Local Address:Port Peer Address:Port LISTEN 0 128 127.0.0.53%lo:53 0.0.0.0:* LISTEN 0 128 0....
0
votes
1answer
172 views

How to make ip commands persist

I have a script (bottom of question) which adds a dummy link, adds some addresses to that link, and adds some routes to that link. How can I make ip link, ip addr, and ip route commands persist? I'...
0
votes
1answer
274 views

How to set persistent static routes in KDE desktop system with NetworkManager and systemd?

I have two NICs. In NetworkManager > IPv4 > Routes, I checked "ignore automatically obtained routes" for both interfaces. Then I used these two commands: $ sudo ip route add default via 192.168.1.1 ...
1
vote
1answer
207 views

Virtual NICs in Ubuntu 18.04

We are a group of students completing a development project unit at the University of Sydney. We have had difficulty with linux routing, and would really appreciate being pointed in the right ...
0
votes
1answer
390 views

Namespace management with ip netns (iproute2)

I would like to know where to look up changes applied to custom namespaces. Let's say I have a namespace "ns1" with virtual interfaces "vpeer" and "lo" inside and I would like to modify configurations ...
1
vote
1answer
135 views

Output of `ip route show` seems incomplete: no default route, but internet is reachable anyway

On my Android phone, where I have a Debian system running in userspace (apt, GNU tools, and other software runs in a chroot, accessible through ssh), the routing table seems incomplete. Output of ip ...
1
vote
0answers
195 views

How to run ip netns exec without password?

I'm on arch and am using a network namespace wiredlan for ethernet, using it for LAN based applications and big downloads. I run commands/apps on the netns as: alias runonlan='sudo ip netns exec ...
2
votes
1answer
47 views

Bad IP route after restart network

I would like to make a IP route persistent, but it disappears after a reboot or service restart. here my net conf : 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1 ...
0
votes
2answers
109 views

How can I validate parameters before calling “ip route add”?

I am using a program which sets etcd parameters which are expanded to calls to "ip route add ..." and I need those calls to succeed without error. The template uses a format such as: ip route add &...
0
votes
2answers
1k views

Route a specific host to different gateway

I have a basic Ubuntu 18.04 setup where the computer has two interfaces - one for internal (enp4s0) and one that heads to the internet (enp5s0). On the internet interface I successfully have a VPN (...
-1
votes
0answers
19 views

Routing issue when setting rules [duplicate]

I have two interfaces on my ubuntu 12.04: eth1 10.206.0.1 and eth2 10.206.0.2 in the same subnet. my goal is to create rule that- if ARP request comes to eth1, eth1 response back with its MAC ...
1
vote
1answer
393 views

How to delete ip route by URL?

After running a (probably broken) openvpn script, I have an IP route table where one entry is a URL: # netstat -r Kernel IP routing table Destination ...
2
votes
1answer
391 views

Docker container hits iptables to proxy

I have two VPSs, first machine (proxy from now) is for proxy and second machine (dock from now) is docker host. I want to redirect all traffic generated inside a docker container itself over proxy, to ...
2
votes
1answer
256 views

iptables NAT multiple devices with same IP address

I have a challenging situation where I have 5 devices which act as wireless access points. I need to be able to access TCP 8080 on each device from a central device. All wireless devices have a 192....
1
vote
1answer
53 views

Linux packet routing [closed]

I'd like to route traffic from one Ethernet to another only if a given rule is met. The "rule" is as follows : if a specif value (numeric or string) is found within the packet - the traffic is ...
2
votes
1answer
204 views

Converting 'ifconfig wlan0:avahi …' command to use ip instead of ifconfig

I am currently working on setting up a wireless mesh network using babeld as the routing algorithm. The documentation is very sparse, and most of the configuration guides I've seen online are using ...
0
votes
0answers
91 views

Setting up classless static routes manually in GCE

In GCE, the DHCP server return the IP address with mask of 32 bits. Making the instance the only one in its subnet. It also return couple of static routes (RFC3442) that need to be configured. Example ...
1
vote
1answer
326 views

How to route traffic over specific interface on linux (debian)?

I would like to route traffic over usb0 (a cellular modem) when it is available instead of eth0. The ip address for usb0 may change over time. How do I create a route in this scenario since the ip ...
0
votes
3answers
74 views

Script to change state of wireless card

Seeing as the hotkey on my laptop doesn't change the state of my wireless card, I wanted to create a short script that would do so and then map it to that key. My research tells me that .sh files are ...
1
vote
1answer
32 views

Mutiple default routes

I have connected two server via vpn. Server A hosts all container and server B is just a simple router. I need to attach to both server via ssh, as so, the default route of ppp0 (server A) and eth0 (...
2
votes
1answer
241 views

How to get pppd to create ppp0 inside namespace?

I have a simple pppoe connection which is working fine. A simple # pon my-isp creates a ppp0 device. I have defined a namespace like ip netns add physical but after ip netns exec physical pon my-...
1
vote
1answer
167 views

UDP socket in UNCONN state when using iproute2's ss

While editing some firewall rules on a machine that has an OpenVPN client running, I was trying to determine its remote port, as I usually do, using ss. # ss -anup | grep openvpn UNCONN6528 0 0....
0
votes
0answers
115 views

Prioritize outgoing network traffic across multiple interfaces

Background My Ubuntu server is configured with a VPN Split Tunnel (all traffic from one user is sent through a VPN, while the rest of my traffic is sent normally). Therefore, I have two main network ...
1
vote
2answers
580 views

Debian IPv6 routing

I'm need to add gateway from server dashboard page to routing list for accessing IPv6 from internet and I try to do this using ip -6 route add default via <gateway ipv6> but i geted this error ...
0
votes
1answer
204 views

Interface creation via iproute2 resulted to “Cannot find device” error

I'm trying to create additional interface with preconfigured static IP. So I added configuration into /etc/network/interfaces auto eth88 iface eth88 inet static address 10.10.0.1 netmask 255....
0
votes
1answer
419 views

What exactly does these ip lines do?

I found these lines awhile ago reading forums, that allow me to access ssh from inside my VPN when it's turned on. Can someone explain what they do so I may tweak it to allow other traffic from ...