iproute2: RTNETLINK answers: File exists

iproute2: RTNETLINK answers: File exists

Post by Andrei Osi » Tue, 24 Oct 2000 04:00:00

Trying to setup NAT. What does this supposed to mean, which file ?

/etc/rc.d# ip route add nat $DUMMY via $REAL
RTNETLINK answers: File exists


1. IP Route RTNETLINK Error: File Exists

Here's the setup:

The Linux Box has 2 NIC's eth0:External and eth1:Internal, it also has an
aliased IP on eth0:1

I am attempting to use NAT to forward the IP on eth0:1 to an internal IP
address using the following:

ip route add nat 24.x.x.x via 192.168.1.x

Every time I try this I get the following:

RTNETLINK error: file exists

I have also tried forwarding the IP on eth0 and got the same error.

Any help would be greatly appreciated.

What I am trying to do is forward one of our external IP's to an internal
Web box.
It already works if I use IPMasq forwarding for the http port, but
unfortunately we also want to be able to get to this site from inside as
well, thus the NAT solution.


2. Config problem with ET6000

3. IPv6-over-IPv4: "RTNETLINK answers: No route to host"-Error

4. Shared library content?

5. RTNETLINK answers: Network isn't reachable

6. Red Hat Linux

7. RTNETLINK answers: Invalid argument when adding route... help!

8. Problem implementing poll method

9. Apache 1.3.9: File does not exist: path-to-existing-file

10. "File exists writing symlinking article file -- throttling"

11. picking up newly installed files from existing files

12. 'cat file' but only if 'file' exist

13. Removing files while file descriptor still exists.