<<新主題 | 舊主題>>
娛樂滿紛 26FUN » 電腦區 » Difference between Router and Switch
返回列表 回復 發帖

Difference between Router and Switch

Could you tell me the difference between router and switch?
Thanks a lot!
Routor可以當server用 i.e當你用佢黎連接超過一部機既時候,
就唔駛開住一部機黎做server;而且router d功能比switch勁,
有firewall又有nat,dmz等等既功能
I am not sure if you can understand or not.

Router is actually uses IP address to determine the most efficient path to transfer data to destination.  (mostly used in multi network situation)
For example, I live in Toronto, if I transfer data to a person in HK, my data will have to go through a  lot of routers over the world.  Router would choose the best path.  

Switches uses MAC address to make decision of choosing path to transfer data to destination.  (the computer itself still uses IP address)  Switches are mainly used in a large LAN environment.  Switches can allow about 20 -50 computers connected to it.  It actually transfer data faster in a LAN environment because once the data is sent to a switch, it will pass the data to the corrent port for that destination computer.

Some switches have firewall function too.

For home purposes, your small router is just providing the switching function that normal switches can do because you probably only have 1 single subnet (1 single LAN) at home.

However, in a business world or office use, if there are 30 or 40 computers, you can connect all of them to one switch.  If the company has more than 1 department and each department has 30 or 40 computers.  Then each department can have 1 switch and all the switches are then connected to the router.  In this case, router is used to seperate each department into one subnet(which is the main function of a router).

(Note that, router normall does not support as many ports as switches do.  In order words switches allow more computer to connect to it.)

If you didn't study computer before, you might not understand what it means by subnet or MAC address.
thanks a lot slwong...

sorry im lack of computer knowledge...

so... I should buy a router or switch to share my broadband for 3 computers?

Thanks a lot!
router 上到網
switch 上唔到網
1234567
***you can buy either of them

***both router and switch can act as "DHCP" server which will hand out IP address to your computers (which means they both can help you get on internet)

but router is easier to use and has more functions because you can access the router by just typing the private IP address of the router
a small router with 4 or 6 ports supported is good enough for you already


you can just simply plug the ethernet cables for each computer to each port.  The router should be plugged to your "Internet connection modem" which is supplied by your service provider.

for the setting of your network card of your 3 computers, you can just leave it as "obtain IP address automatically".

By default, the router's IP address is 192.168.1.1 or 192.168.2.1 (depends on the manufacturer of your router, you can find it in the manual when you buy the router)
After you plug in all the cables, use "Internet Explorer", type in the address "http://192.168.1.1" or .2.1 depends on the router.  Then the router should prompt you for the administrator password.
The default password of the router can be found on the manufacturer's website or in the manual.  
After typing the password, you can now access the router and set up different things.

***You should first change the router's password to a different one for security purpose.

Secondly, you should specify the connection that you use for the internet.
I'm not sure your internet connection that you use in HK.  Some service provider would require username/password for you to get on internet.  This might be one thing that you need to set up for your router.
Normally, you can just leave your router as "obtain IP address automatically" just like the network cards of your computers.
(Router should now have 2 IP addresses.  One is for your private LAN which starts with 192.168.1.1.  The second IP address(external IP address) it should have is given by your Internet connection company.   If you set it up correctly, you should be able to view it on the router.)

Then you can set up the firewall, filter-032less connection, or even blocking certain computer in your house to go on internet

I think most of the people use router at home.
As I mentioned before, switch is usually used in big company which has a lot of computers in an office.
However, switch is actually as powerful as router.  It's just that they are used for different purpose.

Hopefully, this can help you to set up your own network at home.
one more thing,
some small switches just support 5-8 ports which is good for home use too

For the small routers and switches for home use, their price are close too.
Router 可以係 OSI 7 層中既 Level 3 (網路層) 工作
Switch 冇記錯係 Level 2
太耐冇睇 CCNA 的東東了 , 有錯請糾正, thanks

Simple OSI , TCP/IP structure
http://www.study-area.org/study.old/network/network_7layer.htm
要相信自己!!!
Really thanks so much to all of your help~~~~
I had gone out to buy a router from Buffalo at last. But I have still not yet started the set-up... becasue there are some settings in manual... I dunno which one(s) I should do...
Originally posted by gaye at 2005-8-6 02:06 AM:
Router 可以係 OSI 7 層中既 Level 3 ...
yes you're right
返回列表 回復 發帖
<<新主題 | 舊主題>>
娛樂滿紛 26FUN » 電腦區 » Difference between Router and Switch

重要聲明:26fun.com為一個討論區服務網站。本網站是以即時上載留言的方式運作,26fun.com對所有留言的真實性、完整性及立場等,不負任何法律責任。而一切留言之言論只代表留言者個人意見,並非本網站之立場,用戶不應信賴內容,並應自行判斷內容之真實性。於有關情形下,用戶應尋求專業意見(如涉及醫療、法律或投資等問題)。 由於本討論區受到「即時上載留言」運作方式所規限,故不能完全監察所有留言,若讀者發現有留言出現問題,請聯絡我們。26fun.com有權刪除任何留言及拒絕任何人士上載留言,同時亦有不刪除留言的權利。切勿撰寫粗言穢語、誹謗、渲染色情暴力或人身攻擊的言論,敬請自律。本網站保留一切法律權利。