Koozali.org: home of the SME Server

Configuring two internal subnets

LeeKimber

Configuring two internal subnets
« on: October 09, 2004, 08:43:55 PM »
Hi,

I'm wondering if anyone can point me to smeserver resources that will help me configure an smeserver box to handle two internal subnets.

The scenario here is that I have added a wireless card to an existing smserver box in server and gateway configuration. Smeserver setup correctly configures the external wired NIC and the internal wired NIC. A couple of lines in rc.local are configuring the internal wireless NIC and bringing it up OK.

The problem I am seeing is that although the first internal subnet (the 192.168.1.0/24 subnet hanging off the internal wired NIC) can use the the smeserver fine, the second internal subnet can't. Nor can I add the second internal subnet to the "Local Networks" list. It says it can't find the subnet's router and won't let me add the subnet to the "Local Networks" without a router IP (the smeserver's NIC to this subnet *is* this subnet's router, of course!).

I can ping and ssh from the first, wired, subnet into hosts that reside on the second, wireless, subnet. But I can't ping and ssh from the second, wireless, subnet into hosts that reside on the first, wired subnet.

Clearly, this issue is to do with the single-subnet assumption that underlies the smeserver's setup "wizard". I haven't been able to find any docs, howtos or threads relating to a fix for this.

Thanks!

Lee

RavenIV

Configuring two internal subnets
« Reply #1 on: October 10, 2004, 12:30:30 AM »
SME is not designed to support more than one internal lan.

you have to change many things (routing, iptables, network-settings, ...).
do you think it is worth this much work?

cheers

LeeKimber

Configuring two internal subnets
« Reply #2 on: October 10, 2004, 12:43:47 AM »
Thanks for that reply.

Hard to say whether it is worth it yet. Now that I know it can't be done out of the box, I need to quantify what it would actually take.

Theoretically, it could be scripted (I assume).

Offline meanpenguin

  • ****
  • 138
  • +0/-0
Configuring two internal subnets
« Reply #3 on: October 10, 2004, 01:30:41 AM »
Go to the server-manager and select the "local network" option.  Add the subnet and it's considered a local subnet.

Ed

LeeKimber

Configuring two internal subnets
« Reply #4 on: October 10, 2004, 03:31:07 AM »
Thanks for that reply meanpenguin.

Actually this is where the problem I am seeing first shows up: the Local Networks form is not buying the idea that this second subnet is a local network.

If I use the smeserver's second NIC IP as the router IP in "Local Networks", submission of the form always leads to an error that "Router address is not accessible fomr local network. Did not add network." (Even though I can ping the IP address and hosts on it via the smeserver and from hosts on the smeserver's first subnet.

If I put no router IP in, the local network "add" form will not add the network, claiming: "Doesn't look like an IP."

Given taht teh second subnet is up and hosts on it can be contacted from the smeserver, this makes me think that this is a limitation in the server-manager code.

If that sounds reasonable, where might I look to start hacking it? What might I have to watch out for when if I do? Or has anyone gone down this path before me and arrived successfully?

RonM

Configuring two internal subnets
« Reply #5 on: October 10, 2004, 04:49:40 AM »
There's an old how-to for this:

http://no.longer.valid/phpwiki/index.php/How%20to%20add%20an%20additional%20network%20card%20%28including%20a%20Token%20Ring%20one%29%20to%20e-smith%204.1.x

This is out of date, but perhaps it will give you an idea of where to start. Good Luck!

LeeKimber

Configuring two internal subnets
« Reply #6 on: October 10, 2004, 06:26:45 PM »
Thanks RonM, reading that now.

tbcomputing

Configuring two internal subnets
« Reply #7 on: November 13, 2004, 12:03:25 AM »
I'm trying to do the same, did anyone manage to get this working?

Any pointers gratefully received

Thanks

Tony