News: This forum is now permanently frozen.
Pages: [1]
Topic: (solved) 5 ip addresses + DCHP request (on one NIC)?  (Read 3136 times)
« on: February 04, 2009, 21:57:27 »
schjeall *
Posts: 5

Hello,

I have this situation where my ISP gives away 5 WAN-IP addresses. It works like this:

   NIC1 (with mac address x1:xx:xx...) does DHCP-request  <-- ISP offers new IP address
   NIC2 (with mac address x2:xx:xx...) does DHCP-request  <-- ISP offers new IP address
   NIC3 (with mac address x3:xx:xx...) does DHCP-request  <-- ISP offers new IP address
   NIC4 (with mac address x4:xx:xx...) does DHCP-request  <-- ISP offers new IP address
   NIC5 (with mac address x5:xx:xx...) does DHCP-request  <-- ISP offers new IP address


Now, it's not practical (or possible) for me to have 5 NIC's connected to a switch, which is then connected to the
router from my ISP. I want m0n0wall WAN port (using a Sorekris box) to be able to act as 5 different NIC's
(all with a unique mac address).

How is this possible?

NOTE: after the ip-addresses are assigned, I can "lock" the ip-addresses from their self-service web).

« Last Edit: February 13, 2009, 09:19:13 by schjeall »
« Reply #1 on: February 05, 2009, 17:41:38 »
knightmb ****
Posts: 341

From what I know, you can only clone one MAC address at a time. So you won't be able to have your WAN connection act like 5 separate MAC address.

The best you can do is have them assign you 5 static IP and have your m0n0wall box use the ARP entry to assign all 5 to the same WAN card. Then your single WAN can have all 5 IP routed as your please.

Radius Service for m0n0wall Captive Portal - http://amaranthinetech.com
« Reply #2 on: February 06, 2009, 08:11:33 »
schjeall *
Posts: 5



I'm not sure I understand what you say about cloning one mac address at a time.

Anyway, it can be done on Linux by setting the NIC to promiscuous mode. Mac addresses can be generated with this script http://www.easyvmx.com/software/easymac.sh.

There must be a solution for this in FreeBSD.

An other solution would be to set Linux box directly on the Internet and having Linux  allocating the IP-addresses. When allocated by dhclient, I will make the IP addresses static from my ISP's self-service-web.
« Reply #3 on: February 09, 2009, 16:20:55 »
knightmb ****
Posts: 341



I'm not sure I understand what you say about cloning one mac address at a time.

Anyway, it can be done on Linux by setting the NIC to promiscuous mode. Mac addresses can be generated with this script http://www.easyvmx.com/software/easymac.sh.

There must be a solution for this in FreeBSD.

An other solution would be to set Linux box directly on the Internet and having Linux  allocating the IP-addresses. When allocated by dhclient, I will make the IP addresses static from my ISP's self-service-web.
I'm sure a solution exist, but the stock m0n0wall won't do this without a hack.

Cloning one MAC, meaning you can set "one" MAC address for the WAN Nic in m0n0wall, but you can't set 2 or 5 for example.

Another solution, check the equipment that the ISP gave you (you never mentioned what it was, like DSL, Cable, Fiber, etc.) and see if this isn't already supported by the device, then just DMZ all of them to the same WAN interface.

Radius Service for m0n0wall Captive Portal - http://amaranthinetech.com
« Reply #4 on: February 13, 2009, 09:18:35 »
schjeall *
Posts: 5

I solved my problem like this.


Using mono's posibility to overwride (spuff) the WAN mac x 5 (using easymac.sh)

Then I configured the Proxy Arp, really easy.
« Reply #5 on: February 19, 2009, 22:36:44 »
lyserge *
Posts: 9

I solved my problem like this.


Using mono's posibility to overwride (spuff) the WAN mac x 5 (using easymac.sh)

Then I configured the Proxy Arp, really easy.

This is really interesting, how did you get m0n0wall to use the script?

A step by step guide of this "hack" would be really appreciated!

But if this script only runs once I don't think it will work in my situation because my 5 IP-addresses can't be made static via my ISP's self-service-web.  Sad

« Reply #6 on: February 24, 2009, 21:02:08 »
schjeall *
Posts: 5

Hello,

No script at all. This must be the most low tech solution I have ever made.

From Mono web I simply changed the WAN mac address 5 times.
 
Pages: [1]
 
 
Powered by SMF 1.1.20 | SMF © 2013, Simple Machines