{"id":201,"date":"2020-09-26T13:25:35","date_gmt":"2020-09-26T13:25:35","guid":{"rendered":"https:\/\/dft.wiki\/?p=201"},"modified":"2021-02-07T20:13:19","modified_gmt":"2021-02-07T20:13:19","slug":"vtp-on-cisco-switches","status":"publish","type":"post","link":"https:\/\/dft.wiki\/?p=201","title":{"rendered":"VTP on Cisco Switches"},"content":{"rendered":"<p>Using the same scenario from the VLAN and TRUNK post [<a href=\"hhttps:\/\/dft.wiki\/?p=199\">Read It<\/a>], where both switches had the VLANs configured manually, now we will create a Server Client hierarchy to centralize the VLANs configuration and make the network better to manage.<\/p>\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2020\/09\/image-65.png\" alt=\"This image has an empty alt attribute; its file name is image-65.png\" \/><\/figure>\n<div class=\"wp-block-columns\">\n<div class=\"wp-block-column\">\n<p>Switch1<\/p>\n<pre>enable \r\nconfigure terminal \r\nhostname Switch1\r\nno ip domain lookup\r\nline con 0\r\nlogging synchronous\r\n\r\ninterface f0\/1\r\nswitchport mode access\r\nswitchport access vlan 10\r\ninterface f0\/2\r\nswitchport mode access\r\nswitchport access vlan 20\r\ninterface f0\/3\r\nswitchport mode access\r\nswitchport access vlan 30\r\n\r\ninterface range f0\/4-24\r\nshutdown\r\n\r\ninterface g0\/1\r\nswitchport mode trunk<\/pre>\n<\/div>\n<div class=\"wp-block-column\">\n<p>Switch2<\/p>\n<pre>enable \r\nconfigure terminal \r\nhostname Switch2\r\nno ip domain lookup\r\nline con 0\r\nlogging synchronous\r\n\r\ninterface f0\/1\r\nswitchport mode access\r\nswitchport access vlan 30\r\ninterface f0\/2\r\nswitchport mode access\r\nswitchport access vlan 10\r\ninterface f0\/3\r\nswitchport mode access\r\nswitchport access vlan 20\r\n\r\ninterface range f0\/4-24\r\nshutdown\r\n\r\ninterface g0\/1\r\nswitchport mode trunk<\/pre>\n<\/div>\n<\/div>\n<p>After creating the Trunks, setup the VTP client-server configuration:<\/p>\n<div class=\"wp-block-columns\">\n<div class=\"wp-block-column\">\n<p>Switch1<\/p>\n<pre>vtp domain DFT\r\nvtp mode server\r\nvtp password dft\r\nvtp pruning\r\n\r\nvlan 10\r\nname Pink\r\nvlan 20\r\nname Green\r\nvlan 30\r\nname Orange<\/pre>\n<\/div>\n<div class=\"wp-block-column\">\n<p>Switch2<\/p>\n<pre>vtp domain DFT\r\nvtp mode client\r\nvtp password dft<\/pre>\n<p>Note: there is no need for any additional configuration on the client-side. The running feature and all the VLANs will be learned over the VTP protocol.<\/p>\n<\/div>\n<\/div>\n<p>To check the configuration in each Switch issue the commands:<\/p>\n<pre>show vlan brief\r\nshow vtp status<\/pre>\n<p>Learn more about [<a href=\"https:\/\/www.youtube.com\/watch?v=Nlyx5lFQR34\">VTP<\/a> &#8211; CertBros]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Using the same scenario from the VLAN and TRUNK post [Read It], where both switches [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-201","post","type-post","status-publish","format-standard","hentry","category-ccna"],"_links":{"self":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/201","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=201"}],"version-history":[{"count":11,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/201\/revisions"}],"predecessor-version":[{"id":1027,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/201\/revisions\/1027"}],"wp:attachment":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=201"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=201"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}