1-what is Vlan ?
A
virtual local area network (VLAN) is a group of hosts with a common set of
requirements that communicate as if they were attached to the same broadcast
domain regardless of their physical location.
A
traditional LAN would require all users of the same requirements and same IP
subnet (broadcast domain) be connected to the same equipment.
By utilizing VLANs, the same users can be
spread out over various geographical locations and still remain in their same
IP subnet (broadcast domain).
2-Objective:
Configuration of switch and hub’s devices to
obtain a virtual local
area network (VLAN)
1- Switch :
|
en-vlan database- vlan 10
name rx1- vlan 20 name rx2- vlan 30 name rx3- vlan 40 name rx4- vlan 50 name
rx5-exit-conf t-int f0/2-switchport mode access-switchport access vlan 10-no
sh-exit-int f0/3-switchport mode access-switchport access vlan 20-exit- int
f0/4-switchport mode access-switchport access vlan 30-exit –int
f0/5-switchport mode access-switchport access vlan 40-exit - int
f0/6-switchport mode access-switchport access vlan 50-exit -int
f0/0-switchport mode trunk-exit-exit-wr
|
2- Router :
|
en-conf t –int f0/0-ip address 192.168.1.1
255.255.255.0-no sh-exit-int f0/0.2-encapsulation dot1q 10-ip address
192.168.2.1 255.255.255.0-no sh-exit-int f0/0.3-encapsulation dot1q 20- ip
address 192.168.3.1 255.255.255.0-no sh-exit-int f0/0.4-encapsulation dot1q
30-ip address 192.168.4.1 255.255.255.0-no sh-ex-int f0/0.5-encapsulation
dot1q 40-ip address 192.168.5.1 255.255.255.0-no sh-exit-int
f0/0.6-encapsulation dot1q 50-ip address 192.168.6.1 255.255.255.0-no
sh-exit-int e0/0/0-ip address 192.168.7.1 255.255.255.0-no sh- exit- int e0/1/0-ip
address 192.168.8.1 255.255.255.0-no sh- exit -exit-wr
|
3-Router rip :
|
en-conf t-router rip-network 192.168.1.0-network
192.168.2.0-network 192.168.3.0-network 192.168.4.0-network
192.168.5.0-network 192.168.6.0-network 192.168.7.0- network 192.168.8.0-exit-exit-wr
|
4-Ip helper:
|
en-conf t-int f0/0-ip helper 192.168.7.2 –no sh-exit-int f0/0.2-ip helper 192.168.7.2 -no sh-ex-
int f0/0.3-ip helper 192.168.7.2 -no
sh-ex - int f0/0.4-ip helper
192.168.7.2 -no sh-ex -int f0/0.5-ip helper 192.168.7.2 –no sh-ex-int
f0/0.6-ip helper 192.168.7.2 –no sh-ex- int e0/1/0-ip helper 192.168.7.2 –no
sh –ex-ex-wr
|