Networking Forums

Networking Forums > Computer Networking > Linux Networking > switch newbie

Reply
Thread Tools Display Modes

switch newbie

 
 
cmk128@hotmail.com
Guest
Posts: n/a

 
      02-23-2007, 01:27 AM
Hi
My friend told me the switch will not assign IPs to clients but
router will. Is he correct?
What is the different between switch and router? so far i know, you
can link two linksys switch to get 200% speed.


thanks
from Peter ((E-Mail Removed))

 
Reply With Quote
 
 
 
 
Bit Twister
Guest
Posts: n/a

 
      02-23-2007, 01:52 AM
On 22 Feb 2007 18:27:56 -0800, (E-Mail Removed) wrote:
> Hi
> My friend told me the switch will not assign IPs to clients but
> router will.


Maybe, depends. Usually a dhcp server assigns IPs to clients.

> What is the different between switch and router?


You would be amazed at what you can find on google.com

http://www.google.com/search?hl=en&l...e=off&q=router
http://www.google.com/search?hl=en&l...e=off&q=switch
http://www.google.com/search?hl=en&l...safe=off&q=hub
 
Reply With Quote
 
David Schwartz
Guest
Posts: n/a

 
      02-23-2007, 11:38 AM
On Feb 22, 6:27 pm, cmk...@hotmail.com wrote:

> My friend told me the switch will not assign IPs to clients but
> router will. Is he correct?


Typically, yes. While nothing prohibits a switch from being able to
assign IP addresses or guarantees that every router will be able to do
so, typically switches have no ability to assign IP addresses and
typically routers (particularly those that do NAT) do.

> What is the different between switch and router?


Typically:

A switch takes packets received on one link and send them out one or
more other links. They generally start out by sending all packets out
all links (except the one on which they received it, of course) but
begin to passively learn the network layout. For example, if they see
traffic from a particular hardware address comes from port 3, they can
send unicast packets to that hardware address out only port 3.
Switches typically operate at the ethernet layer and don't need to
know or care anything about IP.

A router, in contrast, operates at the IP level. It maintains a
routing table (that is either configured into it, learned by
exchanging routing information with other devices, or some
combination) and routes packets based on their destination IP address.

> so far i know, you
> can link two linksys switch to get 200% speed.


I'm not sure what you are expecting to get 200% speed of. A typical
switch can run each port at full wire speed. Why would you expect,
say, 2 8-port switches to be any faster than one 16-port switch? Why
should the number of switches matter?

DS

 
Reply With Quote
 
John Thompson
Guest
Posts: n/a

 
      02-24-2007, 02:53 AM
On 2007-02-23, (E-Mail Removed) <(E-Mail Removed)> wrote:

> My friend told me the switch will not assign IPs to clients but
> router will. Is he correct?


A switch doesn't assign IP adresses. A router will, but only if it has a
dhcp server function enabled.

--

John ((E-Mail Removed))
 
Reply With Quote
 
***** charles
Guest
Posts: n/a

 
      02-24-2007, 04:05 AM
<(E-Mail Removed)> wrote in message
news:(E-Mail Removed) oups.com...
> Hi
> My friend told me the switch will not assign IPs to clients but
> router will. Is he correct?


Neither switches nor routers assign IP addresses. If you are in dhcp
mode, the dhcp server assigns the addresses. If you are in manual
mode the user assigns the IP address through some software program.

In the "old days" all these devices you are talking about were separate
boxes. Now one box many different functions - thus confusion.

> What is the different between switch and router?


A switch connects 2 or more computers and makes connections
so that all the computers do not get a broadcast, only the two computers
communicating (as opposed to hub). In a hub everyone shouts so everyone
hears, in a switch only the two computers communicating get the broadcast.
Look up virtual lans and virtual circuts.

> so far i know, you
> can link two linksys switch to get 200% speed


The slang for getting 200% speed really means that the data is traveling
both ways at the same time. In a 100 baseT network, the connection
means that the data is traveling at 100MB/s in one way. If the data is
traveling both directions at the same time, it is like getting 200MB/s of
effective rate, or 200% speed. You don't need to connect 2 switches
together to get this phenomenon.

later.....


 
Reply With Quote
 
cmk128@hotmail.com
Guest
Posts: n/a

 
      02-24-2007, 01:04 PM
On 2¤ë24¤é, ¤U¤È1®É05¤À, "***** charles" <shultz...@sbcglobal.net> wrote:
> <cmk...@hotmail.com> wrote in message
>
> news:(E-Mail Removed) oups.com...
>
> > Hi
> > My friend told me the switch will not assign IPs to clients but
> > router will. Is he correct?

>
> Neither switches nor routers assign IP addresses. If you are in dhcp
> mode, the dhcp server assigns the addresses. If you are in manual
> mode the user assigns the IP address through some software program.
>
> In the "old days" all these devices you are talking about were separate
> boxes. Now one box many different functions - thus confusion.
>
> > What is the different between switch and router?

>
> A switch connects 2 or more computers and makes connections
> so that all the computers do not get a broadcast, only the two computers
> communicating (as opposed to hub). In a hub everyone shouts so everyone
> hears, in a switch only the two computers communicating get the broadcast.
> Look up virtual lans and virtual circuts.
>
> > so far i know, you
> > can link two linksys switch to get 200% speed

>
> The slang for getting 200% speed really means that the data is traveling
> both ways at the same time. In a 100 baseT network, the connection
> means that the data is traveling at 100MB/s in one way. If the data is
> traveling both directions at the same time, it is like getting 200MB/s of
> effective rate, or 200% speed. You don't need to connect 2 switches
> together to get this phenomenon.
>
> later.....


Hi, as you said, switch connect 2 computers, but the switch doesn't
assigne IPs for them, so how can the switch do it?
"hub everyone shouts so everyone hears, in a switch only the two
computers communicating get the broadcast." <------ OK, that mean
the switch is much for faster then hub. Except the matter of speed, it
there any thing else the switch can do but the hub/router don't?
thank you everybody
from (E-Mail Removed)

 
Reply With Quote
 
***** charles
Guest
Posts: n/a

 
      02-24-2007, 04:04 PM
<(E-Mail Removed)> wrote in message
news:(E-Mail Removed) ups.com...
On 2¤ë24¤é, ¤U¤È1®É05¤À, "***** charles" <shultz...@sbcglobal.net> wrote:
> <cmk...@hotmail.com> wrote in message
>
> news:(E-Mail Removed) oups.com...
>
> > Hi
> > My friend told me the switch will not assign IPs to clients but
> > router will. Is he correct?

>
> Neither switches nor routers assign IP addresses. If you are in dhcp
> mode, the dhcp server assigns the addresses. If you are in manual
> mode the user assigns the IP address through some software program.
>
> In the "old days" all these devices you are talking about were separate
> boxes. Now one box many different functions - thus confusion.
>
> > What is the different between switch and router?

>
> A switch connects 2 or more computers and makes connections
> so that all the computers do not get a broadcast, only the two computers
> communicating (as opposed to hub). In a hub everyone shouts so everyone
> hears, in a switch only the two computers communicating get the broadcast.
> Look up virtual lans and virtual circuts.
>
> > so far i know, you
> > can link two linksys switch to get 200% speed

>
> The slang for getting 200% speed really means that the data is traveling
> both ways at the same time. In a 100 baseT network, the connection
> means that the data is traveling at 100MB/s in one way. If the data is
> traveling both directions at the same time, it is like getting 200MB/s of
> effective rate, or 200% speed. You don't need to connect 2 switches
> together to get this phenomenon.
>
> later.....


Hi, as you said, switch connect 2 computers, but the switch doesn't
assigne IPs for them, so how can the switch do it?
"hub everyone shouts so everyone hears, in a switch only the two
computers communicating get the broadcast." <------ OK, that mean
the switch is much for faster then hub. Except the matter of speed, it
there any thing else the switch can do but the hub/router don't?
thank you everybody
from (E-Mail Removed)

Depends on what the engineers designed into the thing. If you go
out and get a high end Cisco switch you may be able to use fiber
connections, assign/configure multiple virtual lans, have active
SNMP monitoring and have lots of ports. On the other hand, if you
go out and get a $40 switch from Fry's, you will be able to say that
the connections are not the type used in a hub and you may get
4 ports with no cascading and all plastic parts and a waurantee
that says it will work until you hit the front door.


 
Reply With Quote
 
David Schwartz
Guest
Posts: n/a

 
      02-25-2007, 07:42 AM
On Feb 24, 6:04 am, cmk...@hotmail.com wrote:

> Hi, as you said, switch connect 2 computers, but the switch doesn't
> assigne IPs for them, so how can the switch do it?


Check out my reply, I explained it in detail. Basically, it starts out
simply copying every packet it receives out every other port on the
switch. When it sees packets, it notes the source ethernet hardware
address and sends later packets to that same hardware address out only
that port.

DS

 
Reply With Quote
 
Llanzlan Klazmon the 15th
Guest
Posts: n/a

 
      02-25-2007, 11:04 PM
(E-Mail Removed) wrote in
news:(E-Mail Removed) ups.com:

> On 2¤ë24¤é, ¤U¤È1®É05¤À, "***** charles" <shultz...@sbcglobal.net>
> wrote:
>> <cmk...@hotmail.com> wrote in message
>>
>> news:(E-Mail Removed) oups.com...
>>
>> > Hi
>> > My friend told me the switch will not assign IPs to clients but
>> > router will. Is he correct?

>>
>> Neither switches nor routers assign IP addresses. If you are in dhcp
>> mode, the dhcp server assigns the addresses. If you are in manual
>> mode the user assigns the IP address through some software program.
>>
>> In the "old days" all these devices you are talking about were separate
>> boxes. Now one box many different functions - thus confusion.
>>
>> > What is the different between switch and router?

>>
>> A switch connects 2 or more computers and makes connections
>> so that all the computers do not get a broadcast, only the two
>> computers communicating (as opposed to hub). In a hub everyone shouts
>> so everyone hears, in a switch only the two computers communicating get
>> the broadcast. Look up virtual lans and virtual circuts.
>>
>> > so far i know, you
>> > can link two linksys switch to get 200% speed

>>
>> The slang for getting 200% speed really means that the data is
>> traveling both ways at the same time. In a 100 baseT network, the
>> connection means that the data is traveling at 100MB/s in one way. If
>> the data is traveling both directions at the same time, it is like
>> getting 200MB/s of effective rate, or 200% speed. You don't need to
>> connect 2 switches together to get this phenomenon.
>>
>> later.....

>
> Hi, as you said, switch connect 2 computers, but the switch doesn't
> assigne IPs for them, so how can the switch do it?


A switch is normally a layer two device. It uses the device MAC addresses
to figure out where packets need to be sent to. IP is a layer three
protocol, so the switch is ignorant of both the IP addresses and protocol.
In fact a switch will happily run other layer 3 protocols like the old
Appletalk etc without having anything specific to do with that protocol.
However modern switches often have a management function which does use
ip. There are also devices called layer 3 switches which do work at the ip
level. The main difference between a layer three switch and a router is
that a router receives an entire mtu and checks that it is valid before
making a routing decision, whereas a layer 3 switch makes the routing
decision and starts forwarding the data as soon as the ip header is
processed (assuming that the destination link is available).

Klazmon.


> "hub everyone shouts so everyone hears, in a switch only the two
> computers communicating get the broadcast." <------ OK, that mean
> the switch is much for faster then hub. Except the matter of speed, it
> there any thing else the switch can do but the hub/router don't?
> thank you everybody
> from (E-Mail Removed)
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Switch or Router/Switch? Jon Danniken Network Routers 12 08-04-2011 11:01 AM
setup problem gigabit switch + 100mbit switch Glenn Windows Networking 0 09-01-2006 07:42 AM
router contains a built-in switch versus router without a built-in switch jrefactors@hotmail.com Network Routers 37 09-19-2005 08:55 PM
router contains a built-in switch versus router without a built-in switch jrefactors@hotmail.com Windows Networking 39 09-19-2005 08:55 PM
Wireless Switch to Wireless Switch operation help. Engelkott Home Networking 2 08-13-2005 05:12 PM



1 2 3 4 5 6 7 8 9 10 11