NHỮNG PHẦN MỀM GIẢ LẬP MẠNG TỐT NHẤT CHO DÂN HỌC QUẢN TRỊ MẠNG

Basic Switch Configurations Command

In this article I will introduce the Cisco Internetwork Operating System (IOS) comm& line interface (CLI) for the 2960 series switch. You will need to logon lớn a switch andbecome familiar with the different levels of access on the switch. You will also becomefamiliar with the commands available to lớn you in each mode (user or privileged) and theswitch help facility, history, và editing features.

Bạn đang xem: Những phần mềm giả lập mạng tốt nhất cho dân học quản trị mạng

User vs. Privileged Mode

User mode is indicated with the > next to lớn the switch name. You can look at settings butcan not make changes from user mode. In Privilege mode, indicated by the #, you can doanything. To get into privilege mode the từ khóa is enable.

HELP

To view all commands available from this mode type:?This will give you the danh mục of allavailable commands for the switch in your current mode. You can also use the questionmark after you have sầu started typing a commvà. For example if you want to lớn use a showcommand but you vày not remember which one it is, use the ? as this will output allcommands that you can use with the show command.

Configuration Mode

From privilege mode you can enter configuration mode by typing config term commandyou can exit configuration mode type type kết thúc or +z

Configuration of Cisteo 2960 Switch

To practically implement these comm& either create a simple topology on packet tracer or tải về this topology.


Example topology for basic switch commands
*
Now click on any switch và configure it as given below

To know all available comm& on user exec mode type ? & press enter

Switch>?Exec commands: <1-99> Session number lớn resume connect xuất hiện a terminal connection disconnect Disconnect an existing network connection enable Turn on privileged commands exit Exit from the EXEC logout Exit from the EXEC ping Skết thúc echo messagesThree commvà can be used lớn logout from terminal use any one

Switch>enableSwitch#disableSwitch>exitSwitch con0 is now availablePress RETURN lớn get started.Show version command will tell about the device platsize và detected interface & tiện ích ios name

Switch#show mac-address-table Mac Address Table-------------------------------------------Vlan Mac Address Type Ports---- ----------- -------- ----- 1 0001.643a.5501 DYNAMIC Gig1/1Run time configuration of ram can be any time by simple show run commands

Switch#show running-configBuilding configuration...Current configuration : 925 bytesversion 12.2no service password-encryption!hostname Switch<đầu ra is omitted>To view startup configuration < Stored in NVRAM> use show start command

Switch#show startup-configCurrent configuration : 925 bytesversion 12.2no service password-encryption!hostname Switchshow vlan commvà will give the detail overview of all vlan configured on switch

Switch#show vlanVLAN Name Status Ports---- -------------------------------- --------- -----------------------1 mặc định active sầu Fa0/1, Fa0/2, Fa0/3, Fa0/4 Fa0/5, Fa0/6, Fa0/7, Fa0/8 Fa0/9, Fa0/10, Fa0/11, Fa0/12 Fa0/13, Fa0/14, Fa0/15, Fa0/16 Fa0/17, Fa0/18, Fa0/19, Fa0/trăng tròn Fa0/21, Fa0/22, Fa0/23, Fa0/24show interface comm& will show all detected interface with their hardware mô tả tìm kiếm & configuration

Switch#show interfacesFastEthernet0/1 is up, line protocol is up (connected) Hardware is Lance, address is 0060.2f9d.9101 (bia 0060.2f9d.9101) MTU 1500 bytes, BW 100000 Kbit, DLY 1000 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation ARPA, loopback not set<đầu ra is omitted>interface vlan 1 is used khổng lồ assign ip address và default gateway to lớn switch. Show interface vlan 1 will give sầu a over view of vlan1.

Switch#show interface vlan1Vlan1 is administratively down, line protocol is down Hardware is CPU Interface, address is 0060.5c23.82ae (bia 0060.5c23.82ae) MTU 1500 bytes, BW 100000 Kbit, DLY 1000000 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation ARPA, loopbaông xã not set ARP. type: ARPA, ARP. Timeout 04:00:00delete commvà is used lớn delete all vlan configuration from switch Don’t add space between flash & vlan.dat Run this exactly shown here adding a space could erase flash entirely leaving switch blank

Switch#delete flash:vlan.datDelete filename ?Delete flash:/vlan.dat? %deleting flash:/vlan.datStartup configuration can be removed by erase commands

Switch#erase startup-configErasing the nvram filesystem will remove all configuration files!Continue? Erase of nvram: complete%SYS-7-NV_BLOCK_INIT: Initialized the geometry of nvramuse configure terminal commvà khổng lồ go in global configuration mode

Switch#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Now change default switch name khổng lồ switch 1

Switch(config)#hostname Switch1Set enable password to lớn vinita và secret lớn nikki

Switch1(config)#enable password vinitaSwitch1(config)#enable secret nikkiSet console password lớn vinita & enable it by login comm&, order of commvà is important phối password before you enable it

Switch1(config)#line console 0Switch1(config-line)#password vinitaSwitch1(config-line)#loginSwitch1(config-line)#exitEnable 5 telnet session < vty0 - vty4> for router & set their password lớn vinita

Switch1(config)#line vty 0 4Switch1(config-line)#password vinitaSwitch1(config-line)#loginSwitch1(config-line)#exitNow mix switch ip address to lớn 192.168.0.10 255.255.255.0 and default gateway khổng lồ 192.168.0.5

Switch1(config)#interface vlan1Switch1(config-if)#ip address 192.168.0.10 255.255.255.0Switch1(config-if)#exitSwitch1(config)#ip default-gateway 192.168.0.5Set a mô tả tìm kiếm finance VLAN khổng lồ interface fast Ethernet 1

Switch1(config)#interface fastEthernet 0/1Switch1(config-if)#mô tả tìm kiếm finance VLANBy default switch automatically negotiate tốc độ & duplex but you can adjust it manually

Switch1(config-if)#duplex full%LINK-5-CHANGED: Interface FastEthernet0/1, changed state khổng lồ down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state khổng lồ downSwitch1(config-if)#duplex auto%LINK-5-CHANGED: Interface FastEthernet0/1, changed state khổng lồ upSwitch1(config-if)#duplex half%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1,changed state khổng lồ down%LINK-5-CHANGED: Interface FastEthernet0/1, changed state khổng lồ upSwitch1(config-if)#duplex autoSwitch1(config-if)#speed 10Switch1(config-if)#speed 100Switch1(config-if)#speed autoSwitch1(config-if)#exitSwitch1(config)#exitmac address table can be wiped out by clear commands

Switch1#showSwitch1#show mac-address-table Mac Address Table-------------------------------------------Vlan Mac Address Type Ports---- ----------- -------- ----- 1 0001.643a.5501 DYNAMIC Gig1/1Switch1#clear mac-address-tableSwitch1#clear mac-address-table ? dynamic dynamic entry typeSwitch1#clear mac-address-table dynamicTo restart switch use reload comm& < running configuration will be erased so copy it first lớn startup configuration >

Switch1#reloadProceed with reload? Switch con0 is now availablePress RETURN to lớn get started.

CCNA basic switch configuration commands sheet

Commanddescriptions
switch>?The ? works here the same as in a router Used khổng lồ get the list of all available commands
switch>enableUser mode, same as a router
switch#Privileged mode
switch#disableLeaves privileged mode
switch>exitLeaves user mode
switch#show versionDisplays information about software và hardware.
switch#show flash:Displays information about flash memory (will work only for the 2900/2950 series).
switch#show mac-address-tableDisplays the current MAC address forwarding table.

Xem thêm: Hiện Tượng Lag Là Gì ? Lag Là Gì, Nghĩa Của Từ Lag

switch#show running-configDisplays the current configuration in DRAM.
switch#show startup-configDisplays the current configuration in NVRAM.
switch#show vlanDisplays the current VLAN configuration.
switch#show interfacesDisplays the interface configuration and status of line: up/up, up/down, admin down.
switch#show interface vlan1Displays setting of virtual interface VLAN 1, the default VLAN on the switch.
To Rephối Switch Configuration
Switch#delete flash:vlan.datRemoves the VLAN database from flash memory.
Delete filename ?Press Enter
Delete flash:vlan.dat? Press Enter
Switch#erase startup-configErases the file from NVRAM.
Switch#reloadRestarts the switch.
To Set Host Names
Switch#configure terminalMoves to lớn global configuration mode
Switch(config)#hostname Switch1Creates a locally significant host name of the switch. This is the same comm& as the router.
Switch1(config)#
To Set Passwords
Switch(config)#enable password vinitaSets the enable password to lớn vinita
Switch(config)#enable secret nikkiSets the encrypted secret password khổng lồ nikki
Switch(config)#line console 0Enters line console mode
Switch(config-line)#loginEnables password checking
Switch(config-line)#password vinitaSets the password khổng lồ vinita
Switch(config-line)#exitExits line console mode
Switch(config-line)#line vty 0 4Enters line vty mode for all five virtual ports
Switch(config-line)#loginEnables password checking
Switch(config-line)#password vinitaSets the password to lớn vinita
Switch(config-line)#exitExits line vty mode
Switch(config)#
To Set IP.. Addresses & Default Gateways
Switch(config)#interface vlan1Enters the virtual interface for VLAN 1, the default VLAN on the switch
Switch(config-if)#ip address 192.168.0.10 255.255.255.0Sets the IP address and netmask to allow for remote access khổng lồ the switch
Switch(config-if)#exit
Switch(config)#ip default-gateway 192.168.0.5Allows IP information an exit past the local network
To Set Interface Descriptions
Switch(config)#interface fastethernet 0/1Enters interface configuration mode
Switch(config-if)#mô tả tìm kiếm Finance VLANAdds a description of the interface
To Set Duplex Operation
Switch(config)#interface fastethernet 0/1Moves khổng lồ interface configuration mode
Switch(config-if)#duplex fullForces full-duplexoperation
Switch(config-if)#duplex autoEnables auto-duplex config
Switch(config-if)#duplex halfForces half-duplex operation
To Set Operation Speed
Switch(config)#interface fastethernet 0/1
Switch(config-if)#tốc độ 10Forces 10-Mbps operation
Switch(config-if)#tốc độ 100Forces 100-Mbps operation
Switch(config-if)#speed autoEnables autotốc độ configuration
MAC Address Table
switch#show mac address-tableDisplays current MACaddress forwarding table
switch#clear mac address-tableDeletes all entries fromcurrent MAC addressforwarding table
switch#clear mac address-table dynamicDeletes only dynamicentries from table

Copy from computernetworkingnotes.com.