Multiple IPs from 1 ADSL on 1 box?



My ISP offers 2 DHCP IPs to each customer, so I wondered if it was possible to
use both of them and rotate, but on 1 box with 1 eth card?

My Linux 2.4 kernel box with iptables is used for a NAT box. It connects to
the ADSL modem on eth0. No pppoe is used. (My home network is on eth1 which
connects to a hub)

Example: Something like opening two telnet clients (on the linux box) and one
is "from" one address, the other is "from" the other.

Would virtual ethernet adapters allow this?

eth0 being 1 address
eth0:1 being the other? (somehow routing through the "real" eth0 to the ADSL
modem and getting the dhcp address)?

How would I set this up? (how to get the dhcp for the second address?)

How do I choose which is default for the NAT'd boxes behind eth1's hub to go
through? How do I choose which is used in applications on the localhost linux
box?

I was just wondering if this crazy idea is even possible. Any tips in the
right direction would help.

thanks!



.



Relevant Pages

  • Re: setting computer name
    ... If your network interfaces use DHCP, you can configure the DHCP server ... > however it did not have 'multi on', which I saw as being needed according to the Linux how-to help guides. ... > on how to install gcc 2.95.3 on Linux. ...
    (Fedora)
  • Re: default gateway not letting me out?
    ... > They say that they do not support linux clients. ... I assume is what you mean by "default" Verizon page being presented to ... -- your Win dhcp request is properly formed and properly processing ...
    (comp.os.linux.networking)
  • Re: ONE Linux DHCP Server + Multiple VLANs - Soluble problem?
    ... because I've really tried thousands of dhcp and interfaces configs without success why does WinNT4 manage handle it and not the latest linux kernel... ... DNS server and a linux box as a file server. ... The servers are in VLAN 100 and the other office computers are in the others. ...
    (comp.dcom.sys.cisco)
  • Re: dhcp startup
    ... The linux clients just about manage to find an IP ... DNS, domain name, ... They get whatever you tell them to get from a dhcp server. ...
    (alt.os.linux)
  • DCHP overrides default gateway and nameserver on double-nic server.
    ... I am setting up several Linux boxes (RedHat Enterprise Linux 2.1, ... get a default gateway from the DHCP-server. ... the Windows DHCP that seems to say no info on gateway nor nameserver ...
    (comp.os.linux.networking)