1. 1 Catalyst Switch 4006



tải về 0.8 Mb.
trang8/8
Chuyển đổi dữ liệu14.08.2016
Kích0.8 Mb.
#18836
1   2   3   4   5   6   7   8

 

Ví dụ:


 

Console> (enable) set system name 4003-ER-F1

System name set.

4003-ER-F1> (enable) set system location Bldg 1 Equip Room

System location set.

4003-ER-F1> (enable) set system contact sysadmin@bigcorp.com

System contact set.

4003-ER-F1> (enable) set time 04/30/1999 9:45:00

Fri Apr 30 1999, 09:45:00

4003-ER-F1> (enable) set module name 2 Gig Uplinks

Module name set.

4003-ER-F1> (enable) set module name 3 Gig Server Links

Module name set.

4003-ER-F1> (enable) set password

Enter old password:

Enter new password:

Retype new password:

Password changed.

4003-ER-F1> (enable) set enablepass  

Enter old password:

Enter new password:

Retype new password:

Password changed.

4003-ER-F1> (enable)

 

3.7.3            Cấu hình Login Banner



Login banner còn gọi là  message of the day, là  thông báo sẽ hiện ra trên màn hình khi  bắt đầu một phiên Telnet hay Console vào switch Login bannercó thể ghi tối đa 255 ký tự.

 


Task

Command

Xác định login banner hay  message of the day

set banner motd c [text] c

 

Ví dụ:


 

Console> (enable) set banner motd %



4003-ER-F1 (Catalyst 4003)

Access Restricted

%

MOTD banner set

Console> (enable) exit

Session Disconnected...

 

 

Cisco Systems, Inc. Console           Thu Apr 30 1999, 16:37:03



 

 

 



4003-ER-F1 (Catalyst 4003)

Access Restricted

 

Enter password:



 

3.7.4            Cấu hình DNS

Domain Name System (DNS) cho phép bạn sử dụng hostnames thay cho IP addresses khi truy cập các thiết bị trên hệ thống mạng. Để sử dụng được  DNS bạn phải xác định một hay nhiều DNS server trên mạng.

 


Task

Command

Step 1 Xác định DNS server address.

set ip dns server ip_addr [primary]

Step 2 Xác định domain name.

set ip dns domain name

Step 3 cho phép DNS.

set ip dns enable

Step 4 Xác nhận cấu hình

show ip dns [noalias]

 

Ví dụ:


 

Console> (enable) set ip dns server 10.10.10.100

10.10.10.100 added to DNS server table as primary server.

Console> (enable) set ip dns domain bigcorp.com

Default DNS domain name set to bigcorp.com

Console> (enable) set ip dns enable

DNS is enabled

Console> (enable) show ip dns

DNS is currently enabled.

The default DNS domain name is: bigcorp.com

 

DNS name server                            status



----------------------------------------   -------

dns-server-1.bigcorp.com                   primary

Console> (enable)

 

3.7.5            Quản lý file cấu hình



File cấu hình chứa thông tin cấu hình của switch. Bạn thường phải xem cấu hình hiện tại, lưu giữ các cấu hình hiện tại trước khi thay đổi chúng hay cấu hình switch bằng các file cấu hình được được lưu giữ. Phần này sẻ giúp bạn thực hiện các công việc ấy.

 

Xem cấu hình hiện tại:



Task

Command

Hiển thị cấu hình hiện tại lên màn hình

show config

 

Ví dụ:


 

Console> (enable) show config

.....

..............



..............

..............

..

 

begin



!

#version 5.1(1)

!

set password $1$FMFQ$HfZR5DUszVHIRhrz4h6V70



set enablepass $1$FMFQ$HfZR5DUszVHIRhrz4h6V70

set prompt Console>

set length 24 default

set logout 20

set banner motd ^C

4003-ER-F1 (Catalyst 4003)

Access Restricted

^C

 



<...output truncated...>

 

end



Console> (enable)

 

Lưu giữ file cấu hình vào TFTP server:



Task

Command

Lưu giữ file cấu hình đối với switch 4000.

copy config tftp

 

Ví dụ:


 

Console> (enable) copy config tftp

IP address or name of remote host []? 10.10.10.150

Name of file to copy to []? 4003-ER-F1.cfg

 

Upload configuration to tftp:4003-ER-F1.cfg, (y/n) [n]? y



.....

..............

..............

..............

..

/

Configuration has been copied successfully.



Console> (enable)

 

Cấu hình switch bằng file cấu hình từ tftp server (có 2 cách)



Task

Command

Load cấu hình từ tftp server, cách 1.

copy tftp config

Load cấu hình từ tftp server, cách 2..

configure network

 

Ví dụ:


 

Console> (enable) copy tftp config

IP address or name of remote host []? 10.10.10.150

Name of file to copy from []? dns_config.cfg

 

Configure using tftp:dns_config.cfg (y/n) [n]? y



 

Finished network download.  (135 bytes)

>>

>> set ip dns server 10.10.10.100 primary



10.10.10.100 added to DNS server table as primary server.

>> set ip dns enable

DNS is enabled

>> set ip dns domain bigcorp.com

Default DNS domain name set to bigcorp.com

Console> (enable)

 

3.7.6            Quản lý System Image file.



System image file chính là file chứa IOS của switch, quyết định toàn bộ các tính năng của switch. Ta có thể lưu giữ hay cập nhật system image file khi có yêu cầu.

·       Catalyst 4000, 2948G, 2926G, and Supervisor Engine III, III F

 

Task

Command

Step 1 Copy system image file từ tftp server.

copy tftp flash

Step 2 Thay đổi các thông số boot hệ thống

set boot system flash file_id prepend

Step 3 Để chạy IOS mới, cần phải khởi động lại hệ thống

reset system

Step 4 Kiểm tra lại IOS.

show version

 

Ví dụ:


 

Console> (enable) copy tftp flash

IP address or name of remote host []? 10.10.10.150

Name of file to copy from []? cat4000.5-1-1.bin

Flash device [bootflash]?

Name of file to copy to [cat4000.5-1-1.bin]?

 

8784112 bytes available on device bootflash, proceed (y/n) [n]? y



CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC

CCCCCCCCCCCCCC

File has been copied successfully.

Console> (enable) set boot system flash bootflash:cat4000.5-1-1.bin prepend

BOOT variable = bootflash:cat4000.5-1-1.bin,1;bootflash:cat4000.4-4-1.bin,1;

Console> (enable) reset system

This command will reset the system.

Do you want to continue (y/n) [n]? y

1999 Mar 26 22:01:56 %SYS-5-SYS_RESET 0:00.505752: Please set IPAddr variable

0:00.506320: Please set Netmask variable

0:00.506675: Please set Broadcast variable

0:00.507176: Network is not configured

WS-X4012 bootrom version 4.4(1), built on 1998.12.28 10:22:22

H/W Revisions:    Meteor: 4    Comet: 8    Board: 2

Supervisor MAC addresses: 00:10:7b:f7:2f:00 through 00:10:7b:f7:32:ff (1024 addresses)

Installed memory: 32 MB

Testing LEDs.... done!

The system will autoboot in 5 seconds.

Type control-C to prevent autobooting.

rommon 1 >

The system will now begin autobooting.

Autobooting image: "bootflash:cat4000.5-1-1.bin"

CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC

CCCCCCCCCCCCCC###########################

Starting Off-line Diagnostics

 

<...output truncated...>

 

Cisco Systems, Inc. Console



 

 

4003-ER-F1



Access Restricted

 

 



 

Enter password:


Console> show version 1

Mod Port Model      Serial #              Versions

--- ---- ---------- -------------------- ---------------------------------

1   0    WS-X4012   JAB023806LN          Hw : 0.1

                                         Gsp: 5.1(1)

                                         Nmp: 5.1(1)

Console>

 

·       Supervisor Engine II



 

Task

Command

Step 1 Copy system image file từ tftp server.

download host file

Step 2 Reset lại switch

reset system

Step 3 Kiểm tra lại IOS

show version

 

3.7.7            Reset Module hay Switch

 

Task

Command

Reset module riêng lẻ

reset mod_num

 

Ví dụ


 

Console> (enable) reset 6

This command will reset module 2 and may disconnect your telnet session.

Do you want to continue (y/n) [n]? y

Resetting module 6...

Console> (enable) 05/30/1999,09:32:05:SYS-5:Module 6 reset from telnet/10.10.10.12/

 

05/30/1999,10:18:23:SYS-5:Module 6 is online



 

Console> (enable)

 

Task

Command

Reset toàn bộ switch

reset

 

Console> (enable) reset

This command will reset the system.

Do you want to continue (y/n) [n]? y

Console> (enable) 05/30/1999,10:24:46:SYS-5:System reset from Console//

 

 



System Bootstrap, Version 3.1(2)

Copyright (c) 1994-1997 by cisco Systems, Inc.



<... output truncated ...>

 

 



Phần hướng dẫn trên đy chỉ bao gồm các nội dung căn bản, thiết yếu khi cài đặt thiết bị switch Cisco 4000 vao hệ thống mạng. Các thông tin chi tiết về cấu hình hệ thống được trình by trong CD-ROM Documentation của Cisco được đi kèm theo mỗi thiết bị.


tải về 0.8 Mb.

Chia sẻ với bạn bè của bạn:
1   2   3   4   5   6   7   8




Cơ sở dữ liệu được bảo vệ bởi bản quyền ©hocday.com 2024
được sử dụng cho việc quản lý

    Quê hương