Tr l i danh sách các bài vi tở ạ ế
C u hình Switch c b nấ ơ ả
Tác gi :Tr ng Quang Dũngả ươ
M c tiêu bài Labụ : Mô t cách th c c u hình các thông sả ứ ấ ố
c b n cho Catalys Switch v i giao di n comman prompt ơ ả ớ ệ
(cách c u hình này gi ng nhau đ i v i nhi u Series Catalys ấ ố ố ớ ề
Switch)
Dùng máy tr m k t n i v i Catalys Switch qua giao di n ạ ế ố ớ ệ
console, giao di n t nmg tác ng i dùng s d ng trình ệ ươ ườ ử ụ
Hiper Terminal (m t công c đu c Windows h tr )ộ ụ ợ ỗ ợ
B c 1ướ : kh i đ ng ngu n trên giao di n Hiper Terminalở ộ ồ ệ
hi n ra các thông s kh i t o trong quá trình kh i đ ngệ ố ở ạ ở ộ
Switch
% Please answer 'yes' or 'no'.
Would you like to enter the initial configuration
dialog? [yes/no]: no
Press RETURN to get started!
00:04:13: %LINK-5-CHANGED: Interface Vlan1,
changed state to administratively down
00:04:14: %LINEPROTO-5-UPDOWN: Line protocol
on Interface Vlan1, changed state to down
Switch>
*Ng i dùng s đ c h i n u mu n vào Config box đ c u ườ ẽ ượ ỏ ế ố ể ấ
hình t đ ng, tr l i ự ộ ả ờ NO
(vì m c đích c a ng i dùng là mu n vào ch đ Configụ ủ ườ ố ế ộ
prompt
B c 2:ướ vào privilidge mode xem c u hình m c đ nh c a ấ ặ ị ủ
switch
Switch>enable
Switch#show running-config
Building configuration...
Current configuration : 1473 bytes
!
version 12.1
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Switch
!
!
ip subnet-zero
!
!
spanning-tree mode pvst
spanning-tree extend system-id
!
!
!
interface FastEthernet0/1
no ip address
!
interface FastEthernet0/2
no ip address
!
interface FastEthernet0/3
no ip address
!
interface FastEthernet0/4
no ip address
!
interface FastEthernet0/5
no ip address
!
interface FastEthernet0/6
no ip address
!
interface FastEthernet0/7
no ip address
!
interface FastEthernet0/8
no ip address
!
interface FastEthernet0/9
no ip address
!
interface FastEthernet0/10
no ip address
!
interface FastEthernet0/11
no ip address
!
interface FastEthernet0/12
no ip address
!
interface GigabitEthernet0/1
no ip address
!
interface GigabitEthernet0/2
no ip address
!
interface Vlan1
no ip address
shutdown
!
ip classless
ip http server
!
!
line con 0
line vty 5 15
!
end
Switch#
B c 3ướ : thi t l p thông s :hostname, enable password, console password, vàế ậ ố
virtual terminal password
*Chú ý: các lo i password s d ng mang tính ch t Case Sensitive. Do đóạ ử ụ ấ
ng i dùng c n phân bi t các ký t s d ng:ch vi t hoa khác v i ch viêtườ ầ ế ự ử ụ ữ ế ớ ữ
th ngườ
VD: password Cisco khác v i ớ cisco
Switch#config terminal
Enter configuration commands, one per line. End with
CNTL/Z.
Switch(config)#hostname Vnpro
Vnpro(config)#enable password cisco
Vnpro(config)#enable secret class
Vnpro(config)#line console 0
Vnpro(config-line)#password console
Vnpro(config-line)#login
Vnpro(config-line)#^Z
Vnpro#
00:07:30: %SYS-5-CONFIG_I: Configured from console by
console
Vnpro#