Documente Academic
Documente Profesional
Documente Cultură
4
Switching
Concepts
CCNA 3 VERSION 3.0
INFORMATION ABOUT NETWORKING
Overview
Routers
Switches, Bridges
Hub, Repeaters
Ethernet/802.3 LAN
development
Distance limitations
This situation is analogous to a number of cars all trying to access a onelane road at the same time.
Because the road has only one lane, only one car can access it at a time.
Bridges
Switches
Router
Elements of
Ethernet/802.3 networks
Half-Duplex
Using half-duplex, a host could either transmit or receive at one time, but
not both.
When a collision occurs, the host that first detects the collision will send
out a jam signal to the other hosts.
Upon receiving the jam signal, each host will stop sending data, then wait
for a random period of time before attempting to retransmit.
As more hosts are added to the network and begin transmitting, collisions
are more likely to occur.
Duplex Transmissions
Network Congestion
Network Latency
Ethernet 10 BASE-T
transmission time
Transmission time equals the number of bits being sent times the bit
time for a given technology.
Another way to think about transmission time is the time it takes a
frame to be transmitted.
Small frames take a shorter amount of time. Large frames take a
longer amount of time.
Each 10 Mbps Ethernet bit has a 100 ns transmission window.
Therefore, 1 byte takes a minimum of 800 ns to transmit.
A 64-byte frame, the smallest 10BASE-T frame allowing CSMA/CD
to function properly, takes 51,200 ns ( 51.2 microseconds).
Transmission of an entire 1000-byte frame from the source station
requires 800 microseconds.
Full-duplex transmitting
Duplex Transmissions
LAN segmentation
2222
3333
nnnn
Abbreviated
MAC
Addresses
3333 1111
Nop
thats me!
e
2222 3333
Nop
nnnn
e
Abbreviated
MAC
Addresses
3333 1111
Each NIC card compares its own MAC address with the
Destination MAC Address.
2222
3333
nnnn
Abbreviated
MAC
Addresses
2222
3333
nnnn
Collision!
Abbreviated
MAC
Addresses
Access
Methods
Non-Deterministic: Contention methods (Ethernet, IEEE
802.3)
CSMA/CD
CSMA/CD (Carrier Sense Multiple Access with
Collision Detection)
Notice
the
location
of the
DA!
And as we said,
Hey,
Nop
thats me!
e
2222 3333
Nop
nnnn
e
MAC
Addresses
3333 1111
1111
Remember, a hub is
nothing more than a
multiport repeater.
2222
5555
3333
4444
Hub or
1111
2222
Nop
e
5555
Nop
e
3333 For
me!
4444 Nop
e
1111
2222
For
me!
5555
Nop
e
3333 Nop
e
4444 Nop
e
Another disadvantage
with hubs is that is take
up unnecessary
bandwidth on other links.
Wasted
bandwidth
Sending and receiving Ethernet frames via a
switch
3333 1111
switch
1111
3333
Abbreviate
d MAC
addresses
2222
4444
3333 1111
switch
1111
3333
Abbreviate
d MAC
addresses
2222
4444
1111 3333
switch
1111
3333
Abbreviate
d MAC
addresses
2222
4444
3333 1111
switch
1111 3333
1111
3333
Abbreviate
d MAC
addresses
2222
4444
3333 1111
switch
3333 4444
1111
3333
Abbreviate
d MAC
addresses
2222
4444
Collision Domains
Source Address Table
Port Source MAC Add. Port Source MAC
Add.
1
1111
6
3333
9
4444 Collision
switch
3333 1111
Domains
3333 4444
1111
3333
Abbreviate
d MAC
addresses
2222
4444
Other Information
Source Address Table
Port Source MAC Add. Port Source MAC
Add.
1
1111
6
3333
9
4444
switch
5 minutes is common on
most vendor switches.
1111
3333
Abbreviate
d MAC
addresses
4444
2222
learning
flooding filtering
forwarding
aging
Yes
Flood Packet
Yes
Filter Packet
1111 3333
3333
1111 2222 5555
1111 3333
3333
1111 2222 5555
Where is the
collision domain?
1111 3333
Collision
Domain
3333
1111 2222 5555
(routing)
Symmetric and
asymmetric switching
Memory buffering
switch
1111
3333
Abbreviate
d MAC
addresses
2222
4444
Cut-through
Cut-through
Cut-through
Cut-through
Adaptive cut-through
Once the error threshold is reached, the switch changes to storeand-forward mode.
Functions of a switch
How switches
learn
Learning bridges or
addresses
Learning switches
If a switch has the frames destination address in its CAM table (or
Source Address Table) it will only send the frame out the
appropriate port.
If a switch does not have the frames destination MAC address in
its CAM table, it floods (sends) it out all ports except for the
incoming port (the port that the frame came in on) known as an
Unknown Unicast, or if the destination MAC address is a broadcast.
Note: A CAM table may contain multiple entries per port, if a hub
or a switch is attached to that port.
Most Ethernet bridges can filter broadcast and multicast frames.
Unknown unicasts
Layer 2 broadcasts
Multicast are special layer 2 and layer 3 addresses that are sent to
devices that belong to that group.
Switch
A switch employs
microsegmentation to
reduce the collision domain
on a LAN.
3333
Abbreviate
d MAC
addresses
2222
4444
Broadcast domains
1 7 2 .3 0 .1 .2 1
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .2 .1 0
2 5 5 .2 5 5 .2 5 5 .0
S w itc h 1
1 7 2 .3 0 .1 .2 3
2 5 5 .2 5 5 .2 5 5 .0
S w i t c hRequest
e d N e tw o rk
A l l ARP
T w o S u b n e ts
S w itc h 2
1 7 2 .3 0 .2 .1 2
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .2 .1 6
2 5 5 .2 5 5 .2 5 5 .0
- T w o N e tw o rk s
S e v e r a l C o llis io n D o m a in s
O n e p e r s w it c h p o r t
O n e B r o a d c a s t D o m a in
1 7 2 .3 0 .1 .2 5
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .2 .1 4
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .1 .2 7
2 5 5 .2 5 5 .2 5 5 .0
Even though the LAN switch reduces the size of collision domains,
all hosts connected to the switch are still in the same broadcast
domain.
Therefore, a broadcast from one node will still be seen by all the
other nodes connected through the LAN switch.
Unknown unicasts
Layer 2 broadcasts
Communication between
switches and workstation
Hubs to
VLANs
Part 1
(PART 2 WILL BE DISCUSSED WHEN WE COVER
VLANS.)
Using Hubs
Layer 1 devices
Inexpensive
Single Hub
Hub 1
1 7 2 .3 0 .1 .2 1
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .1 .2 4
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .1 .2 2
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .1 .2 3
2 5 5 .2 5 5 .2 5 5 .0
S in g le H u b
O n e N e t w o r k ( IP N e tw o r k A d d r e s s - u s u a lly )
O n e C o llis io n D o m a in
O n e B r o a d c a s t D o m a in
This is fine for small workgroups, but does not scale well
for larger workgroups or heavy traffic.
Single Hub
Hub 1
1 7 2 .3 0 .1 .2 1
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .2 .2 2
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .1 .2 2
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .2 .2 1
2 5 5 .2 5 5 .2 5 5 .0
S in g le H u b - T w o s u b n e ts
T w o s u b n e ts
O n e C o llis io n D o m a in
O n e B r o a d c a s t D o m a in
Between subnets? No, need a router. The sending host will check the destination IP
address with its own IP address and subnet mask. The AND operation will determine
that it is on a different subnet and cannot be reached without sending the packet to a
default gateway (router). This is even though they are on the same physical network.
Multiple Hubs
Hub 1
1 7 2 .3 0 .1 .2 1
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .1 .2 2
2 5 5 .2 5 5 .2 5 5 .0
A ll H u b
O ne
O ne
O ne
1 7 2 .3 0 .1 .2 3
2 5 5 .2 5 5 .2 5 5 .0
s
N e tw o rk A d d re s s
C o llis io n D o m a in
B r o a d c a s t D o m a in
Hub 2
1 7 2 .3 0 .1 .2 4
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .1 .2 5
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .1 .2 7
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .1 .2 6
2 5 5 .2 5 5 .2 5 5 .0
Using Switches
Layer 2 devices
1 7 2 .3 0 .1 .2 1
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .1 .2 2
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .1 .2 3
2 5 5 .2 5 5 .2 5 5 .0
S w itc h a n d H u b N e tw o r k
O n e N e tw o rk
S e v e r a l C o llis io n D o m a in s
O n e p e r s w itc h p o r t
O n e f o r t h e e n t ir e H u b
O n e B r o a d c a s t D o m a in
S w itc h
1 7 2 .3 0 .1 .2 4
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .1 .2 5
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .1 .2 7
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .1 .2 6
2 5 5 .2 5 5 .2 5 5 .0
Hub
1 7 2 .3 0 .1 .2 1
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .1 .2 2
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .1 .2 3
2 5 5 .2 5 5 .2 5 5 .0
S w itc h a n d H u b N e tw o r k
O n e N e tw o rk
S e v e r a l C o llis io n D o m a in s
O n e p e r s w itc h p o r t
O n e f o r t h e e n t ir e H u b
O n e B r o a d c a s t D o m a in
S w itc h
1 7 2 .3 0 .1 .2 4
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .1 .2 5
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .1 .2 7
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .1 .2 6
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .1 .2 1
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .1 .2 2
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .1 .2 3
2 5 5 .2 5 5 .2 5 5 .0
S w itc h a n d H u b N e tw o r k
O n e N e tw o rk
S e v e r a l C o llis io n D o m a in s
O n e p e r s w itc h p o r t
O n e f o r t h e e n t ir e H u b
O n e B r o a d c a s t D o m a in
S w itc h
1 7 2 .3 0 .1 .2 4
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .1 .2 5
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .1 .2 7
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .1 .2 6
2 5 5 .2 5 5 .2 5 5 .0
Frames
buffered
1 7 2 .3 0 .1 .2 1
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .1 .2 2
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .1 .2 3
2 5 5 .2 5 5 .2 5 5 .0
S w itc h a n d H u b N e tw o r k
O n e N e tw o rk
S e v e r a l C o llis io n D o m a in s
O n e p e r s w itc h p o r t
O n e f o r t h e e n t ir e H u b
O n e B r o a d c a s t D o m a in
S w itc h
1 7 2 .3 0 .1 .2 4
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .1 .2 5
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .1 .2 7
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .1 .2 6
2 5 5 .2 5 5 .2 5 5 .0
The switch keeps the frames in buffer memory, and queues the
traffic for the host 172.30.1.25.
This means that the sending hosts do not know about the
collisions and do not have to re-send the frames.
Full-duplex ports
1 7 2 .3 0 .1 .2 1
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .1 .2 2
2 5 5 .2 5 5 .2 5 5 .0
S w itc h 1
1 7 2 .3 0 .1 .2 3
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .1 .2 4
2 5 5 .2 5 5 .2 5 5 .0
A ll S w itc h e d N e tw o r k
O n e N e tw o rk
S e v e r a l C o llis io n D o m a in s
O n e p e r s w itc h p o r t
O n e B r o a d c a s t D o m a in
S w itc h 2
1 7 2 .3 0 .1 .2 5
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .1 .2 6
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .1 .2 8
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .1 .2 7
2 5 5 .2 5 5 .2 5 5 .0
Ports between switches and server ports are good candidates for
higher bandwidth ports (100 Mbps) and full-duplex ports.
Most switch ports today are full-duplex.
Introducing Multiple
Switches are Layer 2 devices
Subnets/Networks
without
Router are Layer 3 devices
Routers
Data between subnets/networks must pass through a router.
172.30.1.21
255.255.255.0
172.30.2.10
255.255.255.0
Switch 1
172.30.1.23
255.255.255.0
Switch 2
172.30.2.12
255.255.255.0
172.30.1.25
255.255.255.0
172.30.2.14
255.255.255.0
172.30.2.16
255.255.255.0
172.30.1.27
255.255.255.0
1 7 2 .3 0 .1 .2 1
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .2 .1 0
2 5 5 .2 5 5 .2 5 5 .0
S w itc h 1
1 7 2 .3 0 .1 .2 3
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .2 .1 2
2 5 5 .2 5 5 .2 5 5 .0
A ll S w itc h e d N e tw o r k - T w o N e tw o r k s
T w o S u b n e ts
S e v e r a l C o llis io n D o m a in s
O n e p e r s w it c h p o r t
O n e B r o a d c a s t D o m a in
S w itc h 2
1 7 2 .3 0 .1 .2 5
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .2 .1 4
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .2 .1 6
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .1 .2 7
2 5 5 .2 5 5 .2 5 5 .0
All devices see the ARP Request, even those on the other subnets that do not need to
see it.
One broadcast domain means the switches flood all broadcast out all ports, except the
incoming port.
Switches have no idea of the layer 3 information contained in the ARP Request.This
consumes bandwidth on the network and processing cycles on the hosts.
1 7 2 .3 0 .1 .2 1
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .1 .2 3
2 5 5 .2 5 5 .2 5 5 .0
S w itc h 1
1 7 2 .3 0 .1 .2 5
2 5 5 .2 5 5 .2 5 5 .0
T w o S w itc h e d N e tw o r k s
T w o S u b n e ts
S e v e r a l C o llis io n D o m a in s
O n e p e r s w itc h p o r t
T w o B r o a d c a s t D o m a in
S w itc h 2
1 7 2 .3 0 .1 .2 6
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .2 .1 0
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .2 .1 2
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .2 .1 6
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .2 .1 4
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .1 .2 1
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .1 .2 3
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .1 .1
2 5 5 .2 5 5 .2 5 5 .0
S w itc h 1
R o u te r
1 7 2 .3 0 .1 .2 5
2 5 5 .2 5 5 .2 5 5 .0
S w itc h 2
1 7 2 .3 0 .1 .2 6
2 5 5 .2 5 5 .2 5 5 .0
R o u te d N e tw o rk s
T w o S u b n e ts
S e v e r a l C o llis io n D o m a in s
O n e p e r s w it c h p o r t
C o m m u n ic a tio n b e tw e e n s u b n e ts
1 7 2 .3 0 .2 .1
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .2 .1 0
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .2 .1 2
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .2 .1 6
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .2 .1 4
2 5 5 .2 5 5 .2 5 5 .0
R o u te r
1 7 2 .3 0 .1 .1
1 7 2 .3 0 .2 .1 s e c
2 5 5 .2 5 5 .2 5 5 .0
ARP Request
Secondary addresses
can be used when the
router does not support
sub-interfaces which will
be discussed later.
1 7 2 .3 0 .1 .2 1
2 5 5 .2 5 5 .2 5 5 .0
S w itc h 1
1 7 2 .3 0 .2 .1 0
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .1 .2 3
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .2 .1 2
2 5 5 .2 5 5 .2 5 5 .0
R o u te d N e tw o rk s
T w o S u b n e ts
C o m m u n ic a tio n b e t w e e n s u b n e ts
When a single interface is used to route between subnets or networks,
this is know as a router-on-a-stick.
To assign multiple ip addresses to the same interface, secondary
addresses or subinterfaces are used.
1 7 2 .3 0 .1 .2 1
2 5 5 .2 5 5 .2 5 5 .0
R o u te r
1 7 2 .3 0 .1 .1
1 7 2 .3 0 .2 .1 s e c
2 5 5 .2 5 5 .2 5 5 .0
S w itc h 1
1 7 2 .3 0 .2 .1 0
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .2 .1 2
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .1 .2 3
2 5 5 .2 5 5 .2 5 5 .0
R o u te d N e tw o rk s
Advantages T w o S u b n e t s
there
C o m mare
u n limited
i c a t i o n Ethernet
b e t w e e n interfaces
s u b n e t s on the router.
Useful when
Disadvantage
Because a single link is used to connect multiple subnets, one link is
having to carry the traffic for multiple subnets.
Be sure this is link can handle the traffic.
R o u te r
1 7 2 .3 0 .1 .1
1 7 2 .3 0 .2 .1 s e c
2 5 5 .2 5 5 .2 5 5 .0
ARP Request
1 7 2 .3 0 .1 .2 1
2 5 5 .2 5 5 .2 5 5 .0
S w itc h 1
1 7 2 .3 0 .2 .1 0
2 5 5 .2 5 5 .2 5 5 .0
R o u te d N e tw o rk s
T w o S u b n e ts
C o m m u n ic a tio n b e t w e e n s u b n e ts
1 7 2 .3 0 .2 .1 2
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .1 .2 3
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .1 .2 1
2 5 5 .2 5 5 .2 5 5 .0
R o u te r
1 7 2 .3 0 .1 .1
1 7 2 .3 0 .2 .1 s e c
2 5 5 .2 5 5 .2 5 5 .0
S w itc h 1
1 7 2 .3 0 .2 .1 0
2 5 5 .2 5 5 .2 5 5 .0
R o u te d N e tw o rk s
T w o S u b n e ts
C o m m u n ic a tio n b e t w e e n s u b n e ts
1 7 2 .3 0 .2 .1 2
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .1 .2 3
2 5 5 .2 5 5 .2 5 5 .0
Remember to have the proper default gateway set for each host.
1 7 2 .3 0 .1 .2 1
2 5 5 .2 5 5 .2 5 5 .0
E1 1 7 2 . 3 0 . 2 . 1
R o u te r
S w itc h 1
1 7 2 .3 0 .2 .1 0
2 5 5 .2 5 5 .2 5 5 .0
R o u te d N e tw o rk s
T w o S u b n e ts
C o m m u n ic a tio n b e tw e e n s u b n e ts
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .2 .1 2
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .1 .2 3
2 5 5 .2 5 5 .2 5 5 .0
R o u te r
1 7 2 .3 0 .2 .1
2 5 5 .2 5 5 .2 5 5 .0
ARP Request
1 7 2 .3 0 .1 .2 1
2 5 5 .2 5 5 .2 5 5 .0
S w itc h 1
1 7 2 .3 0 .2 .1 0
2 5 5 .2 5 5 .2 5 5 .0
R o u te d N e tw o rk s
T w o S u b n e ts
C o m m u n ic a tio n b e tw e e n s u b n e ts
1 7 2 .3 0 .2 .1 2
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .1 .2 3
2 5 5 .2 5 5 .2 5 5 .0
Introducing VLANs
VLAN = Subnet
ARP Request
1 7 2 .3 0 .1 .2 1
2 5 5 .2 5 5 .2 5 5 .0
VLAN 1
S w itc h 1
1 7 2 .3 0 .2 .1 0
2 5 5 .2 5 5 .2 5 5 .0
VLAN 2
1 7 2 .3 0 .1 .2 3
2 5 5 .2 5 5 .2 5 5 .0
VLAN 1
1 7 2 .3 0 .2 .1 2
2 5 5 .2 5 5 .2 5 5 .0
VLAN 2
123456.
121221.
Port
VLAN
Tw o VLANs
T w o S u b n e ts
123456.
121221.
Port
VLAN
1 7 2 .3 0 .1 .2 1
2 5 5 .2 5 5 .2 5 5 .0
S w itc h 1
1 7 2 .3 0 .2 .1 0
2 5 5 .2 5 5 .2 5 5 .0
No VLANs
S a m e a s a s in g le V L A N
T w o S u b n e ts
1 7 2 .3 0 .2 .1 2
2 5 5 .2 5 5 .2 5 5 .0
1 7 2 .3 0 .1 .2 3
2 5 5 .2 5 5 .2 5 5 .0
ARP Request
1 7 2 .3 0 .1 .2 1
2 5 5 .2 5 5 .2 5 5 .0
VLAN 1
S w itc h 1
1 7 2 .3 0 .2 .1 0
2 5 5 .2 5 5 .2 5 5 .0
VLAN 2
1 7 2 .3 0 .1 .2 3
2 5 5 .2 5 5 .2 5 5 .0
VLAN 1
Tw o VLANs
T w o S u b n e ts
1 7 2 .3 0 .2 .1 2
2 5 5 .2 5 5 .2 5 5 .0
VLAN 2
123456.
121221.
Port
VLAN
Inter-VLAN Traffic
Switch Port: VLAN ID
1 7 2 .3 0 .1 .2 1
2 5 5 .2 5 5 .2 5 5 .0
VLAN 1
S w itc h 1
1 7 2 .3 0 .2 .1 0
2 5 5 .2 5 5 .2 5 5 .0
VLAN 2
1 7 2 .3 0 .1 .2 3
2 5 5 .2 5 5 .2 5 5 .0
VLAN 1
1 7 2 .3 0 .2 .1 2
2 5 5 .2 5 5 .2 5 5 .0
VLAN 2
123456.
121221.
Port
VLAN
T w VLAN
o V L A IDs
N s (numbers) are assigned to the switch port
1. Remember that
and not to the host.
T w o(Port-centric
S u b n e t s VLAN switches)
2. Be sure to have all of the hosts on the same subnet belong to the same
VLAN, or you will have problems.
Hosts on subnet 172.30.1.0/24 - VLAN 1
Hosts on subnet 172.30.2.0/24 - VLAN 2
etc.
Inter-VLAN Traffic
Switch Port: VLAN ID
To 172.30.2.12
1 7 2 .3 0 .1 .2 1
2 5 5 .2 5 5 .2 5 5 .0
VLAN 1
S w itc h 1
1 7 2 .3 0 .2 .1 0
2 5 5 .2 5 5 .2 5 5 .0
VLAN 2
1 7 2 .3 0 .1 .2 3
2 5 5 .2 5 5 .2 5 5 .0
VLAN 1
1 7 2 .3 0 .2 .1 2
2 5 5 .2 5 5 .2 5 5 .0
VLAN 2
123456.
121221.
Port
VLAN
Tw o VLANs
T w o S u b n e ts
R o u te r
123456.
121221.
1 7 2 .3 0 .2 .1
2 5 5 .2 5 5 .2 5 5 .0
(V L A N 2 )
Port
VLAN
Ch. 4
Switching
Concepts
CCNA 3 VERSION 3.0