Sunteți pe pagina 1din 3

Borrar configuracin

This example shows how to erase the startup configuration:

switch# write erase


This example shows how to erase the debug configuration in the persistent memory:

switch# write erase debug


Hostname
hostname name
no hostname

Vlans
Vlan interface
switch# configure terminal
switch(config)# vlan 15-20
Purpose
Comman
d or
Action
Step 1
switch# configure
terminal

Enters configuration mode.

Step 2

switch(config)# vlan{vla Enters VLAN configuration submode. If


n-id | vlan-range}
the VLAN does not exist, the system
first creates the specified VLAN.

Step 3

switch(configvlan)#name vlan-name

Names the VLAN. You can enter up to


32 alphanumeric characters to name
the VLAN. You cannot change the name
of VLAN1 or the internally allocated
VLANs. The default value is VLANxxxx
where xxxx represent four numeric
digits (including leading zeroes) equal
to the VLAN ID number.

Step 4

switch(configvlan)#state {active |
suspend}

Sets the state of the VLAN to active or


suspend. While the VLAN state is
suspended, the ports associated with
this VLAN are shut down, and that
VLAN does not pass any traffic. The
default state is active. You cannot

suspend the state for the default VLAN


or VLANs 1006 to 4094.
Step 5

switch(config-vlan)#no
shutdown

The following example shows how to configure a VLAN as a management SVI:


switch# configure terminal
switch(config)# feature interface-vlan
switch(config)# interface vlan 5
switch(config-if)# management
switch(config-if)# copy running-config startup-config
switch(config-if)#

VPC
switch# configure terminal
switch(config)# vpc domain 5
switch(config-vpc-domain)# peer-keepalive destination 10.10.10.42
keep alive
The following example shows how to create a separate VRF named vpc_keepalive for the vPC
keepalive link and how to verify the new VRF.
vrf context vpc_keepalive
interface Ethernet1/31
switchport access vlan 123
interface Vlan123
vrf member vpc_keepalive
ip address 123.1.1.2/30
no shutdown
vpc domain 1
peer-keepalive destination 123.1.1.1 source 123.1.1.2 vrf
vpc_keepalive

PORT CAHENL

DETAILED STEPS
Command or Action

Purpose

Step switch# configure


1
terminal

Enters configuration mode.

Step switch(config)# interface


2
port-channel channelnumber

Selects the EtherChannel that you want to use


as the vPC peer link for this switch, and enters
the interface configuration mode.

Step switch(config-if)# vpc


3
peer-link

Configures the selected EtherChannel as the


vPC peer link, and enters the vpc-domain
configuration mode.

Step switch# show vpc brief


4

(Optional)
Displays information about each vPC, including
information about the vPC peer link.

Step switch# copy running5


config startup-config

(Optional)
Copies the running configuration to the startup
configuration.

This example shows how to configure a vPC peer link:


switch# configure terminal
switch(config)# interface port-channel 20
switch(config-if)# vpc peer-link

S-ar putea să vă placă și