cisco minősítések, tippek

19
VTP

Upload: others

Post on 22-Feb-2022

7 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Cisco minősítések, tippek

VTP

Page 2: Cisco minősítések, tippek

Teszt topológia

Kuris Ferenc - [HUN] Cisco Blog -www.hunciscoblog.wordpress.com

2

SW1

SW2SW3

E1/0 E1/0

E1/0E1/1

Page 3: Cisco minősítések, tippek

Alap konfiguráció

SW1-2-3

conf t

interface e1/0

switchport trunk encapsulation dot1q

switchport mode trunk

vtp domain CCIE

vtp mode transparent

vtp password CCIE

end

Kuris Ferenc - [HUN] Cisco Blog -www.hunciscoblog.wordpress.com

3

Page 4: Cisco minősítések, tippek

VTP

• VLAN Trunking Protocol– Semmi köze a broadcast domain-hez!

• DTP – VTP kapcsolat: DTP hibára fut két különböző VTP domain közötti trunk-nél DTP kikapcsolás, switchport mode trunk + sw nonegotiate a megoldás (lásd syslog alul)

• Password MD5 hash-ben kerül kiküldésre, nem cleartext. De látszik clear text-ben show paranccsal.

*Mar 1 05:58:28: %DTP-5-DOMAINMISMATCH: Unable to perform trunk

negotiation on port Fa0/13 because of VTP domain mismatch.

4Kuris Ferenc - [HUN] Cisco Blog -

www.hunciscoblog.wordpress.com

Page 5: Cisco minősítések, tippek

Az élet VTP nélkül

• VLAN létrehozás/módosítás/törlés: minden switchen el kell végezni kézzel

– van rá 3 napunk ?

– Script

• Demo

5Kuris Ferenc - [HUN] Cisco Blog -

www.hunciscoblog.wordpress.com

Page 6: Cisco minősítések, tippek

Az élet VTP-vel

• Demo

6Kuris Ferenc - [HUN] Cisco Blog -

www.hunciscoblog.wordpress.com

Page 7: Cisco minősítések, tippek

Alapértelmezett értékek

Switch Null domain névvel kap egy VTP üzenetet felveszi a domain nevet!VTP disaster lehetőség

7Kuris Ferenc - [HUN] Cisco Blog -

www.hunciscoblog.wordpress.com

Page 8: Cisco minősítések, tippek

A VTP módjai

• Server - alapértelmezett

• Client

• Transparent – csak továbbítja a VTP üzeneteket, saját adatbázisban tárolja a VLAN-okat (+ runningconfig), módosítása nem érinti a többi switchet

• (Off)

• A kliens felül tudja írni a szerver adatbázisát VTP „katasztrófa”

8Kuris Ferenc - [HUN] Cisco Blog -

www.hunciscoblog.wordpress.com

Page 9: Cisco minősítések, tippek

VTP helyes működéshez kell

• Működő trunk

• VTP domain name

• (Password)

• Revision numbereknek minden switchenegyezni kell, magasabb felülírja az alacsonyabbat

9Kuris Ferenc - [HUN] Cisco Blog -

www.hunciscoblog.wordpress.com

Page 10: Cisco minősítések, tippek

VTPv2

• Token Ring Support

• Unrecognised TLV supported

• Domain-dependent Transparent mode– Elvileg nem kell egyezni a domain névnek már, CCIE myth

– http://blog.ipexpert.com/old-ccie-myths-vtp/

• Consistency checks– VLAN consistency checks (such as VLAN names and

values) are performed only when you enter new information through the CLI or SNMP

• Még mindig nem támogatja az Extended range (1006-4094) VLAN-okat

10Kuris Ferenc - [HUN] Cisco Blog -

www.hunciscoblog.wordpress.com

Page 11: Cisco minősítések, tippek

VTP messages

• VTP message types:– Summary advertisements – 5 percenként, domain név és

revision ID– Subset advertisement– Advertisement requests– VTP join messages – VTP Join message contains VTP

domain name, and a VLAN bit string. If the bit is set, flood traffic for that VLAN should be received on that trunk. Each trunk port maintains a state variable per VLAN -Joined/Pruned. If the state is Joined, the trunk port is allowed to send broadcast and flooded unicast traffic on this VLAN. - See more at: https://supportforums.cisco.com/discussion/10241031/vtp-join-message#sthash.mlsgfVYz.dpuf

11Kuris Ferenc - [HUN] Cisco Blog -

www.hunciscoblog.wordpress.com

Page 12: Cisco minősítések, tippek

VTP Pruning

• Nem szükséges broadcast forgalom kiszűrése

• Spanning-Tree még mindig fut a VLAN-ra!

• Csak a VTP serveren kell beállítani, az egész domain-re érvényesül

12Kuris Ferenc - [HUN] Cisco Blog -

www.hunciscoblog.wordpress.com

Page 13: Cisco minősítések, tippek

VTP Pruning – Red VLAN

13Kuris Ferenc - [HUN] Cisco Blog -

www.hunciscoblog.wordpress.com

Page 14: Cisco minősítések, tippek

VTP Pruning – Red VLAN

14Kuris Ferenc - [HUN] Cisco Blog -

www.hunciscoblog.wordpress.com

Page 15: Cisco minősítések, tippek

VTPv3

• Régen 6500-asok tudták, IOS15-tel már több switch is (pl. 3560-asok 32 MB-os flash-sel)

• Új authentikáció - show parancs nem clear-text

• Private VLAN támogatás (!)

• MST-t is tud „szórni” (!)

• Unknown instance: későbbi felhasználásra

• Kétféle VTP server, alapból secondary, kézzel primary– #vtp primary

• Per-port VTP kikapcsolás (no vtp a trunk portokon)

15Kuris Ferenc - [HUN] Cisco Blog -

www.hunciscoblog.wordpress.com

Page 16: Cisco minősítések, tippek

VTP Pruning + Transparent

• http://ieoc.com/forums/t/14926.aspx

Kuris Ferenc - [HUN] Cisco Blog -www.hunciscoblog.wordpress.com

16

Page 17: Cisco minősítések, tippek

Trükkök

• A VTP version 2-capable switch can operate in the same VTP domain as a switch running VTP version 1 if version 2 is disabled on the version 2-capable switch (version 2 is disabled by default).

• If a switch running VTP version 1 but capable of running VTP version 2 receives VTP version 3 advertisements, it automatically moves to VTP version 2.

• If a switch running VTP version 3 is connected to a switch running VTP version 1, the VTP version 1 switch moves to VTP version 2, and the VTP version 3 switch sends scaled-down versions of the VTP packets so that the VTP version 2 switch can update its database.

• A switch running VTP version 3 cannot move to version 1 or 2 if it has extended VLANs.

17Kuris Ferenc - [HUN] Cisco Blog -

www.hunciscoblog.wordpress.com

Page 18: Cisco minősítések, tippek

show vtp status

SW1#sh vtp status

VTP Version : 2

Configuration Revision : 1071

Maximum VLANs supported locally : 1005

Number of existing VLANs : 58

VTP Operating Mode : Server

VTP Domain Name : CCIE

VTP Pruning Mode : Disabled

VTP V2 Mode : Disabled

VTP Traps Generation : Enabled

MD5 digest : 0x4A 0x3B 0x0F

0xC9 0xD5 0x58 0x5C 0x39

18Kuris Ferenc - [HUN] Cisco Blog -

www.hunciscoblog.wordpress.com

Page 19: Cisco minősítések, tippek

Kérdések?

Kuris Ferenc - [HUN] Cisco Blog -www.hunciscoblog.wordpress.com

19