Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MSL Local Networks

Status
Not open for further replies.

Mitel999

Technical User
Oct 19, 2005
67
GB
Hi

I have 20 MSL servers to configure. Does anyone know of a way I can script/bash in the local networks at root command level rather than having to add them all in manually.

Cheers

********************************************************************************

Eighty percent of success is showing up
 
I feel your pain ( i dont know of a method )
I normally use the admin menu option from the console as its a bit speedier than the web version

If I never did anything I'd never done before , I'd never do anything.....

 
I think I have figured it out. You could put the below code into a script I guess.

SME Server is based from MSL.
General commands don't survive a reboot and have be set via a database which is expanded to config files.

Here is a general concept.
Anyway, what I have tried with limited testing (although it works as expected)

From a root shell type [tt]db networks show[/tt] this will dislpay your current local networks.

Add your new local network by typing [tt]db networks set <network> network Router <gateway>[/tt]

Then activate the config by typing [tt]signal-event network-create <network>[/tt]

So an example could be:

Code:
[b][tt]db networks set 10.1.1.0/24 network Router 192.168.1.1
signal-event network-create 10.1.1.0/24[/tt][/b]

I think you can only enter network at a time and not create a mass range like [tt]signal-event network-create 10.1.1.0/24 10.1.2.0/24 ...[/tt] it only takes the first value.
 
Have you considered using a different subnet mask to encapsulate them all?

10.1.0.0/16 for example

**********************************************
Any intelligent fool can make things bigger and more complex… It takes a touch of genius – and a lot of courage to move in the opposite direction.
 
kwbMitel said:
Have you considered using a different subnet mask to encapsulate them all?

10.1.0.0/16 for example

I tend to agree and usually add all private networks using the correct mask.
 

Unfortunately this is a government site and everything needs to be locked down to each subnet.

********************************************************************************

Eighty percent of success is showing up
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top