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
1 answer

Ping does not work on TAP interfaces with bridge

I am trying to understand the linux bridging and local ip rules, I have following topology on my linux laptop. br0 ___________|__________ | | |tap0 tap1| …
Haswell
  • 113
  • 2
  • 8
1
vote
0 answers

Use iptables to load balance between multiple AWS elastic network interfaces

Environment: Amazon EC2 m4.4xlarge, running Amazon Linux 2 AMI 2.0 I would like to use iptables to load balance https requests between a set of elastic IPs that are assigned to multiple Amazon elastic network interfaces attached to the same…
1
vote
1 answer

Linux bridge_slave changes automatically to forwarding state

I'm trying to change the state of bridge slaves on Linux brigde system and It has very weird behaviour, changing all the time the port state to forwarding. I.E: Create a bridge with dummy interface as a slave (It occurs with other type of…
1
vote
0 answers

iproute2 routing through multiple networks with rt_tables

This question is similar to many others I've consulted while seeking an answer, both on ServerFault and elsewhere, but I'm stuck because as far as I can see I've set this up correctly but I'm have no joy getting it working. I've set up a simulated…
Marcus
  • 11
  • 3
1
vote
1 answer

"ip rule to" works but "ip rule fwmark" fails - why?

I have a CentOS 6 (kernel 2.6.32) router with working OpenVPN client on it, and I want to redirect some traffic via VPN server. Client (192.168.60.159) sends request to router (192.168.60.6:1443), and router redirects it via VPN connection…
1
vote
3 answers

How to know a virtual NIC's type on Linux?

On a Linux box, I see there exists a lot of virtual NIC's. If I want to know what's the link type when created them using 'ip link add ... type ...', what do I do? Thanks, woody
Woody Wu
  • 191
  • 1
  • 9
1
vote
2 answers

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 of the response looks like this udhcpc: …
1
vote
1 answer

Where to save ip rule, ip route and iptables commands on Debian Stretch?

To make an SSH server work properly while still maintaining an OpenVPN connection, I have a small mixture of ip-related commands I need to persist and run on startup on a Debian Stretch (actually Raspbian) machine: iptables -t mangle -A PREROUTING…
Roxy
  • 113
  • 1
  • 4
1
vote
0 answers

Bidirectional NAT with iptables

In short, I have a cluster system at my hands, for which I have to route traffic through its master. Routing traffic from the nodes to the outside world works, but routing traffic from our department's subnet to the nodes fails. Unfortunately,…
1
vote
1 answer

iproute2 mark vs manual rule in table

I have a problem! So, I have two providers and a routing server on CentOS7. I can not get the marking to work through the second provider. The essence is this: With the first provider everything is fine, it is not highlighted in a separate table. A…
1
vote
1 answer

How to route traffic destined for a port to an IP without altering the destination IP using iptables/iproute2?

I have to collect data from a number (>1000) of devices whose only authentication/authorization is via the source IP address connecting to them. These are network devices whose configuration is relatively static, so changing it regularly or in some…
1
vote
1 answer

How to create a protocol-based default route using iproute2

I'm trying to create two routes -- Send all packets with IP protocol version 100 to 1.1.1.1 (via device eth1) Send all other IP packets to 2.2.2.2 (via device eth2) Reviewing the man pages of ip-route and ip-rules, it seems like I should be able to…
Runcible
  • 3,145
  • 3
  • 23
  • 15
1
vote
1 answer

unable to install source route - RTNETLINK answers: No such process (IPsec / strongswan)

Basically I'm trying to connect a pfSense to an EdgeRouter via IPsec site2site. (public ip networks obfuscated by '1.2.') [pfsense] <-> [edgerouter] public: 1.2.156.229/30 <-> 1.2.112.249/30 tunnel: 10.5.44.100/24 <->…
1
vote
1 answer

OpenVPN with same subnet on two remote sites

i have some issue with an OpenVPN concentrator while using TUN device. The scenario is that: OpenVPN Server VPN Subnet: 10.10.10.1/24 PC1 OpenVPN Client VPN IP: 10.10.10.50 PC Local subnet/IP: 192.168.20.100 PC2 OpenVPN Client VPN IP:…
DarkVex
  • 388
  • 1
  • 14
1
vote
1 answer

Configure iproute2 for multiple NICs and validating

In attempt to avoid split routing for a CentOS 6 server with multiple NICs, I am working on configuring iproute2 to direct traffic that originated from a particular NIC (VLAN) to return only via that NIC instead of the default route set on the…
Eroji
  • 203
  • 2
  • 5
  • 8