Generic VLAN Registration Protocol (GVRP)Huawei

  1. Cihazlara isim verme .
    system-view
    Enter system view, return user view with Ctrl+Z.
    [Quidway]sysname Switch1
    system-view
    Enter system view, return user view with Ctrl+Z.
    [Quidway]sysname Switch2
    system-view
    Enter system view, return user view with Ctrl+Z.
    [Quidway]sysname Switch3
    system-view
    Enter system view, return user view with Ctrl+Z.
    [Quidway]sysname Switch4

2.Trunk olan hatların konfigurasyonu.
[Switch1]interface GigabitEthernet 0/0/13
[Switch1-GigabitEthernet0/0/13]port link-type trunk
[Switch1-GigabitEthernet0/0/13]port trunk allow-pass vlan all
[Switch3]interface Ethernet 0/0/13
[Switch3-Ethernet0/0/13]port link-type trunk
[Switch3-Ethernet0/0/13]port trunk allow-pass vlan all
[Switch3-Ethernet0/0/13]quit
[Switch3]interface Ethernet 0/0/1
[Switch3-Ethernet0/0/1]port link-type trunk
[Switch3-Ethernet0/0/1]port trunk allow-pass vlan all
[Switch2]interface GigabitEthernet 0/0/22
[Switch2-GigabitEthernet0/0/22]port link-type trunk
[Switch2-GigabitEthernet0/0/22]port trunk allow-pass vlan all
[Switch4]interface Ethernet0/0/22
[Switch4-Ethernet0/0/22]port link-type trunk
[Switch4-Ethernet0/0/22]port trunk allow-pass vlan all
[Switch4-Ethernet0/0/22]quit
[Switch4]interface Ethernet0/0/1
[Switch4-Ethernet0/0/1]port link-type trunk
[Switch4-Ethernet0/0/1]port trunk allow-pass vlan all

3.GVRP’yi cihaz üzerinde ve kullanılan interfacelerde aktif edelim.
[Switch1]gvrp
[Switch1]interface GigabitEthernet 0/0/13
[Switch1-GigabitEthernet0/0/13]gvrp
[Switch3]gvrp
[Switch3]interface Ethernet 0/0/13
[Switch3-Ethernet0/0/13]gvrp
[Switch3-Ethernet0/0/13]quit
[Switch3]interface Ethernet 0/0/1
[Switch3-Ethernet0/0/1]gvrp
[Switch2]gvrp
[Switch2]interface GigabitEthernet 0/0/22
[Switch2-GigabitEthernet0/0/22]gvrp
[Switch4]gvrp
[Switch4]interface Ethernet0/0/22
[Switch4-Ethernet0/0/22]gvrp
[Switch4-Ethernet0/0/22]quit
[Switch4]interface Ethernet0/0/1
[Switch4-Ethernet0/0/1]gvrp

Switch1 üzerinde Vlan 100, Switch2 üzerinde Vlan 200 ve Switch1, Switch2, Switch3 ve Switch4 üzerinde Vlan 2′ yi aktif edelim.
[Switch1]vlan batch 2 100
[Switch2]vlan batch 2 200
[Switch3]vlan 2
[Switch4]vlan 2

Switch3 ve Switch4’de display gvrp statics komutunu kullanarak, GVRP durumunu görüntüleyelim.
[Switch3]display gvrp statistics
GVRP statistics on port Ethernet0/0/1
GVRP status : Enabled
GVRP registrations failed : 0
GVRP last PDU origin : 4c1f-cc29-2e07
GVRP registration type : Normal
GVRP statistics on port Ethernet0/0/13
GVRP status : Enabled
GVRP registrations failed : 0
GVRP last PDU origin : 4c1f-cc68-2519
GVRP registration type : Normal
[Switch4]display gvrp statistics
GVRP statistics on port Ethernet0/0/1
GVRP status : Enabled
GVRP registrations failed : 0
GVRP last PDU origin : 4c1f-cc7c-48c8
GVRP registration type : Normal
GVRP statistics on port Ethernet0/0/22
GVRP status : Enabled
GVRP registrations failed : 0
GVRP last PDU origin : 4c1f-cc71-4b9a
GVRP registration type : Normal
Registration type’ı normal olarak aktif olmaktadır

Switch3 ve Switch4 vlan’ları kontrol etmek için display vlan komutunu kullanalım.
[Switch3]display vlan
The total number of vlans is : 4
—————————————————————————
U: Up; D: Down; TG: Tagged; UT: Untagged;
MP: Vlan-mapping; ST: Vlan-stacking;

: ProtocolTransparent-vlan; *: Management-vlan;

—————————————————————————
VID Type Ports
—————————————————————————
1 common UT:Eth0/0/1(U) Eth0/0/2(D) Eth0/0/3(D) Eth0/0/4(D)
Eth0/0/5(D) Eth0/0/6(D) Eth0/0/7(D) Eth0/0/8(D)
Eth0/0/9(D) Eth0/0/10(D) Eth0/0/11(D) Eth0/0/12(D)
Eth0/0/13(U) Eth0/0/14(D) Eth0/0/15(D) Eth0/0/16(D)
Eth0/0/17(D) Eth0/0/18(D) Eth0/0/19(D) Eth0/0/20(D)
Eth0/0/21(D) Eth0/0/22(D) GE0/0/1(D) GE0/0/2(D)
2 common TG:Eth0/0/1(U) Eth0/0/13(U)
100 dynamic TG:Eth0/0/13(U)
200 dynamic TG:Eth0/0/1(U)
…output omitted…
[Switch4]display vlan
The total number of vlans is : 4
——————————————————————————–
U: Up; D: Down; TG: Tagged; UT: Untagged;
MP: Vlan-mapping; ST: Vlan-stacking;

: ProtocolTransparent-vlan; *: Management-vlan;

——————————————————————————–
VID Type Ports
——————————————————————————–
1 common UT:Eth0/0/1(U) Eth0/0/2(D) Eth0/0/3(D) Eth0/0/4(D)
Eth0/0/5(D) Eth0/0/6(D) Eth0/0/7(D) Eth0/0/8(D)
Eth0/0/9(D) Eth0/0/10(D) Eth0/0/11(D) Eth0/0/12(D)
Eth0/0/13(D) Eth0/0/14(D) Eth0/0/15(D) Eth0/0/16(D)
Eth0/0/17(D) Eth0/0/18(D) Eth0/0/19(D) Eth0/0/20(D)
Eth0/0/21(D) Eth0/0/22(U) GE0/0/1(D) GE0/0/2(D)
2 common TG:Eth0/0/1(U) Eth0/0/22(U)
100 dynamic TG:Eth0/0/1(U)
200 dynamic TG:Eth0/0/22(U)
…output omitted…

Switch3 ve Switch4 dinamik olarak Vlan100 ve Vlan200’ü öğrenmiş, fakat tek bir yerden. Farklı iki yönden öğrenmesi için Vlan200’ü Switch1 üzerinde, Vlan100’ü Switch2 üzerinde oluşturalım.
[Switch1]vlan 200
[Switch2]vlan 100
Konfigurasyonu doğrulamak için display vlan komutunu kullanalım.
[Switch3]display vlan
…output omitted…
VID Type Ports
—————————————————————————
1 common UT:Eth0/0/1(U) Eth0/0/2(D) Eth0/0/3(D) Eth0/0/4(D)
Eth0/0/5(D) Eth0/0/6(D) Eth0/0/7(D) Eth0/0/8(D)
Eth0/0/9(D) Eth0/0/10(D) Eth0/0/11(D) Eth0/0/12(D)
Eth0/0/13(U) Eth0/0/14(D) Eth0/0/15(D) Eth0/0/16(D)
Eth0/0/17(D) Eth0/0/18(D) Eth0/0/19(D) Eth0/0/20(D)
Eth0/0/21(D) Eth0/0/22(D) GE0/0/1(D) GE0/0/2(D)
2 common TG:Eth0/0/1(U) Eth0/0/13(U)
100 dynamic TG:Eth0/0/1(U) Eth0/0/13(U)
200 dynamic TG:Eth0/0/1(U) Eth0/0/13(U)
…output omitted…
[Switch4]display vlan
…output omitted…
VID Type Ports
—————————————————————————
1 common UT:Eth0/0/1(U) Eth0/0/2(D) Eth0/0/3(D) Eth0/0/4(D)
Eth0/0/5(D) Eth0/0/6(D) Eth0/0/7(D) Eth0/0/8(D)
Eth0/0/9(D) Eth0/0/10(D) Eth0/0/11(D) Eth0/0/12(D)
Eth0/0/13(D) Eth0/0/14(D) Eth0/0/15(D) Eth0/0/16(D)
Eth0/0/17(D) Eth0/0/18(D) Eth0/0/19(D) Eth0/0/20(D)
Eth0/0/21(D) Eth0/0/22(U) GE0/0/1(D) GE0/0/2(D)
2 common TG:Eth0/0/1(U) Eth0/0/22(U)
100 dynamic TG:Eth0/0/1(U) Eth0/0/22(U)
200 dynamic TG:Eth0/0/1(U) Eth0/0/22(U)
…output omitted…
Çıktı sonunda koyu renkli yerleri incelediğimizde Vlan100 ve Vlan200’ün artık iki ayrı interface’den öğrenildiğini görüntülüyoruz.

4.İnterfacelerin registrarion type’larını değiştirme.
Switch3’de Ethernet 0/0/1’in registrarion type’ını fixed olarak değiştirelim. Aynı konfigurasyonu Switch4’de Ethernet 0/0/1 içinde uygulayalım.
[Switch3]interface Ethernet0/0/1
[Switch3-Ethernet0/0/1]gvrp registration fixed
Değişiklikleri görüntülemek için display gvrp statics komutunu kullanalım.

[Switch3]display gvrp statistics interface Ethernet 0/0/1
GVRP statistics on port Ethernet0/0/1
GVRP status : Enabled
GVRP registrations failed : 30
GVRP last PDU origin : 4c1f-cc29-2e07
GVRP registration type : Fixed
GVRP registration type’ının fixed olduğunu görüntülüyoruz. Bu interface’de artık dinamik Vlan’lara izin verilmeyecek.
Fixed olarak değiştirdiğimiz registration type’nın etkilerini görüntülemek için display vlan komutunu kullanalım.
Switch3]display vlan
…output omitted…
VID Type Ports
—————————————————————————
1 common UT:Eth0/0/1(U) Eth0/0/2(D) Eth0/0/3(D) Eth0/0/4(D)
Eth0/0/5(D) Eth0/0/6(D) Eth0/0/7(D) Eth0/0/8(D)
Eth0/0/9(D) Eth0/0/10(D) Eth0/0/11(D) Eth0/0/12(D)
Eth0/0/13(U) Eth0/0/14(D) Eth0/0/15(D) Eth0/0/16(D)
Eth0/0/17(D) Eth0/0/18(D) Eth0/0/19(D) Eth0/0/20(D)
Eth0/0/21(D) Eth0/0/22(D) GE0/0/1(D) GE0/0/2(D)
2 common TG:Eth0/0/1(U) Eth0/0/13(U)
100 dynamic TG:Eth0/0/13(U)
200 dynamic TG:Eth0/0/13(U)
Koyu renkli yerleri incelediğimizde, Ethernet 0/0/1’in dinamik Vlan100 ve Vlan200’e dahil olmadığını görüntülüyoruz.
Switch3 üzerinde Ethernet 0/0/01 için registration type’ı forbidden olarak değiştirlerim. Aynı konfigurasyonu Switch4 üzerinde Ethernet 0/0/4 içinde yapalım.
[Switch3]interface Ethernet0/0/1
[Switch3-Ethernet0/0/1]gvrp registration forbidden
GVRP’deki değişiklikleri görüntülemek için display gvrp statistics komutunu kullanalım.
[Switch3]display gvrp statistics interface Ethernet 0/0/1
GVRP statistics on port Ethernet0/0/1
GVRP status : Enabled
GVRP registrations failed : 211
GVRP last PDU origin : 4c1f-cc29-2e07
GVRP registration type : Forbidden
Registration type’ının Ethernet 0/0/1 için forbidden olduğunu görüntülüyoruz.
Forbidden olarak belirlediğimiz registration type’ın etkilerini display vlan komutu ile görüntüleyelim.
[Switch3]display vlan
The total number of vlans is : 4
…output omitted…
VID Type Ports
—————————————————————————
1 common UT:Eth0/0/1(U) Eth0/0/2(D) Eth0/0/3(D) Eth0/0/4(D)
Eth0/0/5(D) Eth0/0/6(D) Eth0/0/7(D) Eth0/0/8(D)
Eth0/0/9(D) Eth0/0/10(D) Eth0/0/11(D) Eth0/0/12(D)
Eth0/0/13(U) Eth0/0/14(D) Eth0/0/15(D) Eth0/0/16(D)
Eth0/0/17(D) Eth0/0/18(D) Eth0/0/19(D) Eth0/0/20(D)
Eth0/0/21(D) Eth0/0/22(D) GE0/0/1(D) GE0/0/2(D)
2 common TG:Eth0/0/13(U)
100 dynamic TG:Eth0/0/13(U)
200 dynamic TG:Eth0/0/13(U)
Forbidden modu sadece Vlan1’e izin veriyor ve Ethernet 0/0/1’e gelen diğer Vlan’lar için yasaklı durumda.
Final..
display current-configuration#
sysname Switch1
#
vlan batch 2 100 200
#
gvrp
#
interface GigabitEthernet0/0/13
port link-type trunk
port trunk allow-pass vlan 2 to 4094
gvrp
#
Return
display current-configuration#
sysname Switch2
#
vlan batch 2 100 200
#
gvrp
#
interface GigabitEthernet0/0/22
port link-type trunk
port trunk allow-pass vlan 2 to 4094
gvrp
#
Return
[Switch3]display current-configuration#
sysname Switch3
#
undo info-center enable
#
vlan batch 2
#
gvrp
#
interface Ethernet0/0/13
port link-type trunk
port trunk allow-pass vlan 2 to 4094
gvrp
#
Return
display current-configuration#
sysname Switch4
#
undo info-center enable
#
vlan batch 2
#
gvrp
#
interface Ethernet0/0/22
port link-type trunk
port trunk allow-pass vlan 2 to 4094
gvrp
#
return

About cemerbas

Check Also

Next Generation Firewall (NGFW) Huawei

Next Generation Firewall (NGFW) üzerinden geçen trafiği, Application identification, User identification ve Content identification temellerine …

Bir yanıt yazın