1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

How to tell XP which IP address to use for network shares

Discussion in 'Networking (Hardware & Software)' started by tanis, 2006/09/22.

  1. 2006/09/22
    tanis

    tanis Inactive Thread Starter

    Joined:
    2006/09/22
    Messages:
    3
    Likes Received:
    0
    I have the following network configuration:

    1) DMZ with servers with internet IP address. One of them should be acessable from the local network thus has a second IP 10.0.1.99
    2) LOCAL network under the 10.0.2.0 subnet
    3) A firewall/router (Linux) that is doing all the heavy job of routing packets, masquerading, etc..

    Now, I've setup a samba server on the Linux router to act as a WINS server. It works like a charm as I can see it collecting all of the names of the different boxes in my local network.
    But, for some reason, the server whose network sharing I would like to be available to the local boxes shows up with its internet address instead of 10.0.1.99

    If I access it directly it's no problem, but it doesn't appear under the workgroup when browsing the network. I'm pretty sure this is because that box is currently broadcasting that he is not 10.0.1.99 but another address (the internet one).

    Is there any way to force it to use a specific address for windows network shares? (it's a Windows XP Pro btw)

    Thanks in advance!
     
  2. 2006/09/22
    Jason Qi

    Jason Qi Inactive

    Joined:
    2004/09/10
    Messages:
    273
    Likes Received:
    0
    Which subnet mask do you use ?

    Also, I believe nothing wrong with the ip address. you don't have to force using the "another ip address" you mentioned.

    Many times, in your situation, the problematic part in Samba server.
     

  3. to hide this advert.

  4. 2006/09/22
    tanis

    tanis Inactive Thread Starter

    Joined:
    2006/09/22
    Messages:
    3
    Likes Received:
    0
    The Windows XP box has the following local IP/mask: 10.0.1.99/255.255.255.0

    That way I force it to route through the gateway that puts the two subnets in communication.
     
  5. 2006/09/22
    ReggieB

    ReggieB Inactive Alumni

    Joined:
    2004/05/12
    Messages:
    2,786
    Likes Received:
    2
    If it is a true DMZ (Is a seperate network, and you have three networks: internal, DMZ and external (intenet), with all three only being connected via the router) then the connection between the DMZ and local network will be routed at the IP level. Routers block broadcasts. That means that the NetBIOS broadcasts from 10.0.1.99 will be blocked and won't get to the WINS server or the internal PCs.

    You could add a manual mapping of name to IP into your WINS server and/or your DNS server. That's probably the easiest route. I could tell you how to do that on a Windows WINS server, but not Samba I'm afraid.
     
  6. 2006/09/22
    Jason Qi

    Jason Qi Inactive

    Joined:
    2004/09/10
    Messages:
    273
    Likes Received:
    0
    OK, Your XP box in network 10.0.1.0 and your server (which you want show up in the workgroup of XP box) in network 10.0.2.0.

    Is that correct?

    If so, the broadcast packets can't go through the router/gateway. Of couse, for the Internet ip, the same thing.

    you need put them(server and xp box) into one network segment so that the server can show up in the workgroup of xp box.
     
    Last edited: 2006/09/22
  7. 2006/09/22
    tanis

    tanis Inactive Thread Starter

    Joined:
    2006/09/22
    Messages:
    3
    Likes Received:
    0
    True. Broadcasts get stopped by the router. That's why the WINS server is on the router itself. That way all of the subnets can communicate with it. And in fact I get everything working correctly. The only problem is that the Windows XP box in the DMZ gets registered with its external IP and thus it's not being resolved by WINS with the other internal IP which is the one reachable by windows network.

    If it could announce its other IP instead of the external one, all would be perfect. But I can't find a way to do that.
     
  8. 2006/09/22
    Jason Qi

    Jason Qi Inactive

    Joined:
    2004/09/10
    Messages:
    273
    Likes Received:
    0
    I am not sure if it works but no hurt to try

    Could you set your server's first ip as 10.0.1.99 and the second ip as internet ip?
     
  9. 2006/09/23
    ReggieB

    ReggieB Inactive Alumni

    Joined:
    2004/05/12
    Messages:
    2,786
    Likes Received:
    2
    You could try changing the binding order on the server. In XP open Network Connections. On that window, go to the Advanced menu and select "Advanced Settings..." That takes you to the "Adapters and Bindings" settings. Put the 10.0.1.99 adapter above the other adapter.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.