Questions tagged [iproute]

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

Filter by
Sorted by
Tagged with
2
votes
1answer
81 views

iptables -p with protocols other than tcp/udp

As per my understanding iptables work on transport layer (layer 4) and any packet filtering that happens is based on the ip protocols for layer 4 like tcp and udp. So if we enter protocols like esp, ...
0
votes
2answers
23 views

Access internet when connected to VPN

I am connected to a VPN network through a pptp connection. The target network does not provide Internet access, thus I can't connect to it. How should I route my Internet traffic through my existing ...
1
vote
0answers
16 views

Why does a network interface lose its IP address when moved to a different network namespace?

Suppose I use ip-link(8) to create an interface, test-macvlan, and assign it the address 10.11.12.13: # ip link add link eno1 name test-macvlan type macvlan # ip address add 10.11.12.13 dev test-...
0
votes
0answers
31 views

ip route add fails with next hop invalid although next hop on directly connected network

When I check the routing table I get following information: root@vmi24:/home/user# ip route default via 194.104.212.225 dev eth0 onlink 194.104.212.224/27 via 194.104.212.225 dev eth0 When i want to ...
0
votes
0answers
17 views

ip address show (iproute2) filter by ifindex

Is there a way to filter by ifindex like: ip address show ifindex 284 ifindex being the interface index. At the moment I am using egrep ip a | egrep "^284"
0
votes
0answers
37 views

Policy based routing with multiple gateways per network

Im trying to find a solution for a server that has multiple networks each with multiple gateways with potentially overlapping network numbering. i have used policy based routing to solve some of it. ...
0
votes
3answers
32 views

Linux behaviour: network route without a gateway

I have come across a Linux system where some routes through Ethernet interfaces are configured without a gateway specified. I have always thought that routes where an interface is specified instead of ...
0
votes
0answers
7 views

ping failed when bind interface but success when bind address?

Ubuntu add a usb network interface: enx00e04c3603ac Link encap:Ethernet HWaddr 00:e0:4c:36:03:ac inet addr:192.168.3.110 Bcast:192.168.3.255 Mask:255.255.255.0 inet6 addr: fe80::2e0:...
0
votes
0answers
22 views

Set can baudrate with ioctl or similar from C/C++

I'm currently setting the baudrate of my can0 with ip link: /sbin/ip link set can0 up type can bitrate 250000 I'm just wondering how to do the same from within C/C++?
0
votes
0answers
74 views

Mysterious altnames on bridge interfaces

I have a bridge interface setup at boot by network manager so I can easily run virtual machines however recently it has been setting weird altnames at boot. I have an altname U and an altname П. When ...
1
vote
0answers
14 views

Tunnelling IP Multicast traffic between two residential networks or machines

The Ableton Link music synchronization service operates by broadcasting and receiving messages via an IPv4 multicast group in the "Ad-Hoc 2" address block. In order to use the protocol to synchronize ...
2
votes
1answer
97 views

ip link set <interface> up / down: how are scripts called?

Depending on the distribution, invoking ip link set <iface> up (or down; also ifup / ifdown) will look at various config files (/etc/network/interfaces on Debian I think, Gentoo has /etc/conf.d/...
0
votes
0answers
30 views

Why there is only one default route despite setting two gateways in '/etc/network/interfaces'?

/etc/network/interfaces like that: # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto enp3s0 iface enp3s0 inet static address 192.168.3.250 netmask ...
1
vote
1answer
192 views

No Carrier error when creating tap Interface for KVM Bridge

I have tried to create tap interface (tap210i0) manually for kvm. But each time the Tun device shows NO-CARRIER. I have interfaces eno1, eno2, vmbr0 and tap210i0. eno1 and eno2 are slaves for vmbr0. ...
0
votes
0answers
31 views

IP Routing - Multiple Interfaces

I am using Elastix 2.5 (CentOS 5.11) with 4 NIC's (1 for WAN and 3 For SIP Trunk using IP Authentication) eth0 - WAN IPADDR=75.XX.XX.162 NETMASK=255.255.255.240 GATEWAY=75.XX.XX.161 eth1 - SIP ...
0
votes
2answers
34 views

How to use two network range in single network?

I have a single private network 10.51.8.0/23 (say NetworkA). On the physical network running NetworkA I have single host (say HostA) with IP 172.16.0.24. My intention is to reach HostA from NetworkA. ...
0
votes
0answers
20 views

Define specific outbound public IP in servers in single network behind NAT

Case: I have two CentOS7.5 servers in a single private network. There's a external NAT router for public routing. No server firewall enabled or anything fancy. Servers are not aware of external IPs, ...
0
votes
1answer
18 views

Can't configure linux routing, can't ping outside resources

I've setup a Linux CentOS 7 virtual machine inside VirtualBox with 'host-only network interface'. Thus I now have a Linux guest with one eth interface and a Windows 10 host with three interfaces: ...
0
votes
0answers
13 views

Authentication for iproute2 tunnel

I'm looking at creating a simple point to point tunnel using iproute, as described here: linux.it But something very basic is bothering me...there is no authentication. Does that mean the IP ...
0
votes
0answers
40 views

Connect to VPN server via VPN client which is a NAT instance

Main question is how to connect to a vpn server via a vpn client which is a NAT instance, let me describe about it. Scenes 1: I have a group of service instance(ubuntu 18.04) named A One instances ...
2
votes
1answer
344 views

Route all traffic through openconnect

I'm trying to connect to a business VPN (Cisco AnyConnect). I'm utilizing openconnect and a connection has been established. That connection is also seen by the ip add command. The default route ...
1
vote
1answer
252 views

networkmanager-strongswan vpn - routing specific ip through VPN

I'm trying to setting a VPN on Linux Mint 19.2. I'm using the network-manager-strongswan so I added this file named VPN under /etc/NetworkManager/system-connections/ [connection] id=VPN uuid=...
1
vote
2answers
45 views

is there a more convenient version of iproute (ip a d)?

Using the iproute2 command ip address delete (or shortened ip a d) allows to delete a protocol address (see man ip address) Problem ip a d is rather inconvenient in its usage, requiring more ...
2
votes
2answers
270 views

Debian ignores static IPv6 configuration

Original post I'm trying to configure a static IPv6 address for my Debian container (running on LXD) but the system keeps ignoring my configuration. Currently my /etc/network/interfaces looks like ...
3
votes
1answer
1k views

Understanding ip route output

I am learning about Linux routing, routing tables, IP routing, etc... The following is the output from ip route followed by the output of route: default via 192.168.1.1 dev wlp0s20f3 proto dhcp ...
1
vote
1answer
85 views

iproute2 table 0 is different from table local

We all know that these commands generate the same output: ip route list ip route list table 254 ip route list table main And this command lists some special rules related to local and broadcast ...
2
votes
1answer
92 views

Get which /dev/tapX got associated to a macvtap without guessing

Following this guide to setup a macvtap works great. An excerpt from the guide loosk like this: # ip link add link eth1 name macvtap0 type macvtap # ip link set macvtap0 address 1a:46:0b:ca:bc:7b up #...
1
vote
2answers
198 views

How can a global scope be invalid when creating a route with the “ip” command?

I'm trying to create a static NAT, but when I run the command ip route add nat 172.31.19.02 via 10.0.2.2, it gives me the error Error: Invalid scope., and it gives the same error when specifying a ...
0
votes
1answer
27 views

Route not restored for alias interface

I've this network configuration on a Debian 10 Buster: auto lo iface lo inet loopback allow-hotplug enp3s0 iface enp3s0 inet static address 192.168.0.175 netmask 255.255.255.0 ...
1
vote
1answer
133 views

`ip route add` does not allow duplicate entries, can I depend on that?

If I add a route with ip route add 172.10.1.0/24 via 10.0.0.100 dev eth0 and then execute the same command a second time, it fails because the route is already present. I don't see that behavior ...
1
vote
1answer
500 views

Problem when resetting the default-gw at flushed routing-table

I have an interface enp7s0 at 192.168.0.11. My router is 192.168.0.1. My routing-table is Ziel Router Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.0.1 ...
0
votes
1answer
230 views

How to share internet from 1st interface to devices connected to 2nd interface?

How can I set up networking such that devices in a local network connected to the second ethernet interface could use the internet available on the first ethernet interface? Using iproute2 I have ...
0
votes
0answers
42 views

Keep Static IP Routes after Network Unreachable error?

I am use iproute2 to route traffic from one VM via another in a networking simulation, all involved VMs are running Ubuntu 16. ip route add default via 172.22.0.3 If I "unplug" the VM from its ...
0
votes
0answers
98 views

The bucket size in TC-HTB

I study the behavior of tc-HTB. I did a tc setting like the below. After reading The bucket in tbf, I expect its burst size will be rate / HZ. sudo /sbin/tc qdisc del dev s1-eth1 root sudo /sbin/tc ...
1
vote
0answers
278 views

Two default routes with same metric

Using NetworkManager on CentOS 7.6 I was able to create two default routes with same metric: # nmcli connection eth0 modify ipv4.route-metric 10 # nmcli connection eth1 modify ipv4.route-metric 10 # ...
0
votes
1answer
53 views

Routing outgoing packets to the eth0 interface based on source port

I'm using an OpenVPN client on my server so all the outgoing traffic is routed through the tun0 interface created by the VPN. I still want to run public-accessible services like SSH (on port 22) and ...
1
vote
0answers
31 views

ip link add fails when run in a script

I have docker container where I need some dummy interfaces. It is based on Ubuntu 16.04 and it has the NET_ADMIN capability. The following command works # ip link add dum0 type dummy However, when ...
2
votes
1answer
686 views

Open vSwitch datapath and linux bridges

I am trying to understand the internal mechanism of how Open vSwitch leverages the linux infrastructure, specifically difference between OVS bridges and br-xx (linux bridge). I am new to this field, ...
1
vote
0answers
297 views

Connect local IP camera to cloud VPS via Openvpn tunnel using DNAT and SNAT

I'm running two IP cameras on my local network with RTSP turned on. I have zoneminder (camera recorder) hosted on my local network and camera streaming directly to it using RTSP. However, I need to ...
0
votes
1answer
114 views

Is there a file for ip neigh show

I am looking for the file containing the output of ip neigh show command. I need the file as I can't invoke command and redirect as per requirement. The closest thing I found is the file /proc/net/arp....
3
votes
3answers
2k views

How to utilize Windows 10 Connection Sharing to Access ZScaler protected Websites on Linux / Ubuntu 18.04

How can I use ZScaler to access protected websites via Ubuntu without a dedicated Ubuntu client?
0
votes
2answers
3k views

Prevent netplan from creating default routes to 0.0.0.0/0

I have running an Ubuntu 18.04 with 2 ethernet NICs. On both NICs I'm using DHCP. How can I prevent netplan from creating a default route to 0.0.0.0/0 on both devices? I want one NIC routing to 0.0.0....
2
votes
1answer
832 views

How can I get the ipv4 address from `ip link` like I used to see with ifconfig?

When I run ip to get the ip address, I'm getting $ ip link 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000 link/loopback 00:00:00:00:...
0
votes
0answers
42 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 ...
0
votes
1answer
667 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
808 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
94 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
1answer
571 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 ...
3
votes
3answers
3k 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 ...
5
votes
1answer
513 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 (...

1
2 3 4 5