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

learn more… | top users | synonyms

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
692 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
4k 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
4answers
6k 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
531 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 ...
1
vote
1answer
189 views

Forwarding ports from server with 2 internet connections

I have 3 interfaces on my main server, first is used for the local network, second and third are internet connections (each has its own ip routing table): eth0 192.168.0.1 eth1 9.9.9.9 eth2 7.7.7.7 ...
0
votes
1answer
137 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
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
1answer
152 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 ...
1
vote
2answers
99 views

Is it possible to see the routing table at the gateway (next-hop) router?

Suppose the output of the "route -n" (on Red Hat/Debian) command is as follows: Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 a.b.c.d 0.0.0.0 ...
0
votes
1answer
283 views

Special setup for a linux server to route to itself

I've got two linux servers in question. When one server initiates a request for a specific IP address that the other server has, I would like the initiating server to route the request back to itself ...
0
votes
1answer
439 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
4k views

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 ...
1
vote
1answer
406 views

Troubleshooting a failing SIP connection

I have a linux Asterisk server that is behind a firewall. The firewall has three interfaces : eth0 is the LAN, where Asterisk resides, eth2 is the default gateway to the internet (via an ADSL modem ...
1
vote
1answer
3k views

Static route without knowing the nexthop (linux)

I have an eth3 interface in a linux router, with an adsl modem. This adsl modem is in bridged mode, so the public IP is assigned to eth3 (say 11.22.33.44), and the modem is just not seen by my server. ...
0
votes
1answer
2k views

Got “RTNETLINK answers: Invalid argument” when trying to add a IPv6 route

When I try to add an IPv6 route I get an error message: root@lx-anielsen ~ $ ip -6 route add ::a:6:0/112 via ::a:4:1 dev eth1.1001 RTNETLINK answers: Invalid argument Here is what my interface ...
0
votes
1answer
178 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] ---- ...
3
votes
1answer
996 views

Is it necessary to manually set the interface broadcast address?

I'm converting my scripts from old net-tools: ifconfig eth0 192.168.2.1 netmask 255.255.255.0 to iproute2: ip link set eth0 up ip addr add 192.168.2.1/24 dev eth0 and I notice that the new ...
0
votes
1answer
210 views

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

Should I quit using Ifconfig?

With the servers that mount Infiniband cards, when I use the ifconfig command, I get this warning: Ifconfig uses the ioctl access method to get the full address information, which limits hardware ...
1
vote
3answers
5k views

Linux policy routing - packets not coming back [closed]

i am trying to set up policy routing on my home server. My network looks like this: Host routed VPN gateway Internet link through VPN 192.168.0.35/24 ---> 192.168.0.5/24 ...
1
vote
0answers
64 views

Multiple Internet connections, multiple networks and split access in Linux [duplicate]

Possible Duplicate: load balancing multiple gateway using route and iptables I am having trouble setting up multiple internet connections for split access in Linux. We have 3 internet ...
4
votes
2answers
2k views

ip route show src field

I read the man page of ip and still do not understand what src is and I could not find much documentation. Please, if you can explain it thoroughly or point to some link it a good answer.
3
votes
1answer
1k views

Why doesn't TUN device have BROADCAST flag?

When creating a TUN device in Linux, on my machine the created TUN device has following flags: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> Clearly MULTICAST is listed in there but not ...
1
vote
2answers
731 views

Gateway redundancy on a single subnet

I'm trying to discover if there are any methods to have more than 1 default gateway (in a fail-over strategy) on a single subnet. If one gateway goes down then I would like to have servers fail-over ...
0
votes
1answer
158 views

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 ...
3
votes
1answer
369 views

Iproute2 tools vs conntrack tools

I have a linux box which is setup as firewall/gateway for the network. Was just wondering why ss and other iproute2 tools show much less than iptables conntrack. Is it because the router function is ...
-1
votes
2answers
2k views

Route forwarded traffic through eth0 but local traffic through tun0

I have a Ubuntu 12.04/Zentyal 2.3 server configured with WAN NATed on eth0, local interfaces eth1 and wlan0 bridged on br1 on which DHCP runs, and an OpenVPN connection on tun0. I only need the VPN ...
0
votes
3answers
468 views

Using DNS in iproute2

In my setup I can redirect the default gateway based on the source address. Let's say a user is connected through tun0 (10.2.0.0/16) is redirect to another vpn. That works fine! ip rule add from ...
0
votes
2answers
3k views

Set up router with 2 WANs and multiple subnets

I'm trying to set up a Debian box as a router for an office. I need to have 3 subnets in the LAN and 2 WAN connections, and I want one of the subnets to ALWAYS use WAN 1 and the other subnet to ALWAYS ...
5
votes
1answer
2k views

Utilize two gateways on the same network same interface with load balancing

My setup is two ISPs on a single interface and single network. I can either set my default gateway to 192.168.0.1 or 192.168.1.250 and either work. Edit: Netmask (as noticed in the comment) is ...
2
votes
3answers
117 views

what's the difference between ICMP prohibited ICMP unreachable?

If I want to forbid a route to response a network, should I use ip route add unreachable 209.10.26.51 or ip route add prohibit 209.10.26.51?
2
votes
1answer
3k views

Iproute2: Routing with multiple networks and multiple gateways

I have a Linux box running Ubuntu 10.04 with three interfaces: eth0, eth1 and eth2. I am planning to use it as a WAN router for 4 public subnets assigned by two different ISP's. Here are the subnets ...
3
votes
1answer
354 views

NAT box load-balancing with iptables and 4 DHCP uplinks

I am trying to configure a router which provides Internet to a couple hundred users. This router has 4 basic cable uplinks at its disposition, which all use DHCP and have a capacity of around 10/1 ...
2
votes
1answer
1k views

iptables asynchronous NAT. packets drop after prerouting table

I have a Centos server acting as a NAT in my network. This server has one external (later ext1) interface and three internal (later int1, int2 and int3). Egress traffic comes from users via int1 and ...
1
vote
1answer
3k views

What's the difference between GRE and IPIP tunnel?

And which one is better for connecting two linux machines?
1
vote
1answer
114 views

Linux networking and routing

I have 3 networks: 192.168.1.0/24 192.168.11.0/24 192.168.50.0/24 192.168.1.0/24 and 192.168.11.0/24 are connected to each other through an IPSec tunnel, and 192.168.11.0/24 and 192.168.50.0/24 are ...
2
votes
1answer
152 views

Perform iproute2 actions based on a match criteria

Is there any way to use a wildcard or other matching criteria when using iproute2? I have multiple tunnel interfaces that follow a naming convention. Something like ip tunnel del blah-* (which gives ...
3
votes
2answers
3k views

TC hashing filters - single rule deletion

For traffic shaping I'm currently using a setup that looks exactly like the setup from LARTC, on this page: http://lartc.org/howto/lartc.adv-filter.hashing.html I have a simple problem with that - ...
8
votes
2answers
7k views

How many custom route tables can I have on Linux?

I've been working with custom route tables on Linux, and I'm a bit confused by some of the documentation and behavior of the "ip route" command. It seems that the only valid values should be 0-255 ...
1
vote
1answer
806 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 ...
3
votes
3answers
4k views

Advanced routing problem

I have 2 internet links using 2 ADSL routers and I need to give access to the Internet for the 192.168.0.0/24 network. I have to route outgoing traffic based on port number, protocol, … using ...
1
vote
1answer
458 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 ...
4
votes
2answers
910 views

Blackhole route private intranet traffic

I have a private network with a handful of Linux routers all route sharing via OSPF. How do I blackhole private network ranges that I don't have routes for? In other words, I want to be sure I NEVER ...
0
votes
2answers
679 views

set default route interface in iproute2

I have two machines. One runs arch linux and another runs fedora. arch uses iproute2. so i need a conversion for iproute2 from route. this command will set the default interface to ppp0. I have ...
-1
votes
2answers
916 views

Troubleshooting firewall and routing on Linux

Are there any tools or API hooks for troubleshooting iptables or routing on Linux? (besides the obvious -j LOG) In other words: what to do when tables with 200 or 300 firewalling rules after adding a ...
1
vote
1answer
2k views

Mikrotik route syntax to create a new routing table

I want to replace my linux gateway box to Mikrotik. But I never found how to write this linux's iproute2 command in mikrotik's way: ip route add default via 10.1.1.1 table browser ip route add ...
2
votes
1answer
995 views

How to change netmask with iproute2?

With ifconfig we can change the netmask with the folowing: ifconfig eth0 netmask <new netmask> How can we do this with the command ip? I know ifconfig is deprecated and this mostly why I ...
1
vote
2answers
1k views

Reported bandwidth usage differs between iproute2 and ifconfig

My group has a server set up to image our workstations using FOG. I was a bit curious to see how much bandwidth we were using. When I run ifconfig eth0, the TX/RX lines read RX packets:166949376 ...