Faoliyat 2. Switch va vlanni sozlash
Kalit asosiy konfiguratsiya
Switch1 IP-da VLAN 1 sozlamalari 172.16.1.2 / 24.
1/2 ip-manzili bilan Switch172.16.1.3-da VLAN 24-ni sozlash.
172.16.1.1 manzili bilan standart shluzi kalitlarini sozlash.
Switch1(config)#interface Vlan1
Switch1(config-if)#ip address 172.16.1.2 255.255.255.0
Switch1(config-if)#no shutdown
Switch1(config-if)#exit
Switch1(config)#ip default-gateway 172.16.1.1
|
Switch2(config)#interface Vlan1
Switch2(config-if)#ip address 172.16.1.3 255.255.255.0
Switch2(config-if)#no shutdown
Switch2(config-if)#exit
Switch2(config)#ip default-gateway 172.16.1.1
|
Kalitlarga sozlash
Создать VLANHar ikkala kalitda "fakultet" nomi bilan vlan 10 yaratish
Создать VLANIkkala kalitda "talaba" nomi bilan VLAN 20 yaratish
Switch1(config)#vlan 10
Switch1(config-vlan)#name faculty
Switch1(config-vlan)#exit
Switch1(config-vlan)#vlan 20
Switch1(config-vlan)#name student
Switch1(config-vlan)#exit
Switch1(config)#
|
Switch2(config)#vlan 10
Switch2(config-vlan)#name faculty
Switch2(config-vlan)#exit
Switch2(config-vlan)#vlan 20
Switch2(config-vlan)#name student
Switch2(config-vlan)#exit
Switch2(config)#
|
Quyidagi qiymatlardan foydalanib, VLAN-ni Switch1-ga sozlang
Switch1-da, VLAN 0-ga tegishli bo'lgan Fa5/0 va Fa6/10 interfeyslarini sozlangVLAN.
Switch1-da, 0/7 va Fa0/8 interfeyslarini VLAN 20-ga ulash uchun sozlang.
Switch 1-dagi barcha boshqa interfeyslar VLAN 1-da.
Switch1(config)#interface FastEthernet0/5
Switch1(config-if)#switchport access vlan 10
Switch1(config-if)#interface FastEthernet0/6
Switch1(config-if)#switchport access vlan 10
Switch1(config-if)#interface FastEthernet0/7
Switch1(config-if)#switchport access vlan 20
Switch1(config-if)#interface FastEthernet0/8
Switch1(config-if)#switchport access vlan 20
Quyidagi qiymatlardan foydalanib, VLAN на -ni Switch2-ga sozlang
Switch2-da VLAN 0-ga tegishli bo'lgan Fa5/0 va Fa6/10 interfeyslarini sozlashVLAN.
Switch2-da, VLAN-ga tegishli bo'lgan Fa0/7 va Fa0/8 interfeyslarini sozlashVLAN.
Switch 2-dagi barcha boshqa interfeyslar VLAN 1-da
Switch2(config)#interface FastEthernet0/5
Switch2(config-if)#switchport access vlan 10
Switch2(config-if)#interface FastEthernet0/6
Switch2(config-if)#switchport access vlan 10
Switch2(config-if)#interface FastEthernet0/7
Switch2(config-if)#switchport access vlan 20
Switch2(config-if)#interface FastEthernet0/8
Switch2(config-if)#switchport access vlan 20
Настройка VLAN tranking o'rnatish
Используя следующие значения, чтобы настроить VLANSwitch1 va Switch2-da VLAN-ni o'rnatish uchun quyidagi qiymatlardan foydalaning:
Switch0-da Fa0/2 porti va Fa0/1 Switch2 porti o'rtasida 802.1 q to'plami shakllanishi bilan trankingni sozlang.
Switch0-da Fa1/1 porti va Vargas routerda Fa0/0 interfeysi o'rtasida trankingni sozlang.Vargas с формирование пакета 802.1Q.
Switch1(config)#interface FastEthernet0/1
Switch1(config-if)#switchport mode trunk
Switch1(config)#interface FastEthernet0/2
Switch1(config-if)#switchport mode trunk
Switch2(config)#interface FastEthernet0/1
Switch2(config-if)#switchport mode trunk
Do'stlaringiz bilan baham: |