Koozali.org: home of the SME Server

multiple addresses for eth0

Offline frikkie

  • *
  • 6
  • +0/-0
multiple addresses for eth0
« on: May 19, 2009, 12:36:13 PM »
Hi

I want to have 2 active local networks.  After following the guide on this page http://www.sonoracomm.com/support/18-support/128-sme-alias-ip i still can not ssh to it on the new ip.  The ip is on a different range. Any ideas please.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: multiple addresses for eth0
« Reply #1 on: May 20, 2009, 03:32:08 AM »
I want to have 2 active local networks.

Why?

Offline frikkie

  • *
  • 6
  • +0/-0
Re: multiple addresses for eth0
« Reply #2 on: May 20, 2009, 12:53:59 PM »
I have 2 split 2 networks from eachother and still use SME for email.  So far putting on a more configurable OS seems to be the best way out.  I however did not build the SME box and would have liked to keep it.  So far it just seems a bit limited if adding an ip to an interface is such a problem.  Both proxy and pop service does not answer on the newly created ip.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: multiple addresses for eth0
« Reply #3 on: May 20, 2009, 02:56:14 PM »
frikkie

read the manual, in particular here

this should do the trick

Ciao
Stefano

Offline frikkie

  • *
  • 6
  • +0/-0
Re: multiple addresses for eth0
« Reply #4 on: May 20, 2009, 05:10:48 PM »
That i have tried already.  The UI tells me that there is a problem:

Operation status report
Error: router address is not accessible from local network. Did not add network.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: multiple addresses for eth0
« Reply #5 on: May 20, 2009, 05:12:33 PM »
That i have tried already.  The UI tells me that there is a problem:

Operation status report
Error: router address is not accessible from local network. Did not add network.

well... my crystal ball is at home and I'm at office.. if you give us more details and some specs...

Ciao
Stefano

Offline frikkie

  • *
  • 6
  • +0/-0
Re: multiple addresses for eth0
« Reply #6 on: May 20, 2009, 05:17:03 PM »
LOL

ifcfg-eth0 has this in it.

#
# Manual changes will be lost when this file is regenerated.
#
# Please read the developer's guide, which is available
# at http://www.contribs.org/development/
#
# Copyright (C) 1999-2006 Mitel Networks Corporation
#------------------------------------------------------------

TYPE=Ethernet
DEVICE=eth0

USERCTL=no
ONBOOT=yes
PEERDNS=no

IPV6INIT=no

BOOTPROTO=none
IPADDR=192.168.19.8
NETMASK=255.255.255.0
NETWORK=192.168.19.0
BROADCAST=192.168.19.255

ifcfg-eth0:0 has this in it.

#
# Manual changes will be lost when this file is regenerated.
#
# Please read the developer's guide, which is available
# at http://www.contribs.org/development/
#
# Copyright (C) 1999-2006 Mitel Networks Corporation
#------------------------------------------------------------

TYPE=Ethernet
DEVICE=eth0:0

USERCTL=no
ONBOOT=yes
PEERDNS=no

IPV6INIT=no

BOOTPROTO=none
IPADDR=10.0.19.8
NETMASK=255.255.255.0
NETWORK=10.0.19.0
BROADCAST=10.0.19.255


Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: multiple addresses for eth0
« Reply #7 on: May 20, 2009, 06:27:23 PM »
I have 2 split 2 networks from eachother and still use SME for email.

You haven't said how split from each other the networks need to be - or why. Setting up an additional local network (which requires you to have a router) will create two networks which are broadcast isolated from each other, but both networks will have equal access to all SME server services.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: multiple addresses for eth0
« Reply #8 on: May 20, 2009, 06:29:07 PM »
Error: router address is not accessible from local network.

This means exactly what it says. The router must be part of the local network. It is the node on your network by which packets will reach the new network you are adding - i.e. the gateway to that network.

You do have a router, don't you?

Offline frikkie

  • *
  • 6
  • +0/-0
Re: multiple addresses for eth0
« Reply #9 on: May 21, 2009, 08:06:56 AM »
On a windows box you can specify more than 2 ip's on one interface and still have things like IIS bind to any of those ip's or all as needed. It does not even have to be the server addition

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: multiple addresses for eth0
« Reply #10 on: May 21, 2009, 08:17:04 AM »
On a windows box you can specify more than 2 ip's on one interface and still have things like IIS bind to any of those ip's or all as needed. It does not even have to be the server addition

SME is not windows..
IIRC on windows you need as add on, exchange, mysql/sqlserver, an AV, and more to get what on SME is out of the box. :-)

Charlie asked you a question, please answer 

Ciao
Stefano

P.S. the reason why adding an alias doen't work on SME is because none of the daemons is listening on the added IP..
so, if you really need such a feature, you could rewrite all involved fragments or pay someone to do it.

Offline frikkie

  • *
  • 6
  • +0/-0
Re: multiple addresses for eth0
« Reply #11 on: May 21, 2009, 08:59:02 AM »
Then by your post it seems that this thread is closed but unresolved.

Assuming that people understand what you ask them is perhaps stupid.  Assuming when someone asks advise that he has no knowledge of the subject is also stupid.  Your "P.S." remark was actually the answer I was looking for.

Thank you for your time.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: multiple addresses for eth0
« Reply #12 on: May 21, 2009, 09:09:31 AM »
Then by your post it seems that this thread is closed but unresolved.

it's not closed but yes, still unresolved..

Quote
You do have a router, don't you?

I can't see your answer to this question..

Quote
Assuming that people understand what you ask them is perhaps stupid.  Assuming when someone asks advise that he has no knowledge of the subject is also stupid.  Your "P.S." remark was actually the answer I was looking for.

Thank you for your time.

SME is not designed to do what you are asking for the way you are trying to do.. so you have 3 possibilities:
1) do "the SME way"
2) modify SME to add such a feature -> code yourself or pay someone to do it for you (or better, find someone that does it for free)
3) change distribution

even SME is linux, it's a strange beast, because almost all its conf files are templated.. and the integration level between services is very high.. so you can use it as you would use another distro.. that's all

Ciao
Stefano