Using Microsoft file and printer sharing through a connected switch and router

Posted on 2004-11-04
Last Modified: 2013-11-30
Hi there,

We are a small business running about 12 computers -- we have a 24-port Netgear 10/100 switch which is plugged into a 1mb cable modem connection.  Our office features two main areas, and I would like to connect 4 or 5 computers directly to the 24-port Netgear switch and then have a cable going across the office to a Belkin 4-port wireless router (connected in the "uplink" port) with 4 more computers hooked into that.  The key here is I want file sharing across all computers and also printer sharing, however, we have not been able to have the computers on the switch "see" the computers on the router, and vice versa.  You should also know that we have a dynamic IP address/DNS which is assigned by our ISP.

Thanks for your help on this.  Best, Jaeson
Question by:jaesonrosenfeld
    LVL 8

    Expert Comment


    on the router... do you have the cable coming from the 24 port switch plugged into the WAN port or into one of the other ports.
    if you have it connected to the WAN port then it might be firewalled... try connecting the cable into one of the other ports and leave the WAN port alone. this will make 1 big switch instead of a switch and router setup while still providing wireless..
    LVL 8

    Accepted Solution


    ah i noticed you say it is in the 'uplink' port... swap that... it should work after that.
    the reason you dont need to use the uplink port is because you can get enough ip adresses from the cable modem, all you need it for is wireless... no need for the router to split them up even more, that creates alot of overhead.

    Author Comment

    Hi ViRoy,
    Thanks for the fast feedback -- I did not totally understand, should I put it in the WAN port or just one of the 4 general ports.  And if it is the WAN port, does the firewall issue not concern you? Also, are there any setting that i might need to adjust on the routers configuration page?

    Thanks again,
    LVL 8

    Assisted Solution

    The IP adress from your ISP is only interesting for the WAN port of the router... so dynamic or not, that doesnt matter. What LAN IP adresses do you use? It shoudl be adresses in the same network range for all PCs and the routers internal interface.

    Try to choose this:
    IP with netmask for the router

    IP with netmask up to
    IP with netmask for the PCs in the one building

    IP with netmask for the PCs in the other building

    feel free to use other private network adress ranges, but these are some standards

    If you want to activate DHCP on the router, feel free to do this... you have to setup the client PCs accordingly, so they can get dynamic IP adresses


    LVL 8

    Expert Comment

    The connection line from the switch MUST be put into a non-WAN-port ... these non-WAN-ports are standard switch-ports, so that you in effective extend the other switch into the second room
    LVL 8

    Expert Comment

    If you don't use dynamic IP adresses for your LAN (DHCP) you'll have to assign the gateway adress (routers and the DNS adress to the clients (it's more work for the beginning)

    Author Comment

    Sorry still a little lost here.  I am a bit of a newbie at this.  So I get this much:

    1. Need to hook the outgoing cable from the 24-port switch into any non-WAN, non-uplink port in the router.
    2. My default gateway is with subnet mask, and the ip addresses are  This is what i get when I type cmd/ipconfig from a computer connected into the 24-port switch
    3. My default gateway for a computer connected to the router is with subnet mask and ip addresses are I assume the router default gateway will change to the same as the switch default gateway when i plug into the non-Wan, non-uplink port?

    4. I am pasting the information that I get when i pull up the in the Internet explorer window.

    Parameter Status
    WAN IP Address Assignment Dynamic  
          IP Address
          Subnet Mask
          Default Gateway
    DNS Servers
    DHCP Server/NAT Enabled  
    Configured MAC Address 00:11:1A:51:C7:58
    Factory MAC Address 00:11:1A:51:C7:58
    Line 1
        Phone Number
        Caller ID  
    Line 2
        Phone Number
        Caller ID  

    So my question: do i need to make some manual adjustments in the configuration page for the switch, or can i just simply plug the cable into the non-WAN, non-uplink port and I should be fine?  Last stupid question, as a novice I would have assumed certain ports in a router are "in" ports (WAN, uplink) and certain ports are "out" ports (all others), but this is not the case?

    LVL 5

    Expert Comment

    is the cable your only internet provider? t1, isdn?

    the reason why your having trouble is not the wan etc...

    the router is segmenting your network

    i.e     and the router

    the reason why the computers cannot "see"
    each other is that the netbios packets are not being passed through the router

    so if you really wanted you can allow the packets through (bad idea, more complicated), you can manually network by ip address instead of UNC

    simply turn off nat on your router and dhcp server,spi too if its blocking smb requests (your turning your wireless into an access point) better idea..  

    is the cable/dsl your only internet conecction in the office?

    setup the routers lan IP to be in the same range  

    LVL 8

    Expert Comment

    Has any of your equipement the IP or is this just entered as the gateway, but noone cares?
    If the answer is Yes, just reconfigure the internal IP of the router to and use this as the one and only default gateway.

    The 24-port switch must be cross-connectet to the routers non-WAN-port.
    You can achieve this by either ...
    .... using ONE (and only one!) uplink port, of the switch OR the router with a standard cable
    .... using a crossover cable and DON'T use any uplink port

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    Before I go to far, let's explain HA (High Availability) and why you should consider it.  High availability is the mechanism used to provide redundancy to any service at the same site and appears as a single service to the users of that service.  As…
    If your business is like most, chances are you still need to maintain a fax infrastructure for your staff. It’s hard to believe that a communication technology that was thriving in the mid-80s could still be an essential part of your team’s modern I…
    After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now