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

learn more… | top users | synonyms

0
votes
3answers
84 views

Assigning multiple IPs to the same machine with one interface

I have a server with a single physical interface eth0. I intend on running VMs on this server. To that end I have an IPv4 block which is routed to said server. What I'm trying to achieve is to spin-up ...
0
votes
2answers
543 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 ...
1
vote
1answer
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 ...
1
vote
1answer
705 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 ...
1
vote
1answer
139 views

Linux Firewall & sharing files between computers in different subnets connected to single switch

EDIT : I've edited the question & the title to bring more clarity hoping that someone will be able to point me in the right direction. ************************* * Internet ...
1
vote
1answer
824 views

linux ip route via 2 gateways, 3 interfaces

I have 3 interfaces. I'll replace the public ips with 10.x.x.x. eth0: ips: 10.1.1.64-10.1.1.70 mask: 255.255.255.0 gateway: 10.1.1.1 ip route table: gw1a eth1: ip: 10.1.1.71 mask: 255.255.255.0 ...
1
vote
1answer
462 views

iproute and nat across devices

I've got the following configuration: vlan123@eth0 - range 1.2.3.0/24, with 1.2.3.4 assigned to it br2000 - range 10.2.3.0/24 In the ip route I see: 10.2.3.0/24 dev br2000 proto kernel scope link ...
0
votes
1answer
45 views

policy routing to guests on other server

After long searching I've found the answer to my challenge, but the last step fails. I have two identical servers that both serve multiple guests. The servers have two interfaces: one for the ...
0
votes
1answer
69 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 ...
0
votes
1answer
201 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 ...
0
votes
1answer
154 views

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

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

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] ---- [DMZR]--/--[...
0
votes
1answer
260 views

Network interface selection

Suppose I have more than a network interfaces and I want to selectively use them per application. eth0 is the standard interface with the standard gateway in the main routing table eth1 is another ...
0
votes
1answer
123 views

SOCKS4-5 network device driver

There are methods of forcing programs to use SOCKS4-5 proxy's, such as socksify, tsocks and other LD_PRELOAD hijacking methods. Is there a way of having a SOCKS proxy network device, such as one ...
-1
votes
1answer
152 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 ...
2
votes
0answers
178 views

VRF on Linux using network namespaces

My ultimate goal is to implement Virtual Routing and Forwarding (VRF) in Linux. The method that seems to be most widely accepted is to set up different network name spaces (one for each separate ...
2
votes
0answers
2k views

Routing only some local IPs through VPN on dd-wrt

Much similar to this entry: http://serverfault.com/questions/94283/using-dd-wrt-to-connect-to-vpn-and-forward-all-traffic-of-certain-devices-through , I have set up my router with dd-wrt + OpenVPN to ...
1
vote
0answers
43 views

policy routing for local outcoming connections

I have a multihomed setup with two upstream providers. And I want to confine some connections to use only one provider — local outgoing connections that is. So, I've made a custom routing table, which ...
1
vote
0answers
29 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 ...
1
vote
0answers
365 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 the ...
1
vote
0answers
55 views

what is PAT exactly?

In attempt to understand PAT, I've setup the following setup where I have a Linux Router that masquerades from in internal interface to the external. Thus both clients are able to talk to outside ...
0
votes
0answers
27 views

SAVE default scope global nexthop in CENTOS 7

I have two internet connections from two different ISPs and I need to balance & failover the traffic originating to and from my network between the two ISPs. My settings: FIRST ISP (eno1): 152....
0
votes
0answers
53 views

vpn-over-ssh ipv6 tunnel getting permission denied connecting to tcp

Using my script, I can establish a working vpn for ipv4 and even able to ping ipv6 addresses. However, trying to connect to an ipv6 address I get "permission denied". ➜ ping -6 ipv6.google.com -c1 ...
0
votes
0answers
23 views

haproxy, iptables & iproute2 as a mean to select a different src vIP for same default GW

Got a HAproxy 2 node cluster/setup, each node has an external and internal NIC. External has a default gw: .249 service service pool A pool B srv1..srvN srv1..srvM ...
0
votes
0answers
22 views

Two(one OpenVPN) Networks Routed to Two Seperate Interfaces

I currently have a working network configuration. It is setup so that my Debian router connects to my modem, grabs an IP from DHCP using the physical eth0 interface connected to the WAN port on my ...
0
votes
0answers
156 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 ...
0
votes
0answers
33 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 ...
0
votes
0answers
131 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 Maske:255.255....
0
votes
0answers
384 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
0answers
36 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 ...
0
votes
0answers
92 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 ...