Koozali.org: home of the SME Server

SME server kills my local windows nework?

Offline svetlo56

  • **
  • 39
  • +0/-0
SME server kills my local windows nework?
« on: February 15, 2007, 05:50:28 PM »
I have my SME server 7.1 within the local network as a webserver with appropriate ports forwarded from my router (Netgear FVS318) and my website and mail and everything else works and can be appropriately accessed from anywhere.

The problem is that my Windows network does not work, after a period of working fine. I tried disconnecting the SME server (which has assigned a static address 192.168.2.225), and then connecting any combination of computers (cca. 7 or more) in any order with Windows networking working. Conversely, whenever the SME server is connected the Windows network does not work (cannot be accessed), regardless of other computers. The bottom line is that only time the Windows network works is when I disconnect ie unplug the wire from the SME server.

I run all manner of antivirus and antispyware software and my computers come out clean.

Is there any way to set the SME server as DHCP client? It does NOT have to be set as a static address since I can specify in FVS 318 to always give it the same address (in my case 192.168.1.225). The range of my DHCP is 192.168.1.2 - 192.168.1.51, with FreeNAS file server given 192.168.1.50 by telling FVS318 to always give it this address. The FreNAS is set up to get dynamic DHCP assigned address, and works great. I would like to try similar with SME server, that is, I want FVS318 DHCP server to assign a local address to my SME server. When I try to setup the SME server it asks me for local address without other options.

Funny, I had the same problem with my previous router (US Robotics USR8200 which, by the way, is the piece of junk for which I was advised by US Robotics support to throw away after speding 3 weeks trying to fix it. Never buy any USR thing!).

I am totally confused. Any suggestion on how to connect SME server to my local network is appreciated.

Offline mercyh

  • *
  • 824
  • +0/-0
    • http://mercyh.org
SME server kills my local windows nework?
« Reply #1 on: February 15, 2007, 06:33:07 PM »
I think you have a conflicting IP address issue.

1. Make sure the DHCP server on the SME is turned off as that function is taken care of by the FVS318.

2. Disconnect the server from the network and Ping the Static address you have assigned to the server from a windows workstation. (In this case 192.168.1.225) If you get a hit you know that another device is using that IP and you have a conflict. In my experience, if there is an address conflict between windows and linux, Linux will take priority.

I assume that in this setting you are running in server only mode with one NIC on the SME connected to the network. I would check this and make sure that is the case.

Offline mercyh

  • *
  • 824
  • +0/-0
    • http://mercyh.org
SME server kills my local windows nework?
« Reply #2 on: February 15, 2007, 06:40:08 PM »
I agree that getting a dynamic address from the router would probably fix the problem, however, I don't think it is necessary. You should be able to assign a working static address without conflicts that will work.

Offline svetlo56

  • **
  • 39
  • +0/-0
SME server kills my local windows nework?
« Reply #3 on: February 15, 2007, 07:53:20 PM »
Quote from: "mercyh"
I think you have a conflicting IP address issue.

1. Make sure the DHCP server on the SME is turned off as that function is taken care of by the FVS318.

2. Disconnect the server from the network and Ping the Static address you have assigned to the server from a windows workstation. (In this case 192.168.1.225) If you get a hit you know that another device is using that IP and you have a conflict. In my experience, if there is an address conflict between windows and linux, Linux will take priority.

I assume that in this setting you are running in server only mode with one NIC on the SME connected to the network. I would check this and make sure that is the case.


I did disconnect SME server and then ping 192.168.1.225 and there's no response. I also double checked and it's setup as server only and only one NIC is present.  Of note, when SME server is connected, it works fine, but the Window network is dead. Is there any way to use dynamic address?

Offline Confucius

  • *****
  • 235
  • +0/-0
SME server kills my local windows nework?
« Reply #4 on: February 15, 2007, 08:46:53 PM »
It's not wise to use the address ending with 255. This is used for Bcast or in normal words BroadCasting. I miss the specific knowledge what the BroadCast explicitly does but I would suggest to simply make your windows server be the DHCP (and prob. AD) for the network. Assign the SME server with a static IP address (otherwise you might get nuts from changing the port-forwards) and choose an IP outside the DHCP range from de Windows Server. Prevent using the last digits 0, 127 & 255 and any other static assigned IP address in your network for that matter.

Very curious what this will do for u.

Harro

Hmmmmm.. Rereading the post.. I assumed you have a windows server. Might be I misunderstood. Doesn't change much for my story tho; only shows that I suffer from a habit to think in servers these days  :P

Offline JohnG

  • ****
  • 89
  • +0/-0
Re: SME server kills my local windows nework?
« Reply #5 on: February 15, 2007, 10:25:45 PM »
Which is it, is the IP 192.168.2.225 or 192.168.1.225?

Offline Confucius

  • *****
  • 235
  • +0/-0
SME server kills my local windows nework?
« Reply #6 on: February 15, 2007, 10:31:14 PM »
Seems I need new glasses... bummer.. and I thought I might have hit the jackpot with my bcast explanation  :oops:

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
SME server kills my local windows nework?
« Reply #7 on: February 15, 2007, 10:57:30 PM »
Ok now for my two cents (got this sentence from one of the forum users and i like it  :)  )

You have two dhcp services enabled.  FVS318 DHCP server and SME server DHCP. One of them has to be off. That's why your lan doesn't work. You have two servers that conflict with each other.

1.)Just put your server in server mode and plug it in your LAN network. Then forward apropriate ports via FVS318 DHCP server to your SME box and you're home free.

2.)Or if FVS318 DHCP server hasn't firewall functions: plug your SME in server/gateway mode first and then configure FVS318 DHCP server and put it behind SME. Then you'll be able to use lan, you'll have a firewall and  FVS318 DHCP server will still asign IP's to your workstations.

3.) And last but most simple option: Remove FVS318 DHCP server and just use SME in server/gateway mode.
"It should just work" if it doesn't report it. Thanks!

Offline svetlo56

  • **
  • 39
  • +0/-0
SME server kills my local windows nework?
« Reply #8 on: February 16, 2007, 05:51:26 AM »
Quote from: "bpivk"


You have two dhcp services enabled.  FVS318 DHCP server and SME server DHCP. One of them has to be off. That's why your lan doesn't work. You have two servers that conflict with each other.


Funny thing, the DHCP server in my SME box is off. But, I just made the whole thing work: first I turned on all the computers in my network and everything works. Then I connected the SME server and everything still works. I do not know until when, because this happened before. Apparently the timing of turning things on matters. Can anyone explain that?

Once again my SME server address is 192.168.1.225

Offline raem

  • *
  • 3,972
  • +4/-0
SME server kills my local windows nework?
« Reply #9 on: February 16, 2007, 08:52:41 AM »
svetlo56

You may be having browsemaster issues, search forums on browsemaster
...

Offline svetlo56

  • **
  • 39
  • +0/-0
SME server kills my local windows nework?
« Reply #10 on: February 16, 2007, 08:23:02 PM »
Quote from: "RayMitchell"
svetlo56

You may be having browsemaster issues, search forums on browsemaster


You are probably right, after searching forums I saw other people had problems like mine. However, there is no clear description of browsemaster and how to correct the problem.

 :roll:

Offline raem

  • *
  • 3,972
  • +4/-0
SME server kills my local windows nework?
« Reply #11 on: February 17, 2007, 12:43:22 AM »
svetlo56

> there is no clear description of browsemaster and how to correct the problem.

If you search the forums on the keyword
browsemaster
you only get 8 results. If you then read those threads you will see very clear and specific fixes for setting browsemaster settings where you have multiple Windows & sme servers on the same network.

The general concept is to make the os level setting higher so it overrides other servers on the network, and/or disable browsemaster on other servers so there is no clash. Note that a sme in server only mode has a much lower os level setting than a sme in server & gateway mode.

This thread
http://forums.contribs.org/index.php?topic=33598.0
links to this thread
http://forums.contribs.org/index.php?topic=26199.0
which says

see /etc/smb.conf
see section called "os level"

To change this permanently you should create a custom template eg
/etc/e-smith/templates-custom/etc/smb.conf/11osLevel
by copying the original fragment, editing it, expanding the template and restarting the service.

For more info on browsing and elections see
/usr/share/doc/samba-2.2.8a/docs/textdocs/BROWSING.txt


In Win2K registry you might check this setting
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Browser\Parameters\MaintainServerList

It has a default setting of Auto, change it to No


and from this thread
http://forums.contribs.org/index.php?topic=33088.0
which says

You would be best to configure your sme server as Domain Controller & DHCP server & DNS server, and set up your users there. They can login & authenticate for access to other workstations/servers on the domain.
Disable these functions (& browsemaster too) in any Windows servers or you will have conflicts/problems.


and from this thread
http://forums.contribs.org/index.php?topic=7596.0
which says

This is how to Disable Master Browser on Win2K.

Open your favorite registry editor (regedit, regedt32, etc) and browse to the following key:

\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Browser\Parameters

Set the value of the "Parameters" key to "No".

FYI, the possible values of the "Parameters" key are:

No: (do not participate in browser elections). THIS IS WHAT YOU WANT!

Yes: (THIS IS THE DEFAULT VALUE for Win2000 Server). This computer will ALWAYS be a master browser or a backup browser. This is the cause your department head's problem. You need to change this value to "No".

Auto: (THIS IS THE DEFAULT VALUE FOR WIN2000 Pro). This computer MAY become a browser if there are not enough other browsers out there on the network.

For more detailed information, see
http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodtechnol/windows2000serv/reskit/tcpip/part4/tcpappi.asp
...

Offline svetlo56

  • **
  • 39
  • +0/-0
SME server kills my local windows nework?
« Reply #12 on: February 17, 2007, 03:25:17 AM »
MY MISTAKE

Offline svetlo56

  • **
  • 39
  • +0/-0
SME server kills my local windows nework?
« Reply #13 on: February 17, 2007, 04:24:42 AM »
RayMitchell says

> there is no clear description of browsemaster and how to correct the problem.

If you search the forums on the keyword
browsemaster
you only get 8 results. If you then read those threads you will see very clear and specific fixes for setting browsemaster settings where you have multiple Windows & sme servers on the same network.

The general concept is to make the os level setting higher so it overrides other servers on the network, and/or disable browsemaster on other Bservers so there is no clash. Note that a sme in server only mode has a much lower os level setting than a sme in server & gateway mode.

THIS IS ALL FINE AND DANDY, WHAT MAY SOLVE THE PROBLEM IS IF I AM ABLE TO SET BROWSEMASTER ON MY SME SERVER LOW ENOUGH NOT TO TRY TO OVERTAKE THE SYSTEM, THAT WOULD SOLVE ALL, AM I RIGHT?


This thread
http://forums.contribs.org/index.php?topic=33598.0
links to this thread
http://forums.contribs.org/index.php?topic=26199.0
which says

see /etc/smb.conf THERE AT LEAST 10 SUCH FILES IN MY SME 7.1 SERVER
see section called "os level"

To change this permanently you should create a custom template eg
/etc/e-smith/templates-custom/etc/smb.conf/11osLevel
by copying the original fragment, editing it, expanding the template and restarting the service.

IS THIS WHAT I SHOULD CHANGE? I AM NOT SURE WHAT A CUSTOM TEMPLATE MEANS, OR COPYING THE ORIGINAL FRAGMENT (WHICH, FROM WHERE), EXPANDING THE TEMPLATE OR RESTARTING THE SERVICE - REBOOTING?

For more info on browsing and elections see
/usr/share/doc/samba-2.2.8a/docs/textdocs/BROWSING.txt


In Win2K registry you might check this setting
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Browser\Parameters\MaintainServerList

I HAVE WINDOWS XP, IT LOOKS THE SAME.

It has a default setting of Auto, change it to No



and from this thread
http://forums.contribs.org/index.php?topic=33088.0
which says

You would be best to configure your sme server as Domain Controller & DHCP server & DNS server, and set up your users there. They can login & authenticate for access to other workstations/servers on the domain.
Disable these functions (& browsemaster too) in any Windows servers or you will have conflicts/problems.

BUT I WOULD LIKE TO MESS  AS LITTLE AS POSSIBLE WITH THE REGISTRY AND IT MAY BE EASIER TO CHANGE SME SERVER THAN 7 OR MORE OTHER COMPUTERS

and from this thread
http://forums.contribs.org/index.php?topic=7596.0
which says

This is how to Disable Master Browser on Win2K.

Open your favorite registry editor (regedit, regedt32, etc) and browse to the following key:

\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Browser\Parameters

Set the value of the "Parameters" key to "No".

FYI, the possible values of the "Parameters" key are:

No: (do not participate in browser elections). THIS IS WHAT YOU WANT!

Yes: (THIS IS THE DEFAULT VALUE for Win2000 Server). This computer will ALWAYS be a master browser or a backup browser. This is the cause your department head's problem. You need to change this value to "No".

Auto: (THIS IS THE DEFAULT VALUE FOR WIN2000 Pro). This computer MAY become a browser if there are not enough other browsers out there on the network.

AGAIN I HAVE XP PRO AND NOT 2K AND NO OTHER SERVERS. I AM NOT TRYING TO BE A PAIN IN THE YOU KNOW WHAT, JUST TO FIND A SIMPLE SOLUTION TO THE PROBLEM WHICH I BELIEVE MANY PEOPLE HAVE.

THE STUFF ABOVE IS NOT CLEAR AND I CANNOT FOLLOW IT FOR THE REASONS DESCRIBED. WHAT MAY BE USEFUL IS SOMETHING

GO THERE
CHANGE THIS
END

I DO NOT HAVE A DETAILED KNOWLEDGE OF LINUX, ONLY VERY RUDIMENTARY AND CERTAINLY NOT ENOUGH FOR VAGUE DESCRIPTIONS AS ABOVE

For more detailed information, see THIS IS A DEAD LINK
http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodtechnol/windows2000serv/reskit/tcpip/part4/tcpappi.asp[/quote]

Offline raem

  • *
  • 3,972
  • +4/-0
SME server kills my local windows nework?
« Reply #14 on: February 17, 2007, 05:31:37 AM »
svetlo56

> IF I AM ABLE TO SET BROWSEMASTER ON MY SME SERVER LOW ENOUGH

Yes, it may depending what your problem really is.


> see /etc/smb.conf THERE IS NO SUCH FILE IN MY SME 7.1 SERVER

Things change between versions ! It is a symlink to /etc/samba/smb.conf
lrwxrwxrwx   1 root   admin       19 Jan  9 21:06 smb.conf -> /etc/samba/smb.conf


> I HAVE WINDOWS XP, IT LOOKS THE SAME.

The registry entry is the same, XP is based on 2K and they are fundamentally the same, (except for the differences !)


> WHAT MAY BE USEFUL IS SOMETHING GO THERE CHANGE THIS END

The more explicit steps are (which you should learn to work out for yourself)

cp /etc/e-smith/templates/etc/smb.conf/11osLevel /etc/e-smith/templates-custom/etc/smb.conf/11osLevel

pico /etc/e-smith/templates-custom/etc/smb.conf/11osLevel

make changes to the line that says
 my $os_level = $smb{OsLevel} || "65";
eg set to 30 if you want windows servers to be browsemasters or set to 95 if you want sme to be browsemaster

Ctrl o to save Ctrl x to exit

expand-template /etc/smb.conf

/etc/init.d/smb restart

note this wil restart smb & nmb services

Read the devinfo guide and search forums and how tos for many many examples of the approach to doing this for any custom template & service.
...