1 Router + 1 Switch - 3 PC's 1 Laptop

Associate
Joined
3 Nov 2005
Posts
217
Location
N.Ireland
Hi,

Have 3 PC's and 1 Laptop at the moment they are all connected to share files and printers am wanting to add a ADSL router and retain the gigabit speeds, how could i add a router to have internet sharing to all PC's and laptop on the switch network.

I have an idea that i could add a router to the switch and have internet sharing that way, but how could i access the router login if it is plugged in to the switch?

Would it have to be setup first from a direct connection and then pluged in to the switch, so that all computers would have a default gateway of 192.168.0.1 for internet access?

thanks.
 
just plug in an ethernet port on the router to a switch port. Most routers these days will auto uplink for you and eh voila....internet access for all. What router do you have, someone could confirm that it support this feature :)
 
PC1 --- Switch --- Router --- Internet
PC2 ------¦-
PC3 -----¦-
LAPTOP -¦-

They all connect to the switch first and the switch connects to the router, turn on DHCP (if not already) and the computers should pick up an address ready to load the internet on. If not do some diagnostics like ping to test connectivity to each device.
 
Thanks, i checked the router and it has auto uplink :)

So am i right in thinking that any computer can access the router config because they all could use the gateway of 192.168.0.1 and just need the admin and password?

Netgear 5 Port Gigabit Ethernet (10/100/1000) Network Switch (GS605)

NETGEAR DG834 v2 ADSL2/2+ Router

LAN Ports

4 Port 10/100 Ethernet switch
- Auto Sensing
- Auto Uplink
- Half/Full Duplex Support
 
All pcs will be able to access the router. The switch basically arranges it so all pcs are connected to the router at the same time - it'll work exactly the same way it does now.
 
what about the port forwarding? will it work with 4 ports switch? as i always thought if you only port forwards to the IP from the router, not the switch.

ie,

INTERNET>>>>>>ROUTER(192.168.0.1)>>>>>>>>>>PC1(192.168.0.2)

so for RDC (port 3389), port forward 3389 to PC1 IP address

what about switch? as the IP address between the router and switch will be 1 IP address.

ie,

INTERNET>>>>>>ROUTER(192.168.0.1)>>>>>>SWITCH(???.???.???.???)>>>>>>>PC1(???.???.???.???)

switch IP would be 192.168.0.2 (correct?)
then the PC1 IP would be 192.168.0.3 (correct?)

so tell the router to port forward RDC 3389 to PC1 - 192.169.0.3 (correct?)

or i got it all wrong? lol
 
wesley said:
or i got it all wrong? lol
Pretty much, yes.

The switch is works on Layer 2. It has no IP address. It's a fairly 'dumb' device. Just think of it like this: Plugging the switch into the router just adds a load more ports to the router. It works in exactly the same way as before - just forward ports to the relavent IP addresses just like you do now.
 
Last edited:
ahh thanks :)

so basically any cheap (£10ish) 4 ports switch will do? what about the router? i'm not sure if my ADSL routers will do this (uplink?),

netgear DG834GT and speedtouch 716WL

thanks again

edit: i need a switch with auto uplink functionality?
 
Last edited:
Almost all routers & switches nowadays have auto-uplink. If they didn't, you'd only need to use a crossover cable instead of a straight-through - but it's fairly likely that one, if not both, will have the auto functionality.
 
All modern switches hold a database of ARP entries, it is simply a list MAC addresses mapped to ports on the switch.

Say an computer has an address of 192.168.1.1 and another has an address of 192.168.1.2 both with different MAC addresses

These machines are on the same subnet, when you plug them into the switch it records what Mac address is connected to which port in the switch.

When it receives a packet from 192.168.1.1 addressed for 192.168.1.2 the switch knows what port the MAC is registered to and forwards it too it.

This is a very basic example of who switches work.
 
Back
Top Bottom