Koozali.org: home of the SME Server

two IP addresses on SME

leondardo

two IP addresses on SME
« on: March 13, 2004, 06:31:12 PM »
hi,

My ISP is oferring to give us two IP addresses. I'm connecting through ADSL using a regular modem to ethernet. I have one ethernet card connected with the DSL modem, and the other connected to the local network.

My question: is it possible to make use of the second IP address by adding a third network card to the SME box. How would this be accomplished if my DSL modem has only one RJ45 outlet?

Regards,

Toady

two IP addresses on SME
« Reply #1 on: March 13, 2004, 07:08:06 PM »
If it were me, I would not add the second network card...

You can just add a second IP address to the external card, I dont quite know how this would work with the wirewall though.


To add the second address the command is somthing like
ifconfig eth0:0 12.34.56.78 up

since eth0:0 wont be defined in the firewall setup, I think you might have problems getting traffic from outside

Offline Boris

  • *
  • 783
  • +0/-0
two IP addresses on SME
« Reply #2 on: March 13, 2004, 11:55:20 PM »
Unless you have use for the second IP (seperate server perhaps) you don't need it. Most small home networks use just single IP just fine. I have number of small business clients who get small subnets (5 usable IP) as a smallest possible for the business account and only use one IP for all their needs.
If you still decide to use second IP, you will need either hub/switch between DSL modem and two servers or different firewall, that can use alias for public NIC (IPCop, m0n0wall or similar)and no hub.
SME can be configure to use second IP, but this will take a lot of manual configuration and risk of misconfiguring (may couse major security holes). I wouldn't recomend to do this unless you are REALLY know how to do this. You would not be asking this question if you did on the first place.
...

leondardo

two IP addresses on SME
« Reply #3 on: March 14, 2004, 06:03:35 AM »
Actually, I want to use the second IP and put a DNS server on it. I thought I would use White Box Linux to configure a second DNS server and have it connected on the second IP address.

So, I understand that the connection will go from the DSL modem to the hub, and then two wires will go to two different servers. This configuration is fine with me.

Now, what about the first server running SME. Do I keep everything as normal? For now, the external card is configured to connect using PPPoE by providing a username and a password. It will obtain the static IP address automatically. Do I keep it as is? Or do I have to choose the option of "Static IP address" and have it entered there?

Thanks,

Offline Boris

  • *
  • 783
  • +0/-0
two IP addresses on SME
« Reply #4 on: March 14, 2004, 10:36:54 PM »
Ask your ISP about the details. Typically multiple IPs associated with static address assignment.
...

Offline hardijs

  • ****
  • 77
  • +0/-0
a good start would be ....
« Reply #5 on: March 15, 2004, 07:28:04 PM »
look for 1to1 nat (sometime ago a script was generously made available.

though I would advise you to re consider your actual needs for the second ip #

One more thing is that one can edit masq templates
say adding a "/30" after $externalIp in the templates (as far as I remember) you can make all your address subnet to be served...

Kevin

two IP addresses on SME
« Reply #6 on: March 16, 2004, 01:48:49 AM »
m0n0wall may be a better solution for your firewall to do this

http://m0n0.ch/wall/

Leonardo

two IP addresses on SME
« Reply #7 on: March 17, 2004, 08:32:02 AM »
Thank you all for replying. I called my ISP for more details. They said that my modem does not support routing (Mainstreet Xpress 27020 - from Newbridge Networks  corp.). They advised that I should get a new modem that supports routing. They suggested a new Netopia 3300.

Anyone has ever heard of that brand before? Is it good?

Would there be any way to do the routing without the need to purchase the new suggested modem and router?

Thanks,

Offline Boris

  • *
  • 783
  • +0/-0
two IP addresses on SME
« Reply #8 on: March 17, 2004, 08:29:24 PM »
It was a generic suggestion that you need a router/firewall. SME does it as well. No need to buy a router.
Ask your ISP if IPs they going to give you plain static or required an authentication of some kind?

I typically trash junk DSL routers provided by ISP and replace then with simple external DSL modem (that you already have) and use SME or other boxes as router/firewall/server with it.
...

Leonardo

two IP addresses on SME
« Reply #9 on: March 18, 2004, 07:30:43 AM »
It needs authentication. I configure the gateway to connect using the PPPoE and provide a username and a password. I understood from the ISP that when my gateway sends the username and password information, it is assigned the same static IP address from their servers.

According to them, the second IP address should be configured in the router. I do not want to purchase a router if it is not necessary.

Offline Boris

  • *
  • 783
  • +0/-0
two IP addresses on SME
« Reply #10 on: March 18, 2004, 08:21:13 PM »
PPPoE (that you use now) connection may change if you switch to different plan. Ask your ISP how it will work with multiple IPs.
...