Professional Documents
Culture Documents
Hubs To Vlans
Hubs To Vlans
Hubs to VLANs
Using Hubs
Hubs to VLANs
• Layer 1 devices
• Inexpensive
• In one port, out the others
• One collision domain
• One broadcast domain
Hub 1
Hubs to VLANs
172.30.1.21 172.30.1.24
255.255.255.0 255.255.255.0
172.30.1.22 172.30.1.23
255.255.255.0 255.255.255.0
Single Hub
One Network (IP Network Address - usually)
One Collision Domain
One Broadcast Domain
Hub 1
Hubs to VLANs
172.30.1.21 172.30.1.24
255.255.255.0 255.255.255.0
172.30.1.22 172.30.1.23
255.255.255.0 255.255.255.0
Single Hub - Two subnets
Two subnets
One Collision Domain
One Broadcast Domain
• What if the computers were on two different subnets?
Could they communicate within their own subnet? Yes
Between subnets? No, need a router.
© Cisco Systems, Inc. 2000
Cisco Networking Academy Program
Hub 1
Hubs to VLANs
172.30.1.21 Hub 2
255.255.255.0
172.30.1.27
172.30.1.23
255.255.255.0
172.30.1.22 255.255.255.0
255.255.255.0
Using Switches
Hubs to VLANs
• Layer 2 devices
• Moderate expense for common access
switches, but can be very expensive.
• Layer 2 filtering based on Destination MAC
addresses and Source Address Table
• One collision domain per port
• One broadcast domain
Hub
172.30.1.21
255.255.255.0
172.30.1.27
172.30.1.23 Switch 255.255.255.0
172.30.1.22 255.255.255.0
255.255.255.0
Collision!
Hub
Switch
172.30.1.21
255.255.255.0
172.30.1.27
172.30.1.23
255.255.255.0
172.30.1.22 255.255.255.0
255.255.255.0
Hub
Switch
172.30.1.21
255.255.255.0
172.30.1.27
172.30.1.23
255.255.255.0
172.30.1.22 255.255.255.0
255.255.255.0
Hub
Frames
in buffer
172.30.1.21
255.255.255.0
172.30.1.27
172.30.1.23 Switch 255.255.255.0
172.30.1.22 255.255.255.0
255.255.255.0
Review
• Asymmetric ports: 10 Mbps and 100 Mbps
• Full-duplex ports
• Cut-through versus Store-and-Forward switching
Switch 1
172.30.1.21
255.255.255.0
Switch 2
172.30.1.28
172.30.1.22 172.30.1.23 172.30.1.24 255.255.255.0
255.255.255.0 255.255.255.0 255.255.255.0
Introducing Multiple
Hubs to VLANs
ARP Request
Switch 1
172.30.1.21
255.255.255.0
Switch 2
172.30.2.16
172.30.2.10 172.30.1.23 172.30.2.12 255.255.255.0
255.255.255.0 255.255.255.0 255.255.255.0
Switch 1
172.30.1.21
255.255.255.0
Switch 2
172.30.2.16
172.30.2.10 172.30.1.23 172.30.2.12 255.255.255.0
255.255.255.0 255.255.255.0 255.255.255.0
One Solution:
Physically separate the subnets. But still no data can travel
between the subnets. How can we get the data to travel
between the two subnets?
Hubs to VLANs
Switch 1
172.30.1.21
255.255.255.0
Switch 2
172.30.2.16
172.30.1.23 172.30.1.25 172.30.1.26 255.255.255.0
255.255.255.0 255.255.255.0 255.255.255.0
with Routers
Routed Network:
Two separate broadcast domains, because the router will
not forward the layer 2 broadcasts such as ARP Requests.
Hubs to VLANs
Switch 1
172.30.1.1
255.255.255.0
172.30.1.21 172.30.2.1
255.255.255.0 255.255.255.0
Router
Switch 2
172.30.2.16
172.30.1.23 172.30.1.25 172.30.1.26 255.255.255.0
255.255.255.0 255.255.255.0 255.255.255.0
Routed Networks
Two Subnets
172.30.2.10
Several Collision Domains 255.255.255.0
One per switch port 172.30.2.12
172.30.2.14
255.255.255.0
Communication between subnets 255.255.255.0
© Cisco Systems, Inc. 2000
Cisco Networking Academy Program
Router-on-a-stick:
When a single interface is used to route between subnets or
networks, this is known as a router-on-a-stick. To assign
multiple ip addresses to the same interface, secondary
Hubs to VLANs
Switch 1
172.30.1.21
172.30.2.12
255.255.255.0
255.255.255.0
172.30.2.10 172.30.1.23
Routed Networks 255.255.255.0 255.255.255.0
Two Subnets
© Cisco Systems, Inc. 2000 Communication between subnets
Cisco Networking Academy Program
Router-on-a-stick
Advantages
Hubs to VLANs
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. You
may wish to use a high-speed link (100 Mbps)
and full-duplex.
Gotcha’s
1. Remember to have the proper default gateway
set for each host.
Hubs to VLANs
Multiple interfaces:
Two Ethernet router ports may be used instead of one.
However this may be difficult if you do not have enough
Ethernet ports on your router.
Hubs to VLANs
E0 E1
172.30.1.1 Router 172.30.2.1
255.255.255.0 255.255.255.0
172.30.1.21
Switch 1
172.30.2.12
255.255.255.0
255.255.255.0
domain.
Router 172.30.1.1
172.30.2.1 sec
255.255.255.0
ARP Request
Switch 1
172.30.1.21
172.30.2.12
255.255.255.0
255.255.255.0
172.30.2.10 172.30.1.23
Routed Networks 255.255.255.0 255.255.255.0
Two Subnets
© Cisco Systems, Inc. 2000
Communication between subnets
Cisco Networking Academy Program
Router 172.30.1.1
172.30.2.1 sec
255.255.255.0
Switch 1
172.30.1.21
172.30.2.12
255.255.255.0
172.30.2.10 172.30.1.23
Routed Networks 255.255.255.0 255.255.255.0
Two Subnets
Communication between subnets
© Cisco Systems, Inc. 2000
Cisco Networking Academy Program
Introducing VLANs
Hubs to VLANs
172.30.1.21
172.30.2.12
255.255.255.0
255.255.255.0
VLAN 1
VLAN 2
172.30.2.10 172.30.1.23
255.255.255.0 255.255.255.0
VLAN 2 VLAN 1
Two VLANs
Two Subnets
© Cisco Systems, Inc. 2000
Cisco Networking Academy Program
only done at the switch and not at the host. Note: The
following diagrams show the VLAN below the host, but it is
actually assigned within the switch.
1 2 3 4 5 6 . Port
1 2 1 2 2 1 . VLAN
2 2 Static
3 1 Static
4 2 Static
5 2 Static
6 1 Static
7 1 Static
8 1 Static
9 1 Static
10 1 Static
11 1 Static
12 2 Static
AUI 1 Static
A 1 Static
B 1 Static
Switch 1
172.30.1.21
172.30.2.12
255.255.255.0
255.255.255.0
172.30.2.10 172.30.1.23
255.255.255.0 255.255.255.0
No VLANs
Same as a single VLAN
Two Subnets
© Cisco Systems, Inc. 2000
Cisco Networking Academy Program
With VLANs:
Data will only travel within the VLAN. Remember that
switches are Layer 2 devices and they can only pass traffic
within the VLAN.
Hubs to VLANs
Switch 1
172.30.1.21
172.30.2.12
255.255.255.0
255.255.255.0
VLAN 1
VLAN 2
172.30.2.10 172.30.1.23
255.255.255.0 255.255.255.0
VLAN 2 VLAN 1
Two VLANs
Two Subnets
© Cisco Systems, Inc. 2000
Cisco Networking Academy Program
1 2 3 4 5 6 . Port
1 2 1 2 2 1 . VLAN
With VLANs:
A switch cannot route data between different VLANs.
Example: Data from 172.30.1.21 to 172.30.2.12
Hubs to VLANs
Switch 1
Switch Port: VLAN ID
X
172.30.1.21
172.30.2.12
255.255.255.0
255.255.255.0
VLAN 1
VLAN 2
172.30.2.10 172.30.1.23
255.255.255.0 255.255.255.0
VLAN 2 VLAN 1
Two VLANs
Two Subnets
© Cisco Systems, Inc. 2000
Cisco Networking Academy Program
Gotcha’s
1. Remember that VLAN IDs (numbers) are assigned to
the switch port and not to the host. (Port-centric VLAN
Hubs to VLANs
switches)
2. Be sure to have all of the hosts on the same subnet
belong to the same VLAN, or you will have problems.
255.255.255.0 255.255.255.0
VLAN 1 Router VLAN 2
172.30.2.10 172.30.1.23
VLANs 255.255.255.0 255.255.255.0
VLAN 2 VLAN 1
Two Subnets
Communication between VLANs
NOTE: VLANs assigned only to the
© Cisco Systems, Inc. 2000
ports
Cisco Networking Academy Program
Gotcha’s
1. Remember to have the proper default gateway set for
each host.
Hubs to VLANs
172.30.1.1 172.30.2.1
255.255.255.0 255.255.255.0
(VLAN 1) Router (VLAN 2)
Router
Hubs to VLANs
172.30.1.1 172.30.2.1
255.255.255.0 255.255.255.0
ARP Request
172.30.1.21
Switch 1
172.30.2.12
255.255.255.0
255.255.255.0
172.30.2.10 172.30.1.23
255.255.255.0 255.255.255.0
Routed Networks
Two Subnets
© Cisco Systems, Inc. 2000
Communication between subnets
Cisco Networking Academy Program
172.30.1.1 172.30.2.1
255.255.255.0 255.255.255.0
VLAN 1 VLAN 2
ARP Request
172.30.1.21
Switch 1
172.30.2.12
255.255.255.0
255.255.255.0
VLAN 1
VLAN 2
172.30.2.10 172.30.1.23
VLANs 255.255.255.0 255.255.255.0
VLAN 2 VLAN 1
Two Subnets
Communication between VLANs
NOTE: VLANs assigned only to the
© Cisco Systems, Inc. 2000 ports
Cisco Networking Academy Program
What is Router-on-a-stick?
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
Hubs to VLANs
172.30.1.21
Switch 1
172.30.2.12
255.255.255.0
255.255.255.0
172.30.2.10 172.30.1.23
Routed Networks 255.255.255.0 255.255.255.0
Two Subnets
© Cisco Systems, Inc. 2000 Communication between subnets
Cisco Networking Academy Program
172.30.1.1
Hubs to VLANs
172.30.2.1 secondary
Router 255.255.255.0
Trunking ISLor 802.1Q
172.30.1.21
Switch 1
172.30.2.12
255.255.255.0
255.255.255.0
VLAN 1
VLAN 2
172.30.2.10 172.30.1.23
255.255.255.0 255.255.255.0
VLANs VLAN 2 VLAN 1
Two Subnets
Communication between VLANs using trunking
NOTE: VLANs assigned only to the ports
© Cisco Systems, Inc. 2000
Cisco Networking Academy Program
Non-tagging Switches
Hubs to VLANs
Non-tagging Switches
For each VLAN, there must be a link between the two
switches. One link per VLAN. Be sure the switch ports on
Hubs to VLANs
Moe
1 2
VLAN 1: Port 1 on switch Moe is connected to
Port 1 on Switch Larry.
VLAN 2: Port 2 on switch Moe is connected to
Port 2 on Switch Larry.
1 2
Larry
Port 1 = VLAN 1 & Port 2 = VLAN 2
© Cisco Systems, Inc. 2000
Cisco Networking Academy Program
Advantages
• Each VLAN gets its own dedicated link with its
own bandwidth.
Hubs to VLANs
Disadvantages
• This requires a separate link for each VLAN.
There may not be enough ports on the switch to
accommodate a lot of different VLANs.