{"id":244,"date":"2016-03-06T20:24:12","date_gmt":"2016-03-06T19:24:12","guid":{"rendered":"https:\/\/zed-network.fr\/?p=244"},"modified":"2016-03-06T20:26:53","modified_gmt":"2016-03-06T19:26:53","slug":"how-simplify-the-configuration-on-your-cisco-nexus-5k","status":"publish","type":"post","link":"https:\/\/zed-network.fr\/?p=244","title":{"rendered":"How simplify the configuration on your Cisco Nexus 5K"},"content":{"rendered":"<p>Port profiles can reduce errors and apply the same configurations.<\/p>\n<p>You create a port-profile and inherit it on your interface. Don&#8217;t forget the max-port \u00a0on your port-profile if you apply on a lot interface.<\/p>\n<pre>port-profile type ethernet\u00a0FREE\r\nmax-port 1024\r\nshutdown\r\nstate enable\r\n<\/pre>\n<pre>port-profile type ethernet\u00a0ACCESS_PORT\r\nmax-port 1024\r\nswitchport mode access\r\nspanning-tree port type edge\r\nno cdp enable\r\nno shutdown\r\nstate enable\r\n<\/pre>\n<p>After you can use your port-profile and add you Vlan ID for example. You reduce the number of line and use\u00a0each\u00a0time your interface with the same commands.<\/p>\n<pre>interface eth101\/1\/1\r\ninherit\u00a0port-profile ACCESS_PORT\r\nswitchport access vlan 100\r\n<\/pre>\n<p>You can use this command to display the complete configuration :<\/p>\n<pre>sh run int eth101\/1\/1 expand-port-profile<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Port profiles can reduce errors and apply the same configurations. You create a port-profile and inherit it on your interface. Don&#8217;t forget the max-port \u00a0on your port-profile if you apply on a lot interface. port-profile type ethernet\u00a0FREE max-port 1024 shutdown state enable port-profile type ethernet\u00a0ACCESS_PORT max-port 1024 switchport mode access spanning-tree port type edge no [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-244","post","type-post","status-publish","format-standard","hentry","category-cisco"],"_links":{"self":[{"href":"https:\/\/zed-network.fr\/index.php?rest_route=\/wp\/v2\/posts\/244","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zed-network.fr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zed-network.fr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zed-network.fr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zed-network.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=244"}],"version-history":[{"count":3,"href":"https:\/\/zed-network.fr\/index.php?rest_route=\/wp\/v2\/posts\/244\/revisions"}],"predecessor-version":[{"id":247,"href":"https:\/\/zed-network.fr\/index.php?rest_route=\/wp\/v2\/posts\/244\/revisions\/247"}],"wp:attachment":[{"href":"https:\/\/zed-network.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=244"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zed-network.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=244"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zed-network.fr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=244"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}