commands for cisco_devices
TRANSCRIPT
![Page 1: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/1.jpg)
Cisco Devices
The Command-Line InterfaceShortcuts for Entering Commands
Using the [tab] Key to Complete Commands
Using the Question Mark for Help
enable Command
exit Command
![Page 2: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/2.jpg)
disable Command
logout Command
Setup Mode
Keyboard Help
![Page 3: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/3.jpg)
show Commands
Configuring a Router
Configuring a Single Cisco RouterRouter Modes
Entering Global Configuration Mode
Configuring a Router Name
![Page 4: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/4.jpg)
Configuring Passwords
Password Encryption
Configuring a Serial Interface
Configuring a Fast Ethernet Interface
![Page 5: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/5.jpg)
Creating a Message-of-the-Day Banner
Creating a Login Banner
Setting the Clock Time Zone
Assigning a Local Host Name to an IP Address
The no ip domain-lookup Command
![Page 6: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/6.jpg)
The logging synchronous Command
The exec-timeout Command
Saving Configurations
Erasing Configurations
show Commands
![Page 7: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/7.jpg)
EXEC Commands in Configuration Mode: The do Command
![Page 8: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/8.jpg)
Configuration Example: Basic Router Configuration
Boston Router
![Page 9: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/9.jpg)
![Page 10: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/10.jpg)
Routing
Static RoutingConfiguring a Static Route on a Router
Static Routes and Administrative Distance (Optional)
Router(config)#ip route 172.16.20.0 255.255.255.0 172.16.10.2 permanentRouter(config)#ip route 172.16.20.0 255.255.255.0 172.16.10.2 200
![Page 11: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/11.jpg)
Configuring a Default Route on a Router
Verifying Static Routes
Router#show ip route
Configuration Example: Static Routes
![Page 12: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/12.jpg)
Boston Router
Buffalo Router
Bangor Router
![Page 13: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/13.jpg)
RIPThe ip classless Command
RIP Routing: Mandatory Commands
RIP Routing: Optional Commands
![Page 14: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/14.jpg)
Troubleshooting RIP Issues
Configuration Example: RIPv2 Routing
![Page 15: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/15.jpg)
Cancun Router
Acapulco Router
Mazatlan Router
![Page 16: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/16.jpg)
EIGRPConfiguring Enhanced Interior Gateway Routing Protocol (EIGRP)
EIGRP Auto-Summarization
![Page 17: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/17.jpg)
Load Balancing: variance
Bandwidth Use
![Page 18: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/18.jpg)
Authentication
Verifying EIGRP
![Page 19: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/19.jpg)
Troubleshooting EIGRP
Configuration Example: EIGRP
Austin Router
![Page 20: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/20.jpg)
Houston Router
![Page 21: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/21.jpg)
![Page 22: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/22.jpg)
Single Area OSPFConfiguring OSPF: Mandatory Commands
Using Wildcard Masks with OSPF Areas
Configuring OSPF: Optional Commands
Loopback Interfaces
![Page 23: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/23.jpg)
Router ID
DR/BDR Elections
Modifying Cost Metrics
![Page 24: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/24.jpg)
Authentication: Simple
Authentication: Using MD5 Encryption
![Page 25: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/25.jpg)
Timers
Propagating a Default Route
Verifying OSPF Configuration
![Page 26: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/26.jpg)
Troubleshooting OSPF
Configuration Example: Single Area OSPF
![Page 27: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/27.jpg)
Austin Router
Houston Router
![Page 28: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/28.jpg)
Galveston Router
![Page 29: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/29.jpg)
Switching
Configuring a SwitchHelp Commands
Command Modes
Verifying Commands
![Page 30: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/30.jpg)
Resetting Switch Configuration
Setting Host Names
Setting Passwords
![Page 31: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/31.jpg)
Setting IP Addresses and Default Gateways
Setting Interface Descriptions
Setting Duplex Operation
![Page 32: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/32.jpg)
Setting Operation Speed
Managing the MAC Address Table
Configuring Static MAC Addresses
Switch Port Security
![Page 33: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/33.jpg)
Verifying Switch Port Security
![Page 34: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/34.jpg)
Sticky MAC Addresses
![Page 35: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/35.jpg)
Configuration Example
![Page 36: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/36.jpg)
![Page 37: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/37.jpg)
VLANsCreating Static VLANs
Using VLAN Configuration Mode
![Page 38: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/38.jpg)
Using VLAN Database Mode
Assigning Ports to VLANs
Using the range Command
Verifying VLAN Information
![Page 39: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/39.jpg)
Saving VLAN Configurations
Erasing VLAN Configurations
![Page 40: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/40.jpg)
Configuration Example: VLANs
![Page 41: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/41.jpg)
VLAN Trunking Protocol and Inter-VLAN RoutingDynamic Trunking Protocol (DTP)
Setting the Encapsulation Type
![Page 42: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/42.jpg)
VLAN Trunking Protocol (VTP)
![Page 43: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/43.jpg)
Using VLAN Database Mode
![Page 44: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/44.jpg)
Verifying VTP
Inter-VLAN Communication Using an External Router:
Router-on-a-Stick
![Page 45: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/45.jpg)
Inter-VLAN Communication Tips
Router(config)#interface fastethernet 0/0Router(config-if)#encapsulation dot1q 1 nativeRouter(config-if)#ip address 192.168.1.1 255.255.255.0Router(config-if)#interface fastethernet 0/0.10Router(config-subif)#encapsulation dot1q 10Router(config-subif)#ip address 192.168.10.1 255.255.255.0
Configuration Example: Inter-VLAN Communication
ISP Router
![Page 46: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/46.jpg)
CORP Router
![Page 47: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/47.jpg)
![Page 48: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/48.jpg)
![Page 49: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/49.jpg)
L2Switch1 (Catalyst 2960)
![Page 50: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/50.jpg)
![Page 51: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/51.jpg)
STP and EtherChannelSpanning Tree Protocol
Enabling Spanning Tree Protocol
Configuring the Root Switch
![Page 52: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/52.jpg)
Configuring a Secondary Root Switch
Configuring Port Priority
Configuring the Path Cost
![Page 53: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/53.jpg)
Configuring the Switch Priority of a VLAN
Configuring STP Timers
Verifying STP
![Page 54: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/54.jpg)
Optional STP Configurations
PortFast
BPDU Guard
Changing the Spanning-Tree Mode
Different types of spanning tree can be configured on a Cisco switch. The options varyaccording to the platform:• Per-VLAN Spanning Tree (PVST)—There is one instance of spanning tree for eachVLAN. This is a Cisco proprietary protocol.• Per-VLAN Spanning Tree Plus (PVST+)—Also Cisco proprietary. Has addedextensions to the PVST protocol.• Rapid PVST+—This mode is the same as PVST+ except that it uses a rapidconvergence based on the 802.1w standard.• Multiple Spanning Tree Protocol (MSTP)—IEEE 802.1s. Extends the 802.1wRapid Spanning Tree (RST) algorithm to multiple spanning trees. Multiple VLANscan map to a single instance of RST. You cannot run MSTP and PVST at the sametime.
![Page 55: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/55.jpg)
Extended System ID
Enabling Rapid Spanning Tree
Troubleshooting Spanning Tree
![Page 56: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/56.jpg)
Configuration Example: STP
Core Switch (2960)
![Page 57: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/57.jpg)
Distribution 1 Switch (2960)
Distribution 2 Switch (2960)
![Page 58: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/58.jpg)
EtherChannel
EtherChannel provides fault-tolerant, high-speed links between switches, routers, andservers. An EtherChannel consists of individual Fast Ethernet or Gigabit Ethernet linksbundled into a single logical link. If a link within an EtherChannel fails, traffic previouslycarried over that failed link changes to the remaining links within the EtherChannel.
Interface Modes in EtherChannel
Guidelines for Configuring EtherChannel
Configuring Layer 2 EtherChannel
![Page 59: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/59.jpg)
Verifying EtherChannel
Configuration Example: EtherChannel
![Page 60: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/60.jpg)
Core (2960)
![Page 61: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/61.jpg)
ALSwitch1 (2960)
![Page 62: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/62.jpg)
ALSwitch2 (2960)
![Page 63: Commands for Cisco_Devices](https://reader038.vdocuments.us/reader038/viewer/2022102716/54677b75b4af9f7f798b4979/html5/thumbnails/63.jpg)
Extending the LAN
Implementing a Wireless LAN