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

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 PING ipv6.google.com(lga15s45-in-x0e.1e100.net…
OneOfOne
  • 222
  • 4
  • 13
1
vote
0 answers

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 server through OpenVPN. Now I have these four VPNs (I…
frarugi87
  • 111
  • 4
1
vote
1 answer

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 proto static metric 1024 10.0.0.0/16 dev eth0 …
Nikratio
  • 645
  • 5
  • 13
1
vote
1 answer

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 the rules with ip rule show, returns in error…
Danny
  • 235
  • 3
  • 10
1
vote
1 answer

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 the examples I found online in a fedora(20) machine…
Freaktor
  • 271
  • 2
  • 9
1
vote
7 answers

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 192.168.1.x, which is 10.170.x.x. I can assign ips to…
Ricardo Marimon
  • 529
  • 4
  • 12
  • 26
1
vote
1 answer

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 initially populated on system start, and under what…
Monica For CEO
  • 330
  • 1
  • 17
1
vote
0 answers

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 customer (or let them do it). Now this would be…
Ignis
  • 11
  • 2
1
vote
1 answer

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 OpenVPN server (Amazon): ubuntu-12.04 eth0 - y.y.y.y/24…
mik-mak
  • 11
  • 2
1
vote
1 answer

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 There is mail server on host 192.168.0.2 of local…
hraphrap
  • 237
  • 2
  • 16
1
vote
1 answer

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 Modem/Router * * 192.168.1.1 …
Digen N
  • 11
  • 2
1
vote
0 answers

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 Server with IP translation happening in the Linux…
ArmenB
  • 111
  • 3
1
vote
2 answers

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 UG 0 0 0 venet0 Given that…
tonytz
  • 153
  • 1
  • 5
  • 11
1
vote
1 answer

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 on one of its own IP addresses. How might this be…
David
  • 414
  • 4
  • 10
1
vote
0 answers

Multiple Internet connections, multiple networks and split access in Linux

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 connections from 3 different ISP's. We want to configure our…