iproute2 (ip) is a tool used to manipulate network configurations.

learn more… | top users | synonyms

0
votes
0answers
23 views

what is the “ip route” equivalent of “route add -host” in linux?

Specifically, route add -host allows me to specify the host via hostname to add a route to a host, e.g., route add -host www.google.com gw 192.168.1.1 However, I cannot find a way to do this using ...
1
vote
0answers
25 views

Multiple VPNs - can't activate more than one

I have a small problem. In my setup (linux, kernel 3.10.17) I have one ethernet port and multiple WWAN interfaces; each WWAN has its own VPN already activated. The VPNs are connected to the same ...
2
votes
2answers
28 views

I have two default entries in my route table

After connecting to my OpenVPN server, I see my routing table as: Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface default 10.199.1.5 ...
0
votes
1answer
26 views

Can not ping from specific vlan tagging interface

On my box I have following interfaces(vlan tagging): eth2.556: 172.16.1.17 eth2.201: 192.168.208.143 All default route via 172.16.1.1 I can ping all other IP using 192.168.208.x, but can not ping ...
-1
votes
0answers
22 views

Does ip route need the via clause when specifying a default gateway?

When creating a routing table with iproute2, I need to specify its default gateway. I keep coming across this syntax: ip route add default via SOME.IP.ADDRESS dev some_dev table mytable Why can't ...
1
vote
2answers
37 views

Command-line utility to test fwmark in ip rule / ip route?

I am trying to find a tool that will allow me to find the route a packet will take that comes in on a device, and has a particular destination address. ip route get will do most of what I am looking ...
1
vote
1answer
53 views

multiple default routes with iproutes2

I am very confused by the semantics of ip rules when it comes to the default route. Sometimes, I can have multiple default routes using different gateways: # ip route default via 10.0.0.4 dev eth0 ...
0
votes
1answer
60 views

iproute rt_table and mark not working on linux

I have this configuration which comes from official and unofficial guides and questions readings here and a lot of failed tests. CentOS 7 and Ubuntu server 15 (LAMP and only eth0). ...
0
votes
1answer
77 views

iproute2: Database /etc/iproute2/rt_tables is corrupted

I'm setting up two IP addresses on one eth and one IP address on a second NIC using iproute2. There are some really good articles here and here which explain well how to do that. However, checking ...
0
votes
1answer
39 views

2 network cards routing

I have 2 network cards with public ips. I am running 2 services. So how do I route the connections. For now only one interface ip is working although both are pingable from internet. My routing ...
0
votes
1answer
102 views

How to prevent the pppd to remove the default route?

We use multiple providers, one of them to create connection uses pppoe through pppd daemon on ubuntu 14.04. Early without multiple providers pppd manages default route by itself (creating it when ...
33
votes
1answer
1k views

Why does removing an unused IP address from an interface kill connections unrelated to that address

Yesterday I did a quick reinstall of a (physical) server in the datacenter, and since I was short on time and with no easy access to our database I just assigned it an IP that I knew was available and ...
0
votes
1answer
134 views

How can I move an interface out of a network namespace?

If I move an interface temporarily into a netns with ip link set eth10 netns myns then it no longer is visible in the root, only within the namespace myns. How do I move it back, something like ...
1
vote
1answer
57 views

Cant set IPv6 Address on centos6

Im having this issue recently. the iproute2 utility cant add a ipv6 address /sbin/ip -6 addr add 2001:0db8:0:f101::1/64 dev eth0 RTNETLINK answers: Invalid argument that ip is just copied from ...
0
votes
0answers
60 views

ip rule not acting on fwmark

I'm trying to use iptables to load balance web traffic over multiple DSL lines by marking the packets and routing based on the mark. I'm working with CentOS 6.6, Kernel 2.6.32-504.16.2.el6.x86_64, ...
2
votes
1answer
575 views

Limiting bandwidth on Ubuntu Linux

I am in the situation where I have to simulate a P2P-environment (for my masters thesis in computer science). To do that I am using Docker with Ubuntu to create a bunch of virtual machines that is ...
1
vote
1answer
154 views

How to do policy routing with systemd?

I need to do policy routing on my CoreOS instances which use systemd. But I haven't found any documentation or examples on how to do it with systemd-network. How do I do that? So far I have only ...
1
vote
7answers
291 views

Create new subnet over existing subnet

I have three servers that currently have ips 192.168.1.1, 192.168.1.2, and 192.168.1.3. They can see each other and talk to each other. I would like to create a second subnet, on top of the ...
0
votes
0answers
111 views

source based routing policy use ip route not works on my vm

I have an vm created with vmware. an installed centos 7 as os. the kernel is 3.x. now , my system have to network interface. and I want connect them to the same network. forexample : ...
0
votes
0answers
32 views

Auto modify all routes by a specific dev

I have to modify all routes using one specific dev. Not even modify, just append a correct src то the end of a route, like this: x.x.x.x(destination network) via y.y.y.y(MYDEV ip) dev MYDEV(network ...
1
vote
1answer
60 views

How are the routing tables populated on a Debian system?

How are the routing tables populated on a Debian system? I understand that the ip route family of commands can be used to manually manipulate the routing tables, but how are the routing tables ...
2
votes
1answer
281 views

What is “the meaning” of this `ip route`?

I'm slowly learning more about IP routing and the ip toolset by investigating a VPN. After I start a particular VPN client, one of the (new) routes displayed by ip route show is 128.0.0.0/1 via ...
2
votes
3answers
233 views

Advanced dynamic routing with external program

I need to build a system in which i am able to route packets based on a number of parameters, such as port/protocol etc, which are somehow "normal", but also on other aspects, such as queue length, ...
0
votes
0answers
119 views

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 ...
0
votes
0answers
312 views

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, ...
0
votes
1answer
83 views

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 ...
4
votes
2answers
2k views

Routing selection: specificity vs metric

I understand that Linux chooses the most specific route to the destination when it does routing selection. But what about a route's metric? Does it have a higher priority than route's specificity? A ...
2
votes
1answer
327 views

How to route traffic through different interfaces based on the port number?

iptables -A PREROUTING -i usb0 -t mangle -p tcp --dport 8080 -j MARK --set-mark 1 iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination Chain ...
3
votes
1answer
396 views

Change source IP address based on the system user

I would like to make a certain user have a specific source IP address. For this purpose, I added a secondary IP address to the network interface and tried to enforce the source IP using ip6tables and ...
0
votes
1answer
447 views

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 ...
30
votes
4answers
3k views

Where is the statement of deprecation of ifconfig (on linux)?

A lot of people is stating that the ifconfig command is deprecated in favor of the ipone (on linux at least). This is often used as an argumentation to switch from ifconfig to ip (see some comment ...
1
vote
1answer
6k views

ip route add works manually but throws “Error: an inet prefix is expected rather than …” when run via bash script

I'm trying to run a script that should add this route to a table 11: ip route add local 10.1.3.212 dev eth1 proto kernel scope host src 10.1.3.212 table 11 If I run this command manually, it is ...
0
votes
1answer
395 views

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 ...
2
votes
1answer
202 views

OpenVPN redirect-gateway breaks other tunnels

This is my ifconfig setup: eth1 Link encap:Ethernet HWaddr 54:04:a6:49:99:16 inet addr:192.168.0.12 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: ...
0
votes
0answers
1k views

OpenVPN --route-up Missing environment variables when passing to script

I'm diving into the glory of OpenVPN and I'm having a bit of trouble manually configuring the routing tables. I'm on Arch Linux. I know OpenVPN automatically updates the routing tables when ...
0
votes
2answers
8k views

list all route tables

I need to know how to list the IDs of all route tables. For example, I can run: ip rule add fwmark 2 table 104 ip route add dev eth0 default via 192.168.3.7 table 104 A call to ip rule list shows: ...
0
votes
0answers
35 views

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 ...
2
votes
2answers
1k views

ip link set not assigning IP Address but ifup does

Since ip is set to replace ifconfig, I'm trying to get myself used to using the ip suite of commands. I'm trying to enable my NIC with ip link set eth3 up That doesn't assign an IPv4 address ...
10
votes
1answer
753 views

iproute multiple ADSL load balancer through VM

For a long time (2 years?) I have been running a virtual machine (Ubuntu 12.04 server) with a very basic outbound load balancing capability, sending different outbound connections out different ADSL ...
1
vote
0answers
317 views

Routing LDAP traffic from Application server to Proxy to internet

I've included a drawing so you get an idea how it would work. (Red = LDAP connections , Blue = HTTP / AJP in the backend) Problem: We want to connect our customer application server to an LDAP of ...
2
votes
1answer
1k views

Reply on the same interface as incoming with DNATed IP

A server has 3 ifaces, 2 internal (eth1/2) in different public networks, one external (eth0). There is a service (openvpn) that can't bind to some IPs/ifaces, only to all or one, but I need it to ...
-1
votes
1answer
119 views

How to choose source IP from multiple virtual IP's based on specific destination

I am having two private IP attached to an interface. inet 10.255.0.127/24 brd 10.255.0.255 scope global eth1 inet 10.255.0.153/24 brd 10.255.0.255 scope global secondary eth1 When traffic leaves ...
0
votes
1answer
1k views

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 ...
2
votes
1answer
426 views

iptables - Multiple IP's, only one is IP Prerouting correctly

I am trying to redirect all requests on port 80 to port 9000 across all my IP's I have 1 server hosting several IP addresses on eth0. For the sake of my problem, lets say they all use apache to ...
0
votes
0answers
91 views

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 ...
0
votes
1answer
595 views

Route traffic to some host in Internet via VPN server

I need route traffic to some host in Internet via VPN server. Configuration: Computer: ubuntu-12.04 eth0 - x.x.x.x/24 tun0 - inet addr:10.8.0.6 P-t-P:10.8.0.5 Mask:255.255.255.255 There is ...
2
votes
3answers
3k views

Incoming (ingress) traffic shaping on Linux - bw is lower than expected

I want to limit incoming (download) speed for Linux box. Both, the box, which is configured, and trafic source (HTTP server) are connected to the same switch, if shaping is not configured, download ...
3
votes
3answers
5k views

Almost working: How to set up iptables and iproute2 rules on dual WAN linux server?

I have a Raspberry Pi (running Raspbian) with three network interfaces (one ethernet and two USB wifi nics). What I want to achieve is this: I have two WAN connections to the internet (DSL + Cable), ...
0
votes
2answers
496 views

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 ...
7
votes
1answer
2k views

Macvlan based interface pings from host but not from namespace

[EDIT] The production system is currently a mix physical and ESXi based system. We obviously would never use virtualbox even for a pre-production environment ! It was used here only to quickly narrow ...