cisco 640 802 ccna portable command guide 2008 phần 6 ppsx

24 240 0
cisco 640 802 ccna portable command guide 2008 phần 6 ppsx

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

Configuring OSPF: Optional Commands 95 Modifying Cost Metrics Authentication: Simple Router(config)#ii ii nn nn tt tt ee ee rr rr ff ff aa aa cc cc ee ee ss ss ee ee rr rr ii ii aa aa ll ll 00 00 // // 00 00 Changes the router to interface configuration mode. Router(config-if)#bb bb aa aa nn nn dd dd ww ww ii ii dd dd tt tt hh hh 11 11 22 22 88 88 If you change the bandwidth, OSPF recalculates the cost of the link. Or Router(config-if)#ii ii pp pp oo oo ss ss pp pp ff ff cc cc oo oo ss ss tt tt 11 11 55 55 66 66 44 44 Changes the cost to a value of 1564. NOTE: The cost of a link is determined by dividing the reference bandwidth by the interface bandwidth. The bandwidth of the interface is a number between 1 and 10,000,000. The unit of measurement is kilobits. The cost is a number between 1 and 65,535. The cost has no unit of measurement—it is just a number. Router(config)#rr rr oo oo uu uu tt tt ee ee rr rr oo oo ss ss pp pp ff ff 11 11 Starts OSPF process 1. Router(config-router)#aa aa rr rr ee ee aa aa 00 00 aa aa uu uu tt tt hh hh ee ee nn nn tt tt ii ii cc cc aa aa tt tt ii ii oo oo nn nn Enables simple authentication; password will be sent in clear text. Router(config-router)#ee ee xx xx ii ii tt tt Returns to global configuration mode. Router(config)#ii ii nn nn tt tt ee ee rr rr ff ff aa aa cc cc ee ee ff ff aa aa ss ss tt tt ee ee tt tt hh hh ee ee rr rr nn nn ee ee tt tt 00 00 // // 00 00 Moves to interface configuration mode. Router(config-if)#ii ii pp pp oo oo ss ss pp pp ff ff aa aa uu uu tt tt hh hh ee ee nn nn tt tt ii ii cc cc aa aa tt tt ii ii oo oo nn nn kk kk ee ee yy yy ff ff rr rr ee ee dd dd Sets key (password) to fred. NOTE: The password can be any continuous string of characters that can be entered from the keyboard, up to 8 bytes in length. To be able to exchange OSPF information, all neighboring routers on the same network must have the same password. 96 Configuring OSPF: Optional Commands Authentication: Using MD5 Encryption Timers Propagating a Default Route Router(config)#rr rr oo oo uu uu tt tt ee ee rr rr oo oo ss ss pp pp ff ff 11 11 Starts OSPF process 1. Router(config-router)#aa aa rr rr ee ee aa aa 00 00 aa aa uu uu tt tt hh hh ee ee nn nn tt tt ii ii cc cc aa aa tt tt ii ii oo oo nn nn mm mm ee ee ss ss ss ss aa aa gg gg ee ee dd dd ii ii gg gg ee ee ss ss tt tt Enables authentication with MD5 password encryption. Router(config-router)#ee ee xx xx ii ii tt tt Returns to global configuration mode. Router(config)#ii ii nn nn tt tt ee ee rr rr ff ff aa aa cc cc ee ee ff ff aa aa ss ss tt tt ee ee tt tt hh hh ee ee rr rr nn nn ee ee tt tt 00 00 // // 00 00 Moves to interface configuration mode. Router(config-if)#ii ii pp pp oo oo ss ss pp pp ff ff mm mm ee ee ss ss ss ss aa aa gg gg ee ee dd dd ii ii gg gg ee ee ss ss tt tt kk kk ee ee yy yy 11 11 mm mm dd dd 55 55 ff ff rr rr ee ee dd dd 1 is the key-id. This value must be the same as that of your neighboring router. md5 indicates that the MD5 hash algorithm will be used. fred is the key (password) and must be the same as that of your neighboring router. NOTE: If the service password- encryption command is not used when implementing OSPF MD5 authentication, the MD5 secret is stored as plain text in NVRAM. Router(config-if)#ii ii pp pp oo oo ss ss pp pp ff ff hh hh ee ee ll ll ll ll oo oo ii ii nn nn tt tt ee ee rr rr vv vv aa aa ll ll tt tt ii ii mm mm ee ee rr rr 22 22 00 00 Changes the Hello Interval timer to 20 seconds. Router(config-if)#ii ii pp pp oo oo ss ss pp pp ff ff dd dd ee ee aa aa dd dd ii ii nn nn tt tt ee ee rr rr vv vv aa aa ll ll 88 88 00 00 Changes the Dead Interval timer to 80 seconds. NOTE: Hello and Dead Interval timers must match for routers to become neighbors. Router(config)#ii ii pp pp rr rr oo oo uu uu tt tt ee ee 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ss ss 00 00 // // 00 00 Creates a default route. Router(config)#rr rr oo oo uu uu tt tt ee ee rr rr oo oo ss ss pp pp ff ff 11 11 Starts OSPF process 1. Router(config-router)#dd dd ee ee ff ff aa aa uu uu ll ll tt tt ii ii nn nn ff ff oo oo rr rr mm mm aa aa tt tt ii ii oo oo nn nn oo oo rr rr ii ii gg gg ii ii nn nn aa aa tt tt ee ee Sets the default route to be propagated to all OSPF routers. Verifying OSPF Configuration 97 Verifying OSPF Configuration Router(config-router)#dd dd ee ee ff ff aa aa uu uu ll ll tt tt ii ii nn nn ff ff oo oo rr rr mm mm aa aa tt tt ii ii oo oo nn nn oo oo rr rr ii ii gg gg ii ii nn nn aa aa tt tt ee ee aa aa ll ll ww ww aa aa yy yy ss ss The always option propagates a default “quad-zero” route even if one is not configured on this router. NOTE: The default-information originate command or the default- information originate always command is usually only to be configured on your “entrance” or “gateway” router, the router that connects your network to the outside world—the Autonomous System Boundary Router (ASBR). Router#ss ss hh hh oo oo ww ww ii ii pp pp pp pp rr rr oo oo tt tt oo oo cc cc oo oo ll ll Displays parameters for all protocols running on the router Router#ss ss hh hh oo oo ww ww ii ii pp pp rr rr oo oo uu uu tt tt ee ee Displays a complete IP routing table Router#ss ss hh hh oo oo ww ww ii ii pp pp oo oo ss ss pp pp ff ff Displays basic information about OSPF routing processes Router#ss ss hh hh oo oo ww ww ii ii pp pp oo oo ss ss pp pp ff ff ii ii nn nn tt tt ee ee rr rr ff ff aa aa cc cc ee ee Displays OSPF info as it relates to all interfaces Router#ss ss hh hh oo oo ww ww ii ii pp pp oo oo ss ss pp pp ff ff ii ii nn nn tt tt ee ee rr rr ff ff aa aa cc cc ee ee ff ff aa aa ss ss tt tt ee ee tt tt hh hh ee ee rr rr nn nn ee ee tt tt 00 00 // // 00 00 Displays OSPF information for interface fastethernet 0/0 Router#ss ss hh hh oo oo ww ww ii ii pp pp oo oo ss ss pp pp ff ff bb bb oo oo rr rr dd dd ee ee rr rr rr rr oo oo uu uu tt tt ee ee rr rr ss ss Displays border and boundary router information Router#ss ss hh hh oo oo ww ww ii ii pp pp oo oo ss ss pp pp ff ff nn nn ee ee ii ii gg gg hh hh bb bb oo oo rr rr Lists all OSPF neighbors and their states Router#ss ss hh hh oo oo ww ww ii ii pp pp oo oo ss ss pp pp ff ff nn nn ee ee ii ii gg gg hh hh bb bb oo oo rr rr dd dd ee ee tt tt aa aa ii ii ll ll Displays a detailed list of neighbors Router#ss ss hh hh oo oo ww ww ii ii pp pp oo oo ss ss pp pp ff ff dd dd aa aa tt tt aa aa bb bb aa aa ss ss ee ee Displays contents of the OSPF database Router#ss ss hh hh oo oo ww ww ii ii pp pp oo oo ss ss pp pp ff ff dd dd aa aa tt tt aa aa bb bb aa aa ss ss ee ee nn nn ss ss ss ss aa aa ee ee xx xx tt tt ee ee rr rr nn nn aa aa ll ll Displays NSSA external link states 98 Configuration Example: Single Area OSPF Troubleshooting OSPF Configuration Example: Single Area OSPF Figure 10-1 illustrates the network topology for the configuration that follows, which shows how to configure Single Area OSPF using commands covered in this chapter. Figure 10-9 Network Topology for Single Area OSPF Configuration Router#cc cc ll ll ee ee aa aa rr rr ii ii pp pp rr rr oo oo uu uu tt tt ee ee ** ** Clears entire routing table, forcing it to rebuild Router#cc cc ll ll ee ee aa aa rr rr ii ii pp pp rr rr oo oo uu uu tt tt ee ee aa aa bb bb cc cc dd dd Clears specific route to network a.b.c.d Router#cc cc ll ll ee ee aa aa rr rr ii ii pp pp oo oo pp pp ss ss ff ff cc cc oo oo uu uu nn nn tt tt ee ee rr rr ss ss Resets OSPF counters Router#cc cc ll ll ee ee aa aa rr rr ii ii pp pp oo oo ss ss pp pp ff ff pp pp rr rr oo oo cc cc ee ee ss ss ss ss Resets entire OSPF process, forcing OSPF to re-create neighbors, database, and routing table Router#dd dd ee ee bb bb uu uu gg gg ii ii pp pp oo oo ss ss pp pp ff ff ee ee vv vv ee ee nn nn tt tt ss ss Displays all OSPF events Router#dd dd ee ee bb bb uu uu gg gg ii ii pp pp oo oo ss ss pp pp ff ff aa aa dd dd jj jj aa aa cc cc ee ee nn nn cc cc yy yy Displays various OSPF states and DR/ BDR election between adjacent routers Router#dd dd ee ee bb bb uu uu gg gg ii ii pp pp oo oo ss ss pp pp ff ff pp pp aa aa cc cc kk kk ee ee tt tt ss ss Displays OPSF packets 172.16.10.10 172.16.30.30 172.16.50.50 s0/0 172.16.40.1 s0/0 172.16.20.1 Network 172.16.20.0/30 DCEDCE s0/1 172.16.40.2 s0/1 172.16.20.2 Network 172.16.40.0/30 Network 172.16.50.0/24 Network 172.16.10.0/24 Network 172.16.30.0/24 fa0/0 172.16.10.1 fa0/0 172.16.30.1 fa0/0 172.16.50.1 GalvestonHouston Austin Configuration Example: Single Area OSPF 99 Austin Router Router>ee ee nn nn aa aa bb bb ll ll ee ee Moves to privileged mode. Router#cc cc oo oo nn nn ff ff ii ii gg gg uu uu rr rr ee ee tt tt ee ee rr rr mm mm ii ii nn nn aa aa ll ll Moves to global configuration mode. Router(config)#hh hh oo oo ss ss tt tt nn nn aa aa mm mm ee ee AA AA uu uu ss ss tt tt ii ii nn nn Sets the host name. Austin(config)#ii ii nn nn tt tt ee ee rr rr ff ff aa aa cc cc ee ee ff ff aa aa ss ss tt tt ee ee tt tt hh hh ee ee rr rr nn nn ee ee tt tt 00 00 // // 00 00 Moves to interface configuration mode. Austin(config-if)#ii ii pp pp aa aa dd dd dd dd rr rr ee ee ss ss ss ss 11 11 77 77 22 22 11 11 66 66 11 11 00 00 11 11 22 22 55 55 55 55 22 22 55 55 55 55 22 22 55 55 55 55 00 00 Assigns an IP address and netmask. Austin(config-if)#nn nn oo oo ss ss hh hh uu uu tt tt dd dd oo oo ww ww nn nn Enables the interface. Austin(config-if)#ii ii nn nn tt tt ee ee rr rr ff ff aa aa cc cc ee ee ss ss ee ee rr rr ii ii aa aa ll ll 00 00 // // 00 00 Moves to interface configuration mode. Austin(config-if)#ii ii pp pp aa aa dd dd dd dd rr rr ee ee ss ss ss ss 11 11 77 77 22 22 11 11 66 66 22 22 00 00 11 11 22 22 55 55 55 55 22 22 55 55 55 55 22 22 55 55 55 55 22 22 55 55 22 22 Assigns an IP address and netmask. Austin(config-if)#cc cc ll ll oo oo cc cc kk kk rr rr aa aa tt tt ee ee 55 55 66 66 00 00 00 00 00 00 DCE cable plugged in this side. Austin(config-if)#nn nn oo oo ss ss hh hh uu uu tt tt dd dd oo oo ww ww nn nn Enables the interface. Austin(config-if)#ee ee xx xx ii ii tt tt Returns to global configuration mode. Austin(config)#rr rr oo oo uu uu tt tt ee ee rr rr oo oo ss ss pp pp ff ff 11 11 Starts OSPF process 1. Austin(config-router)#nn nn ee ee tt tt ww ww oo oo rr rr kk kk 11 11 77 77 22 22 11 11 66 66 11 11 00 00 00 00 00 00 00 00 00 00 22 22 55 55 55 55 aa aa rr rr ee ee aa aa 00 00 Any interface with an address of 172.16.10.x is to be put into area 0. Austin(config-router)#nn nn ee ee tt tt ww ww oo oo rr rr kk kk 11 11 77 77 22 22 11 11 66 66 22 22 00 00 00 00 00 00 00 00 00 00 22 22 55 55 55 55 aa aa rr rr ee ee aa aa 00 00 Any interface with an address of 172.16.20.x is to be put into area 0. Austin(config-router)#<< << cc cc tt tt rr rr ll ll >> >> zz zz Returns to privileged mode. Austin#cc cc oo oo pp pp yy yy rr rr uu uu nn nn nn nn ii ii nn nn gg gg cc cc oo oo nn nn ff ff ii ii gg gg ss ss tt tt aa aa rr rr tt tt uu uu pp pp cc cc oo oo nn nn ff ff ii ii gg gg Saves the configuration to NVRAM. 100 Configuration Example: Single Area OSPF Houston Router Router>ee ee nn nn aa aa bb bb ll ll ee ee Moves to privileged mode. Router#cc cc oo oo nn nn ff ff ii ii gg gg uu uu rr rr ee ee tt tt ee ee rr rr mm mm ii ii nn nn aa aa ll ll Moves to global configuration mode. Router(config)#hh hh oo oo ss ss tt tt nn nn aa aa mm mm ee ee HH HH oo oo uu uu ss ss tt tt oo oo nn nn Sets the host name. Houston(config)#ii ii nn nn tt tt ee ee rr rr ff ff aa aa cc cc ee ee ff ff aa aa ss ss tt tt ee ee tt tt hh hh ee ee rr rr nn nn ee ee tt tt 00 00 // // 00 00 Moves to interface configuration mode. Houston(config-if)#ii ii pp pp aa aa dd dd dd dd rr rr ee ee ss ss ss ss 11 11 77 77 22 22 11 11 66 66 33 33 00 00 11 11 22 22 55 55 55 55 22 22 55 55 55 55 22 22 55 55 55 55 00 00 Assigns an IP address and netmask. Houston(config-if)#nn nn oo oo ss ss hh hh uu uu tt tt dd dd oo oo ww ww nn nn Enables the interface. Houston(config-if)#ii ii nn nn tt tt ee ee rr rr ff ff aa aa cc cc ee ee ss ss ee ee rr rr ii ii aa aa ll ll 00 00 // // 00 00 Moves to interface configuration mode. Houston(config-if)#ii ii pp pp aa aa dd dd dd dd rr rr ee ee ss ss ss ss 11 11 77 77 22 22 11 11 66 66 44 44 00 00 11 11 22 22 55 55 55 55 22 22 55 55 55 55 22 22 55 55 55 55 22 22 55 55 22 22 Assigns an IP address and netmask. Houston(config-if)#cc cc ll ll oo oo cc cc kk kk rr rr aa aa tt tt ee ee 55 55 66 66 00 00 00 00 00 00 DCE cable plugged in this side. Houston(config-if)#nn nn oo oo ss ss hh hh uu uu tt tt dd dd oo oo ww ww nn nn Enables the interface. Houston(config)#ii ii nn nn tt tt ee ee rr rr ff ff aa aa cc cc ee ee ss ss ee ee rr rr ii ii aa aa ll ll 00 00 // // 11 11 Moves to interface configuration mode. Houston(config-if)#ii ii pp pp aa aa dd dd dd dd rr rr ee ee ss ss ss ss 11 11 77 77 22 22 11 11 66 66 22 22 00 00 22 22 22 22 55 55 55 55 22 22 55 55 55 55 22 22 55 55 55 55 22 22 55 55 22 22 Assigns an IP address and netmask. Houston(config-if)#nn nn oo oo ss ss hh hh uu uu tt tt dd dd oo oo ww ww nn nn Enables the interface. Houston(config-if)#ee ee xx xx ii ii tt tt Returns to global configuration mode. Houston(config)#rr rr oo oo uu uu tt tt ee ee rr rr oo oo ss ss pp pp ff ff 11 11 Starts OSPF process 1. Houston(config-router)#nn nn ee ee tt tt ww ww oo oo rr rr kk kk 11 11 77 77 22 22 11 11 66 66 00 00 00 00 00 00 00 00 22 22 55 55 55 55 22 22 55 55 55 55 aa aa rr rr ee ee aa aa 00 00 Any interface with an address of 172.16.x.x is to be put into area 0. One statement will now advertise all three interfaces. Houston(config-router)#<< << cc cc tt tt rr rr ll ll >> >> zz zz Returns to privileged mode. Houston#cc cc oo oo pp pp yy yy rr rr uu uu nn nn nn nn ii ii nn nn gg gg cc cc oo oo nn nn ff ff ii ii gg gg ss ss tt tt aa aa rr rr tt tt uu uu pp pp cc cc oo oo nn nn ff ff ii ii gg gg Saves the configuration to NVRAM. Configuration Example: Single Area OSPF 101 Galveston Router Router>ee ee nn nn aa aa bb bb ll ll ee ee Moves to privileged mode. Router#cc cc oo oo nn nn ff ff ii ii gg gg uu uu rr rr ee ee tt tt ee ee rr rr mm mm ii ii nn nn aa aa ll ll Moves to global configuration mode. Router(config)#hh hh oo oo ss ss tt tt nn nn aa aa mm mm ee ee GG GG aa aa ll ll vv vv ee ee ss ss tt tt oo oo nn nn Sets the host name. Galveston(config)#ii ii nn nn tt tt ee ee rr rr ff ff aa aa cc cc ee ee ff ff aa aa ss ss tt tt ee ee tt tt hh hh ee ee rr rr nn nn ee ee tt tt 00 00 // // 00 00 Moves to interface configuration mode. Galveston(config-if)#ii ii pp pp aa aa dd dd dd dd rr rr ee ee ss ss ss ss 11 11 77 77 22 22 11 11 66 66 55 55 00 00 11 11 22 22 55 55 55 55 22 22 55 55 55 55 22 22 55 55 55 55 00 00 Assigns an IP address and netmask. Galveston(config-if)#nn nn oo oo ss ss hh hh uu uu tt tt dd dd oo oo ww ww nn nn Enables the interface. Galveston(config-if)#ii ii nn nn tt tt ee ee rr rr ff ff aa aa cc cc ee ee ss ss ee ee rr rr ii ii aa aa ll ll 00 00 // // 11 11 Moves to interface configuration mode. Galveston(config-if)#ii ii pp pp aa aa dd dd dd dd rr rr ee ee ss ss ss ss 11 11 77 77 22 22 11 11 66 66 44 44 00 00 22 22 22 22 55 55 55 55 22 22 55 55 55 55 22 22 55 55 55 55 22 22 55 55 22 22 Assigns an IP address and netmask. Galveston(config-if)#nn nn oo oo ss ss hh hh uu uu tt tt dd dd oo oo ww ww nn nn Enables the interface. Galveston(config-if)#ee ee xx xx ii ii tt tt Returns to global configuration mode. Galveston(config)#rr rr oo oo uu uu tt tt ee ee rr rr oo oo ss ss pp pp ff ff 11 11 Starts OSPF process 1. Galveston(config-router)#nn nn ee ee tt tt ww ww oo oo rr rr kk kk 11 11 77 77 22 22 11 11 66 66 44 44 00 00 22 22 00 00 00 00 00 00 00 00 aa aa rr rr ee ee aa aa 00 00 Any interface with an exact address of 172.16.40.2 is to be put into area 0. This is the most precise way to place an exact address into the OSPF routing process. Galveston(config-router)#nn nn ee ee tt tt ww ww oo oo rr rr kk kk 11 11 77 77 22 22 11 11 66 66 55 55 00 00 11 11 00 00 00 00 00 00 00 00 aa aa rr rr ee ee aa aa 00 00 Any interface with an exact address of 172.16.50.2 is to be put into area 0. Galveston(config-router)#<< << cc cc tt tt rr rr ll ll >> >> zz zz Returns to privileged mode. Galveston#cc cc oo oo pp pp yy yy rr rr uu uu nn nn nn nn ii ii nn nn gg gg cc cc oo oo nn nn ff ff ii ii gg gg ss ss tt tt aa aa rr rr tt tt uu uu pp pp cc cc oo oo nn nn ff ff ii ii gg gg Saves the configuration to NVRAM. This page intentionally left blank PART V Switching Chapter 11 Configuring a Switch Chapter 12 VLANs Chapter 13 VLAN Trunking Protocol and Inter-VLAN Routing Chapter 14 STP and EtherChannel This page intentionally left blank [...]... 2 960 Switch(config-line)#login Enables password checking p 2 960 Switch(config-line)#password cisco Sets the password to cisco e 2 960 Switch(config-line)#exit Exits line console mode l 2 960 Switch(config-line)#line aux 0 Enters line auxiliary mode 108 Setting Interface Descriptions l 2 960 Switch(config-line)#login Enables password checking p 2 960 Switch(config-line)#password cisco Sets the password to cisco. .. Switch(config)#hostname 2 960 Switch Creates a locally significant host name of the switch This is the same command as the router 2 960 Switch(config)# Setting Passwords Setting passwords for the 2 960 series switches is the same method as used for a router e 2 960 Switch(config)#enable password cisco Sets the enable password to cisco e 2 960 Switch(config)#enable secret class Sets the encrypted secret password to class l 2 960 Switch(config)#line... cisco e 2 960 Switch(config-line)#exit Exits line auxiliary mode l 2 960 Switch(config-line)#line vty 0 4 Enters line vty mode for all five virtual ports l 2 960 Switch(config-line)#login Enables password checking p 2 960 Switch(config-line)#password cisco Sets the password to cisco e 2 960 Switch(config-line)#exit Exits line vty mode 2 960 Switch(config)# Setting IP Addresses and Default Gateways i 2 960 Switch(config)#interface... Figure 11-1 shows the network topology for the basic configuration of a 2 960 series switch using commands covered in this chapter Figure 11-1 Network Topology for 2 960 Series Switch Configuration Network 192. 168 .1.0/24 Bismarck Fa0/0 192. 168 .1.1 2 960 Switch Fa0/4 Workstation A 192. 168 .1.10 192. 168 .1.2 Fa0/1 Fa0/8 Workstation B 192. 168 .1.11 e switch>enable Enters privileged mode c switch#configure terminal... switch(config)#hostname 2 960 Sets the host name e 2 960 (config)#enable secret cisco Sets the encrypted secret password to cisco l 2 960 (config)#line console 0 Enters line console mode l 2 960 (config-line)#logging synchronous Appends commands to a new line; router information will not interrupt 114 Configuration Example l 2 960 (config-line)#login User must log in to console before use p 2 960 (config-line)#password... configure all 16 vty ports at the same time l 2 960 (config-line)#login User must log in to vty port before use p 2 960 (config-line)#password class Sets the password to class e 2 960 (config-line)#exit Moves back to global configuration mode i 2 960 (config)#ip default-gateway 192. 168 .1.1 Sets default gateway i 2 960 (config)#interface vlan 1 Moves to virtual interface VLAN 1 configuration mode i 2 960 (config-if)#ip... switch e 2 960 (config-line)#exec-timeout 0 0 Console will never log out e 2 960 (config-line)#exit Moves back to global configuration mode l 2 960 (config)#line aux 0 Moves to line auxiliary mode l 2 960 (config-line)#login User must log in to auxiliary port before use p 2 960 (config-line)#password class Sets the password to class e 2 960 (config-line)#exit Moves back to global configuration mode l 2 960 (config)#line... mode d 2 960 Switch(config-if)#duplex full Forces full-duplex operation d 2 960 Switch(config-if)#duplex auto Enables auto-duplex config d 2 960 Switch(config-if)#duplex half Forces half-duplex operation Setting Operation Speed i 2 960 Switch(config)#interface fastethernet 0/1 s 2 960 Switch(config-if)#speed 10 Forces 10-Mbps operation s 2 960 Switch(config-if)#speed 100 Forces 100-Mbps operation s 2 960 Switch(config-if)#speed... virtual interface for VLAN 1, the default VLAN on the switch i 2 960 Switch(config-if)#ip address 172. 16. 10.2 255.255.255.0 Sets the IP address and netmask to allow for remote access to the switch e 2 960 Switch(config-if)#exit i 2 960 Switch(config)#ip default-gateway 172. 16. 10.1 Allows IP information an exit past the local network TIP: For the 2 960 series switches, the IP address of the switch is just that—the... Descriptions i 2 960 Switch(config)#interface fastethernet 0/1 Enters interface configuration mode d 2 960 Switch(config-if)#description Finance VLAN Adds a description of the interface TIP: The 2 960 series switches have either 12 or 24 Fast Ethernet ports named fa0/1, fa0/2, fa0/24—there is no fastethernet 0/0 Configuring Static MAC Addresses 109 Setting Duplex Operation i 2 960 Switch2 960 Switch(config)#interface . packets 172. 16. 10.10 172. 16. 30.30 172. 16. 50.50 s0/0 172. 16. 40.1 s0/0 172. 16. 20.1 Network 172. 16. 20.0/30 DCEDCE s0/1 172. 16. 40.2 s0/1 172. 16. 20.2 Network 172. 16. 40.0/30 Network 172. 16. 50.0/24 Network 172. 16. 10.0/24 Network 172. 16. 30.0/24 fa0/0 172. 16. 10.1 fa0/0 172. 16. 30.1 fa0/0 172. 16. 50.1 GalvestonHouston Austin Configuration. 22 22 99 99 66 66 00 00 SS SS ww ww ii ii tt tt cc cc hh hh Creates a locally significant host name of the switch. This is the same command as the router. 2 960 Switch(config)# 2 960 Switch(config)#ee ee nn nn aa aa bb bb ll ll ee ee . ss ss yy yy nn nn cc cc hh hh rr rr oo oo nn nn oo oo uu uu ss ss Appends commands to a new line; router information will not interrupt. Workstation B 192. 168 .1.11 Network 192. 168 .1.0/24 Workstation A 192. 168 .1.10 192. 168 .1.1Fa0/0 192. 168 .1.2 Fa0/1 2 960 Switch Bismarck Fa0/8Fa0/4 114

Ngày đăng: 14/08/2014, 14:20

Tài liệu cùng người dùng

Tài liệu liên quan