comandos del switch

3
EnablingRemoteAccesson an IOS-BasedSwitch On a switch with an IOS-based user interface, an IP address can be assigned to the management VLAN (default is VLAN 1) with the following commands in global configurat ion mode: Switch(config)# interface vlan 1 Switch(config-if)# ip address ip-address netmask Switch(config-if)# ip default-gateway ip-address EnablingRemoteAccesson a CLI-BasedSwitch An IP address can also be configured for in-band management on a switch with a CLI- based user interface by entering the following commands in privileged mode: Switch(enable) set interface sc0 ip-address netmask broadcast-address Switch(enable) set interface sc0 vlan Switch(enable) set ip route default gateway Communicating Between Switches CiscoDiscoveryProtocol EnablingCDPand ViewingCDPInformationon an IOS- BasedSwitch CDP is enabled by default on all switch interfaces. To enable CDP, use the following interface configuration command (use the no form to disable CDP): Switch(config-if)# cdp enable Switch(config-if)# no cdp enable  To view infor mation learned from CDP advertis ements of neig hboring Cis co devices, u se one of the following commands: Switch# show cdp interface [ type module/port] Switch# show cdp neighbors [ type module/port] [detail]  To view infor mation learned from CDP advertis ements of neig hboring Cis co devices, u se a form of the following command: Switch(enable) show cdp neighbors [ module/port] [ vlan | duplex | capabilities | detail] Switch Port Configuration  The individu al ports on a switch can be configur ed with various information a nd settings, as detailed in the following sections.

Upload: arnisadoryeskrimador

Post on 14-Apr-2018

220 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Comandos Del Switch

7/30/2019 Comandos Del Switch

http://slidepdf.com/reader/full/comandos-del-switch 1/3

EnablingRemoteAccesson an IOS-BasedSwitch

On a switch with an IOS-based user interface, an IP address can be assigned to themanagementVLAN (default is VLAN 1) with the following commands in global configuration mode:

Switch(config)# interface vlan 1

Switch(config-if)# ip address ip-address netmaskSwitch(config-if)# ip default-gateway ip-address

EnablingRemoteAccesson a CLI-BasedSwitch

An IP address can also be configured for in-band management on a switch with a CLI-baseduser interface by entering the following commands in privileged mode:

Switch(enable) set interface sc0 ip-address netmask broadcast-address

Switch(enable) set interface sc0 vlan

Switch(enable) set ip route default gateway 

Communicating Between Switches

CiscoDiscoveryProtocol

EnablingCDPand ViewingCDPInformationon an IOS-BasedSwitch

CDP is enabled by default on all switch interfaces. To enable CDP, use the followinginterfaceconfiguration command (use the no form to disable CDP):

Switch(config-if)# cdp enable

Switch(config-if)# no cdp enable

 To view information learned from CDP advertisements of neighboring Cisco devices, useoneof the following commands:

Switch# show cdp interface [ type module/port]

Switch# show cdp neighbors [ type module/port] [detail]

 To view information learned from CDP advertisements of neighboring Cisco devices, use aform of the following command:

Switch(enable) show cdp neighbors [ module/port] [vlan | duplex |capabilities | detail]

Switch Port Configuration

 The individual ports on a switch can be configured with various information and settings,asdetailed in the following sections.

Page 2: Comandos Del Switch

7/30/2019 Comandos Del Switch

http://slidepdf.com/reader/full/comandos-del-switch 2/3

Identifying Ports

Switch ports can have a text description added to their configuration to help identifythem. Thisdescription is meant as a comment field only, as a record of port use or other uniqueinformation. The port description is shown when the switch configuration is displayed.

Assigninga Port Descriptionon an IOS-BasedSwitch

 To assign a comment or description to an interface on a switch with an IOS-based user interface,enter the following command in interface configuration mode:

Switch(config-if)# description description-string 

Port Speed

AssigningPort Speedon an IOS-BasedSwitch

 To specify the port speed on a particular Ethernet port, use the following interface configuration

command:

Switch(config-if)# speed {10 | 100 | auto}

VLANs and Trunking

ConfiguringStatic VLANs

 This section describes the switch commands needed to configure static VLANs. Bydefault, allswitch ports are assigned to VLAN 1, are set to be a VLAN type of Ethernet, have amaximum

transmission unit (MTU) size of 1500 bytes, and have a Security Association Identifier(SAID)of 100,000 plus the VLAN number.

First, the VLAN must be created on the switch, if it doesn’t already exist. Then the VLANmustbe assigned to specific switch ports.

 To configure static VLANs on an IOS-based switch, you would enter the following commandsin enable mode:

Switch# vlan database

Switch(vlan)# vlan vlan-num name vlan-name

Switch(vlan)# exitSwitch# configure terminal

Switch(config)# interface interface module/number

Switch(config-if)# switchport mode access

Switch(config-if)# switchport access vlan vlan-num

Switch(config-if)# end 

DynamicVLANs

Page 3: Comandos Del Switch

7/30/2019 Comandos Del Switch

http://slidepdf.com/reader/full/comandos-del-switch 3/3

Dynamic VLANs are used to provide membership based on the MAC address of an enduserdevice. When a device is connected to a switch port, the switch must query a database toestablish VLAN membership. A network administrator must assign the user’s MACaddress toa VLAN in the database of a VLAN Membership Policy Server (VMPS).With Cisco switches, dynamic VLANs are created and managed through the use of 

networkmanagement tools like CiscoWorks 2000 or CiscoWorks for Switched Internetworks(CWSI).Dynamic VLANs allow a great deal of flexibility and mobility for end users, but requiremoreadministrative overhead.