โจทย์๋
Vlan 100 มี 2 เครื่อง A B
Vlan 200 มี 3 เครื่อง C D E
vlan 300 มี 1 เครื่อง F
ก็ ว่าง ของ ตาม แบบ แผ่น มี roundter กับ swith และ PC
โดยกำหนด เครื่อง port ไว้ A f0/1 ตามลำดับ ถึง F f0/6
และ round เป็น f0/12
*rount
#en
#conf t
#e 1/0
#no sh
#ex
*switch
#en
#vlan database
#vlan 100 name Group-A_B
#vlan 200 name Group-C_D_E
#vlan 300 name Group-F
#ex
#
#
#conf t
#int f0/1
#switchport mode access
#switchport access vlan 100
#ex
#int f0/2
#switchport mode access
#switchport access vlan 100
#ex
#int f0/3
#switchport mode access
#switchport access vlan 200
#ex
#int f0/4
#switchport mode access
#switchport access vlan 200
#ex
#int f0/5
#switchport mode access
#switchport access vlan 200
#ex
#int f0/6
#switchport mode access
#switchport access vlan 300
#ex
#
#
#conf t
#int vlan 1
#ip add 192.168.0.1 255.255.255.0
#no sh
#ip default-gateway 192.168.0.1
#ex
#
#
#conf t
#int f0/12
#switchport mode trunk
#switchport trunk allowde vlan 100-300
#ex
#
#
*Rount
#en
#conf t
#int e1/0
#int e1/0.100
#encapsulation dot1q 100
#ip add 192.168.100.1 255.255.255.0
#no sh
#ex
#
#int e1/0
#int e1/0.200
#encapsulation dot1q 200
#ip add 192.168.200.1 255.255.255.0
#no sh
#ex
#
#int e1/0
#int e1/0.300
#encapsulation dot1q 300
#ip add 192.168.300.1 255.255.255.0
#no sh
#ex
#
และก็ ใช่ ip ให้แค่ละ เครื่อง
vlan 100
A 192.168.100.2/24
B 192.168.100.3/24
vlan 200
C 192.168.200.2/24
D 192.168.200.3/24
E 192.168.200.4/24
vlan 300
F 192.168.300.2/24
Vlan 100 มี 2 เครื่อง A B
Vlan 200 มี 3 เครื่อง C D E
vlan 300 มี 1 เครื่อง F
ก็ ว่าง ของ ตาม แบบ แผ่น มี roundter กับ swith และ PC
โดยกำหนด เครื่อง port ไว้ A f0/1 ตามลำดับ ถึง F f0/6
และ round เป็น f0/12
*rount
#en
#conf t
#e 1/0
#no sh
#ex
*switch
#en
#vlan database
#vlan 100 name Group-A_B
#vlan 200 name Group-C_D_E
#vlan 300 name Group-F
#ex
#
#
#conf t
#int f0/1
#switchport mode access
#switchport access vlan 100
#ex
#int f0/2
#switchport mode access
#switchport access vlan 100
#ex
#int f0/3
#switchport mode access
#switchport access vlan 200
#ex
#int f0/4
#switchport mode access
#switchport access vlan 200
#ex
#int f0/5
#switchport mode access
#switchport access vlan 200
#ex
#int f0/6
#switchport mode access
#switchport access vlan 300
#ex
#
#
#conf t
#int vlan 1
#ip add 192.168.0.1 255.255.255.0
#no sh
#ip default-gateway 192.168.0.1
#ex
#
#
#conf t
#int f0/12
#switchport mode trunk
#switchport trunk allowde vlan 100-300
#ex
#
#
*Rount
#en
#conf t
#int e1/0
#int e1/0.100
#encapsulation dot1q 100
#ip add 192.168.100.1 255.255.255.0
#no sh
#ex
#
#int e1/0
#int e1/0.200
#encapsulation dot1q 200
#ip add 192.168.200.1 255.255.255.0
#no sh
#ex
#
#int e1/0
#int e1/0.300
#encapsulation dot1q 300
#ip add 192.168.300.1 255.255.255.0
#no sh
#ex
#
และก็ ใช่ ip ให้แค่ละ เครื่อง
vlan 100
A 192.168.100.2/24
B 192.168.100.3/24
vlan 200
C 192.168.200.2/24
D 192.168.200.3/24
E 192.168.200.4/24
vlan 300
F 192.168.300.2/24


Comment