VLAN

Vlan nasıl yapılır.

Router>en
Router#conf t.
Router(config)#int fa0/0
Router(config-if)#no sh
Router(config-if)#ex
Router(config)#int fa0/0.10
Router(config-subif)#en
Router(config-subif)#encapsulation dot1q 10
Router(config-subif)#ip address 10.0.10.1 255.255.255.0
Router(config-subif)#no sh
Router(config-subif)#ex
Router(config)#int fa0/0.20
Router(config-subif)#encapsulation dot1q 20
Router(config-subif)#ip address 10.0.20.1 255.255.255.0
Router(config-subif)#no sh
Router(config-subif)#ex
Router(config)#int fa0/0.30
Router(config-subif)#encapsulation dot1q 30
Router(config-subif)#ip address 10.0.30.1 255.255.255.0
Router(config-subif)#no sh
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Switch#vlan database
Switch(vlan)#vlan 10 name vlan10
VLAN 10 added:
Name: vlan10
Switch(vlan)#vlan 20 name vlan20
VLAN 20 added:
Name: vlan20
Switch(vlan)#vlan 30 name vlan30
VLAN 30 added:
Name: vlan30
Switch(vlan)#ex
Switch#conf t
Switch(config)#int fa0/1
Switch(config-if)#sw
Switch(config-if)#switchport ac
Switch(config-if)#switchport access vlan 10
Switch(config-if)#int fa0/2
Switch(config-if)#switchport access vlan 20
Switch(config-if)#int fa0/3
Switch(config-if)#switchport access vlan 30
Switch(config-if)#ex
Switch(config)#int fa0/24
Switch(config-if)#sw
Switch(config-if)#switchport mo
Switch(config-if)#switchport mode trunkconsole

Bir Yanıt

Yorumlar kapatıldı.