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

How to set up a Linux gateway for multiple WAN networks?

I have a network with the following IPv4 and IPv6 addresses: eth0 Link encap:Ethernet Hardware Adresse 30:85:a9:42:3e:60 inet Adresse:109.2xx.239.145 Bcast:109.2xx.239.255 Maske:255.255.255.0 inet6-Adresse: 2a02:d40:xx:xx::6/64…
SmileMZ
  • 131
  • 1
  • 1
  • 8
0
votes
0 answers

Return traffic through same interface as entered

I've created a GRE tunnel on my Linux server (VPS, OpenVZ). Server gets a public IP address from this tunnel and I need it be accessible from Internet through it. There is already a default gateway, which is on hosting provider's network. I can't…
Tiago.SR
  • 101
  • 3
0
votes
1 answer

Public IP not responding because routing table...?

Fixed with: /etc/iproute2/rt_tables 1 tble_eth0 /etc/sysconfig/network-scripts/route-eth0 104.000.64.0/18 dev eth0 src 104.000.65.38 table tble_eth0 default via 104.000.64.1 dev eth0 src 104.000.65.38 table…
OnTheFly
  • 3
  • 3
0
votes
2 answers

Failed to ping through gateway which is not default gateway

I have the following network interface configuration, eth0: 192.168.78.1/24 eth1: 192.168.254.76/24 (Gateway 192.168.254.1) eth2: 192.168.253.131/24 (Gateway 192.168.253.1) where both gateways have access to internet. In this scenario ping -I eth1…
Amrit
  • 101
  • 2
  • 4
0
votes
1 answer

What is the meaning of "/usr/bin/ip route add 180.151.157.4/32 via 0.0.0.0"

In the process of setting up a VPN client side, openvpn tries to add a route but it fails: /usr/bin/ip route add 180.151.157.4/32 via 0.0.0.0 RTNETLINK answers: No such device The reason why we add a static route for ip 180.151.157.4 to 0.0.0.0…
Jérôme
  • 103
  • 4
0
votes
0 answers

What is the relationship between iproute2 and distro config files?

For various ip manipulation activities, what is the difference/relationship between iproute2 and modifying the distro's config files? For instance, some sources recommend ip address del for deleting an address on a network interface, and some…
ChaimKut
  • 191
  • 4
  • 9
0
votes
1 answer

IP/GRE compiled in kernel but gre0 interface doesnt exist

Im trying to create IP over GRE tunnel but i get No such device: ip tunnel add gre0 mode gre remote 192.168.152.22 local 192.168.152.21 ttl 255 ioctl: No such device I have compiled GRE support in my…
MABC
  • 203
  • 1
  • 5
  • 11
0
votes
0 answers

Multiple routes and gateways with NAT

My setup is a VM host with two network interfaces where I want to use one as private/internal and the other one as public (which will get a public address on the host), where all the NAT magic to the guest machines will happen. Two interfaces means…
Alex
  • 538
  • 1
  • 4
  • 15
0
votes
2 answers

How to DHCP request a second, different, IP for the same physical interface?

(Similar to this question, but with two different DHCP-assigned IPs) Is there any way to let dhclient or dhcpcd request two different IPs for one physical interface, e.g. via virtual interfaces eth0 and eth0:1? Maybe by letting eth0:1 have a…
Tobias Kienzler
  • 388
  • 1
  • 9
  • 28
0
votes
1 answer

Multi-homing: ip rule syntax for multiple uplinks

I'm trying to create ip rules for multiple WAN links and keep connectivity across multiple local networks. I have currently two network cards each connected to a different gateway to the internet and I'm routing based on the interface that the…
Jure1873
  • 3,702
  • 1
  • 22
  • 28
0
votes
1 answer

Can a machine(physical or virtual) accept and process UDP packets with a different IP address coming from a known device?

Before everything, thanks for reading the next question. I have script,(ipUDPspoof.rb), which is a client/server script in Ruby (you choose the parameter 1 to be server and 0 to be client, at initialization...for example "sudo ruby sandbox.rb 1" to…
0
votes
2 answers

iptables: Internal port forwarding with fwmark and routing tables

I have 2 servers and I need to forwart to internal port. To explain I use the server with 2 interfaces (internal/external) as server A and the internal server as server B. In server A i use iptables -A PREROUTING -t nat -i $extif -p tcp --dport…
0
votes
1 answer

Routing config between internet load balancers and backend

Im facing a problem due my lack of experiencie on routing. I need to config the next things (all run on my computer virtualized, if works, i will pass it to hardware) [internet] ----…
PsySkeletor
  • 181
  • 1
  • 13
0
votes
1 answer

Multiple VPN devices with the same IP

Well, this is a rather awkward inquiry and I'm pretty pessimistic about it, but lets see what the community has to say. The scenario: A server connecting to multiple VPN endpoints doing all sort of stuff. The problem: The same IP can be assigned to…
0
votes
1 answer

Deleting all IPs on an interface with iproute2

I have an interface that I setup like this ip addr add 192.168.1.1/24 dev eth0 ip addr add 192.168.1.2/24 dev eth0 ip addr add 192.168.1.3/24 dev eth0 etc. Is there an easy way to delete all of the IPs I add with out doing ip addr del…
devin
  • 1,246
  • 3
  • 20
  • 27