Cấu hình Switch cơ bản

17 951 8
Cấu hình Switch cơ bản

Đ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

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).

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]: noPress RETURN to get started!00:04:13: %LINK-5-CHANGED: Interface Vlan1, changed state to administratively down00:04:14: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to downSwitch> *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ụ ủ ườ ố ế ộ promptB c 2:ướ vào privilidge mode xem c u hình m c đ nh c a ấ ặ ị ủswitchSwitch>enableSwitch#show running-configBuilding configuration .Current configuration : 1473 bytes!version 12.1no service padservice timestamps debug uptimeservice timestamps log uptimeno service password-encryption !hostname Switch!!ip subnet-zero!!spanning-tree mode pvstspanning-tree extend system-id!!!interface FastEthernet0/1 no ip address!interface FastEthernet0/2no 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 classlessip http server!!line con 0line 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 terminalEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#hostname VnproVnpro(config)#enable password ciscoVnpro(config)#enable secret classVnpro(config)#line console 0Vnpro(config-line)#password consoleVnpro(config-line)#loginVnpro(config-line)#^ZVnpro# 00:07:30: %SYS-5-CONFIG_I: Configured from console by consoleVnpro# Switch h tr các Virtual Line dùng cho các phiên telnet, C n c u hìnhỗ ợ ầ ấ password cho các line này m i th telnet vào Switch (trình t c u hình hớ ể ự ấ ỗ tr telnet s trình bày sau)ợ ẽĐ xem thông tin v các Virtual Line trên Switch: dùng l nh “ể ề ệ show line” Vnpro#show line Tty Typ Tx/Rx A Modem Roty AccO AccI Uses Noise Overruns Int* 0 CTY - - - - - 0 0 0/0 - 1 VTY - - - - - 0 0 0/0 - 2 VTY - - - - - 0 0 0/0 - 3 VTY - - - - - 0 0 0/0 - 4 VTY - - - - - 0 0 0/0 - 5 VTY - - - - - 0 0 0/0 - 6 VTY - - - - - 0 0 0/0 - 7 VTY - - - - - 0 0 0/0 - 8 VTY - - - - - 0 0 0/0 - 9 VTY - - - - - 0 0 0/0 - 10 VTY - - - - - 0 0 0/0 - 11 VTY - - - - - 0 0 0/0 - 12 VTY - - - - - 0 0 0/0 - 13 VTY - - - - - 0 0 0/0 - 14 VTY - - - - - 0 0 0/0 - 15 VTY - - - - - 0 0 0/0 - 16 VTY - - - - - 0 0 0/0 - C u hình password cho các line vtyấ *Ki m tra c u hình ể ấVnpro#show running-configBuilding configuration . Vnpro#config terminalEnter configuration commands, one per line. End with CNTL/Z.Vnpro(config)#line vty 0 4Vnpro(config-line)#password ciscoVnpro(config-line)#loginVnpro(config-line)#^ZVnpro#00:11:02: %SYS-5-CONFIG_I: Configured from console by console Current configuration : 1625 bytes!version 12.1no service padservice timestamps debug uptimeservice timestamps log uptimeno service password-encryption!hostname Vnpro!enable secret 5 $1$7G8x$sH4X2m4gt7I.7MdGHMZmw0enable password cisco!ip subnet-zero!!spanning-tree mode pvstspanning-tree extend system-id!!interface FastEthernet0/1no ip address !interface FastEthernet0/2 no ip address!interface FastEthernet0/3 no ip address interface Vlan1 no ip address shutdown!ip classlessip http server!!!line con 0 password console loginline vty 0 4 password cisco login [...]... u hình password cho các line vtyấ *Ki m tra c u hình ể ấ Vnpro#show running-config Building configuration Vnpro#config terminal Enter configuration commands, one per line. End with CNTL/Z. Vnpro(config)#line vty 0 4 Vnpro(config-line)#password cisco Vnpro(config-line)#login Vnpro(config-line)#^Z Vnpro# 00:11:02: %SYS-5-CONFIG_I: Configured from console by console end Switch# B... Ki m tra l i c u hình Vlanể ạ ấ Vnpro(config)#interface vlan 10 Vnpro(config-if)#exit Vnpro(config)# Vnpro(config)#interface vlan 20 Vnpro(config-if)#exit Vnpro(config)# Vnpro(config)#interface fastethernet0/2 Vnpro(config-if-range)#switchport access vlan 10 Vnpro(config-if-range)#exit Vnpro(config)#interface fastethernet0/3 Vnpro(config-if-range)#switchport access vlan 20 Vnpro(config-if-range)#exit ... ! end Vnpro# C u hình trên thi t b Cisco, m i dòng l nh do ng i dùng gõ vào, sau khi “enter” c uấ ế ị ỗ ệ ườ ấ hình h th ng s l p t c thay đ i.Vì v y, đ i v i các h th ng online, c n ph i h t s cệ ố ẽ ậ ứ ổ ậ ố ớ ệ ố ầ ả ế ứ c n th n, tr c khi thay đ i m t thông s nào đó c a thi t b , c n ph i sao l u l i c uẩ ậ ướ ổ ộ ố ủ ế ị ầ ả ư ạ ấ hình ban đ u đ th khơi ph c l i khi... khi thay đ i m t thông s nào đó c a thi t b , c n ph i sao l u l i c uẩ ậ ướ ổ ộ ố ủ ế ị ầ ả ư ạ ấ hình ban đ u đ th khơi ph c l i khi c n thi t.ầ ể ể ụ ạ ầ ế B c 4ướ : c u hình Vlan.ấ *Ki m tra c u hình Vlan m c đ nh trên Switch ấ ặ ị Vnpro#show vlan show vlan VLAN Name Status Ports 1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4 Fa0/5, Fa0/6, Fa0/7, Fa0/8 Fa0/9, Fa0/10,... 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# ... 101002 1500 - - - - - 0 0 1003 tr 101003 1500 - - - - - 0 0 1004 fdnet 101004 1500 - - - ieee - 0 0 1005 trnet 101005 1500 - - - ibm - 0 0 Remote SPAN VLANs Primary Secondary Type Ports ! 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 . ạ ế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. ườ ố ế ộ promptB c 2:ướ vào privilidge mode xem c u hình m c đ nh c a ấ ặ ị ủswitchSwitch>enableSwitch#show running-configBuilding configuration...Current

Ngày đăng: 09/10/2012, 15:14

Từ khóa liên quan

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

Tài liệu liên quan