Networking Forums

Networking Forums > Computer Networking > Linux Networking > how to use DNAT for external ips in single computer setup

Reply
Thread Tools Display Modes

how to use DNAT for external ips in single computer setup

 
 
ray.c.chen@gmail.com
Guest
Posts: n/a

 
      09-07-2006, 06:31 PM
I am looking to use some sort of NAT (presumeably DNAT?) to rotate
between a few external ips at my disposal. I got a static IP service
from SBC, and it came with 5 ip's, so I am trying to use them all =)

Does anyone know how this is done using a one machine setup? All the
topologies that I have read about have a NAT box in front of the
application servers themselves. Can the NAT box and the application
server be the same machine?

Thanks in advance.

 
Reply With Quote
 
 
 
 
Davide Bianchi
Guest
Posts: n/a

 
      09-07-2006, 06:43 PM
On 2006-09-07, (E-Mail Removed) <(E-Mail Removed)> wrote:
> I am looking to use some sort of NAT (presumeably DNAT?) to rotate
> between a few external ips at my disposal. I got a static IP service
> from SBC, and it came with 5 ip's, so I am trying to use them all =)


Just configure a bunch of virtual interfaces.

ifconfig first.virtual.ip.here eth0:1 up
ifconfig second.virtual.ip.here eth0:2 up

As long as your router is correctly routing the packets towards your
machine is ok.

Davide

--
The next hot technology from Microsoft will be object-oriented assembly.
-- From a Slashdot.org post
 
Reply With Quote
 
Pascal Hambourg
Guest
Posts: n/a

 
      09-07-2006, 07:39 PM
Hello,

Davide Bianchi a écrit :
>
> Just configure a bunch of virtual interfaces.
>
> ifconfig first.virtual.ip.here eth0:1 up
> ifconfig second.virtual.ip.here eth0:2 up


Weird syntax for an ifconfig command.
By the way, ethX:Y are not really virtual interfaces, they're just
obsolete labels for ifconfig to deal with extra IPv4 addresses on an
interface. Use "ip addr" instead of ifconfig and you won't need them any
more.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Single xp computer can't connect to a single server groups@brainin.com Windows Networking 0 09-12-2007 10:38 PM
IPR2 + Netfilter: stateful _routing_ on inbound DNAT, in dual-homed setup? Frantisek.Rysanek@post.cz Linux Networking 1 07-22-2007 09:52 PM
Router for single-computer user Peter Broadband 2 01-26-2004 08:17 PM
Dlink 614+ with only a single external antenna and a Tomato based Cantenna... Mark Aren Wireless Internet 0 12-15-2003 04:35 AM
Help configureing two NIC in a single computer Edward Banister Windows Networking 1 09-18-2003 07:15 AM



1 2 3 4 5 6 7 8 9 10 11