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
0
votes
2 answers

How do i modify route tables in EC2 instance to send traffic via eth1?

I have an ec2 AmazonLinux2 instance. It has a primary nic on eth0. I went ahead and attached another eni (with an associated public ip) eth1. I would like to make sure that I can send traffic via the eth1 as well but unable to. curl --interface eth0…
0
votes
0 answers

Clients couldn't query DNS server listening on router interface's secondary IP

I have a router where its interface has two IPs $ ip addr br-lan: mtu 1500 qdisc noqueue state UP qlen 1000 link/ether brd ff:ff:ff:ff:ff:ff inet 192.168.3.1/24 brd 192.168.3.255 scope global br-lan …
hgl
  • 167
  • 6
0
votes
1 answer

Auditing specific route table operations

Does Linux have a way to audit operations run against a specific route table? I have the following config in my custom route table: default dev tun0 scope link 192.168.100.0/28 dev eth0 scope link for an unknown reason some processes remove the…
Mazzy
  • 227
  • 3
  • 11
0
votes
1 answer

ipsec xfrm esp routing

i need a little help/explanation why the following netsetup is not working: PC1 (192.168.66.1) <-- PLAIN --> (192.168.66.2)PC-GW(192.168.88.2) <-- ESP --> (192.168.88.1) PC2 I can send packets from PC1 192.168.66.1 to PC2 192.168.88.1 and the PC-GW…
kita
  • 3
  • 1
0
votes
1 answer

CentoOS and IP RULE

I don't understand my situation. I have a network lab like on a picture. I can't ping 192.168.5.1 from 192.168.1.2 then the 192.168.5.1 has 192.168.4.2 like a default gateway. Linux# ip route default via 192.168.4.2 dev eth1 proto static src…
Paravozik
  • 23
  • 1
  • 5
0
votes
1 answer

How to bridge an internal network interface to an OpenVPN tun/tap device

I'm using a two-VM setup wherein the first VM, machine A, has a closed, private LAN shared with the second VM, machine B, which has a second network interface that is configured to hit the internet. Both adapters for the internal LAN are configured…
0
votes
1 answer

Linux internet default gateway + VPN default gateway

I'm currently using a barracuda vpn client to connect to a vpn, which sets a default gateway for the vpn, routing all traffic through it. I've read about iproute2 and secondary routing tables, but my question is: since I don't have access to the…
Thin_icE
  • 1
  • 3
0
votes
2 answers

Can't ping between interfaces on one device on the same network

There is a device, let's call it 1, on network A Device 1 has two interfaces, eth5 and eth7 There is a device 2 on network A Pinging from eth5 to device 2 works Pinging from eth7 to device 2 works Device 2 can ping eth5 and eth7 BUT, pinging from…
RAZ_Muh_Taz
  • 115
  • 2
  • 8
0
votes
1 answer

Routing between two networks

Basically I would like to know what should I do to connect two PCs in different networks and make them to see each other. The diagram is like the following linux-pc-1-1 (192.168.0.2 eth0) <---> (192.168.0.1 eth0) linux-pc-1 (10.0.0.1 eth1) <--->…
0
votes
0 answers

how to apply TC htb class to each of IPs in an IP range separately?

I use HTB for TC and mark packets with iptables. First I mark a range of IPs (like 192.168.1.0/24). Now I want to apply a htb class to each of these IPs separately. If I add a class and a filter for this mark, this filter applies to all IPs in this…
0
votes
1 answer

OpenVPN Server on a Multi-WAN Router

I have a OpenVPN Server on a MultiWAN Router (Ubuntu Based). The Problem is, that incoming packages not leaving the same WAN interface where they entered. I tested already with iptables MARK rules in combination with ip rules, but could not fix the…
Thomas
  • 177
  • 3
  • 13
0
votes
1 answer

gretap tunnel return traffic not being handled

I'm using iproute2 to add a GRE layer 2 tunnel with a vlan tag as shown below. ip link add name gre1 type gretap local 10.0.0.2 remote 8.8.8.8 ip link add name gre1.100 link gre1 type vlan proto 802.1q id 100 ip link set gre1 up ip link set gre1.100…
Preston
  • 191
  • 10
-1
votes
1 answer

How to understand this output of ip route list table 255

broadcast 100.125.71.152 dev rmnet_data1 proto kernel scope link src 100.125.71.153 local 100.125.71.153 dev rmnet_data1 proto kernel scope host src 100.125.71.153 broadcast 100.125.71.155 dev rmnet_data1 proto kernel scope link src…
iseki
  • 13
  • 2
-1
votes
1 answer

Linux route policy based on tos returning wrong gateway

I have a simulated ad-hoc network running on Docker, using Ubuntu 16.04 as a base. I have a number of routing tables. The table in question, table 102, appears as: root@b22e0eafe06d:~# ip route show table 102 172.17.0.3 via 172.17.0.3 dev eth0 …
-1
votes
2 answers

Debian - Dual WAN - Static Route on a DHCP Interface

I've got two WAN interfaces coming into a Debian 8 VM. WAN 1 - All Internet and local traffic. (0.0.0.0/0) Has a a static IP, thus IP, netmask and gateway are fixed values. WAN 2 - Specific private subnet traffic only (10.100.0.0/16). IP obtained…
Indecided
  • 3
  • 2
1 2 3
16
17