|
|
 |
즐겨찾는곳 |
|
 |
|
| S |
M |
T |
W |
T |
F |
S |
| 28 |
1 |
2 |
3 |
4 |
5 |
6 |
| 7 |
8 |
9 |
10 |
11 |
12 |
13 |
| 14 |
15 |
16 |
17 |
18 |
19 |
20 |
| 21 |
22 |
23 |
24 |
25 |
26 |
27 |
| 28 |
29 |
30 |
31 |
1 |
2 |
3 |
|
 |
79992 | 187 | 28
|
|
|
 |
|
|
 |
|
 |
|
|
volume group확인: pvdisplay /dev/hdd2 volume group활성화: vgchange -a y VolGroup00 logical volume확인: lvdisplay -v /dev/VolGroup00 logical volume mount: mount -t ext3 /dev/VolGroup00/LogVol00 /mnt/hdd |
|
# 라우터 초기화 하기 Router>en Router#erase startup-config
Erasing the nvram filesystem will remove all configuration files! Continue? [confirm] <enter>
[OK] Erase of nvram: complete
Router#reload Proceed with reload? [confirm] <enter>
## 라우터에 각 정보 확인하기 위한 명령어들...
>> Flash에 IOS 정보 확인하기
Router#show flash
System flash directory: File Length Name/status 1 16124776 /c2500-jk8s-l.122-1d.bin [16124840 bytes used, 652376 available, 16777216 total] 16384K bytes of processor board System flash (Read ONLY)
>> DRAM에 Active Config File 정보 보기
Router#show running-config 단축명령: sh run
Router#sh run Building configuration...
Current configuration : 572 bytes ! version 12.2 no service single-slot-reload-enable service timestamps debug uptime service timestamps log uptime no service password-encryption ! hostname Router <생략> .....
>> VNRAM에 Backup Config File 정보 보기
Router#show startup-config 단축명령: sh star
Router#sh start Using 565 out of 32762 bytes ! version 12.2 no service single-slot-reload-enable service timestamps debug uptime service timestamps log uptime no service password-encryption ! hostname Router <생략> .......
>> 라우터에 하드웨어 및 소프웨어 정보를 확인하는 명령
Router#show version 단축명령: sh ver Router#sh ver Cisco Internetwork Operating System Software IOS (tm) 2500 Software (C2500-JK8S-L), Version 12.2(1d), RELEASE SOFTWARE (fc1) Copyright (c) 1986-2002 by cisco Systems, Inc. Compiled Sun 03-Feb-02 18:14 by srani Image text-base: 0x0307C2FC, data-base: 0x00001000
ROM: System Bootstrap, Version 5.2(8a), RELEASE SOFTWARE BOOTFLASH: 3000 Bootstrap Software (IGS-RXBOOT), Version 10.2(8a), RELEASE SOFTWARE (fc1)
Router uptime is 5 minutes System returned to ROM by power-on System image file is "flash:/c2500-jk8s-l.122-1d.bin"
cisco 2509 (68030) processor (revision D) with 16384K/2048K bytes of memory. Processor board ID 01756284, with hardware revision 00000000 Bridging software. X.25 software, Version 3.0.0. SuperLAT software (copyright 1990 by Meridian Technology Corp). TN3270 Emulation software. 1 Ethernet/IEEE 802.3 interface(s) 2 Serial network interface(s) 8 terminal line(s) 32K bytes of non-volatile configuration memory. 16384K bytes of processor board System flash (Read ONLY)
Configuration register is 0x2102
>> Terminal (작업창) 설정 상태 확인 명령
Router#show terminal 단축명령: sh ter
Router#show term Line 0, Location: "", Type: "" Length: 24 lines, Width: 80 columns Status: PSI Enabled, Ready, Active, Automore On Capabilities: none Modem state: Ready Group codes: 0 Special Chars: Escape Hold Stop Start Disconnect Activation ^^x none - - none Timeouts: Idle EXEC Idle Session Modem Answer Session Dispatch 00:10:00 never none not set Idle Session Disconnect Warning never Login-sequence User Response 00:00:30 Autoselect Initial Wait not set Modem type is unknown. Session limit is not set. Time since activation: 00:04:03 Editing is enabled. History is enabled, history size is 10. DNS resolution in show commands is enabled Full user help is disabled Allowed input transports are none. Allowed output transports are lat pad v120 mop telnet rlogin nasi. Preferred transport is lat. No output characters are padded No special data dispatching characters
>> History Buffer 정보 보기 Router#show history Router#sh his en sh flash sh run sh start sh ver show term sh his Router#
********************************** 라우터 기초 설정을 위한 기본 명령어 ********************************** >> Hostname 설정 Router#conf t Router(config)#hostname R1 R1(config)#
>> UserMode -> PrivilegedMode로 이동시 암호 제어하기
R1(config)#enable ? last-resort Define enable action if no TACACS servers respond password Assign the privileged level password secret Assign the privileged level secret use-tacacs Use TACACS to check enable passwords
예제> Router(config)#enable secret cisco ! 암호화된 문자로 기본 저장된다.
R1(config)#enable password 12345 ! password로 할당한 암호는 기본적으로 암호화 되지 않고 저장된다.
R1(config)#service password-encryption ! Password로 할당한 암호화되지 않은 문자를 암호화 해준다.
>> Console Log 동기화 하기 R1(config)#line console 0 R1(config-line)#logging synchronous
>> Console에 Timeout 시간 변경 R1(config)#line console 0 R1(config-line)#exec-timeout 8 0
****************** Interface 구성하기 ******************
Ethternet/fastethernet/serial/loopback
>>>> 라우터에 인터페이스 요약정보를 확인하기 R1#show ip interface brief ! 현재 라우터에 각 인터페이스 Name, IP, State를 보여준다.
>> LAN Interface
> Ethernet Inetface (10baseT) R1(config)#interface ethernet 0 단축명령: int e0 R1(config-if)#ip address <IP> <subnetmask> R1(config-if)#no shutdown ! 인터페이스 활성화
> Fastethernet (100BaseTx) R1(config)#interface fastethernet 0/0 R1(config-if)#ip address <IP> <subnetmask> R1(config-if)#speed {auto|100|10} R1(config-if)#duplex {auto|Full|Half} R1(config-if)#no shutdown
>> WAN Interface Serial interface는 Leased-Line/Frame-relay/X25 와 같은 네트워크에 연결해서 사용한다.
> DTE Type Serial Interface 설정 R1(config)#interface serial 0 R1(config-if)#ip address <IP> <Subnetmask> R1(config-if)#encapsulation {HDLC|PPP|Frame-relay...} R1(config-if)#bandwidth 1024 ! 설정하지 않으면 1544k 가 기본값이다. R1(config-if)#no shutdown
> DCE Type Serial Interface 설정 R1(config)#interface serial 0 R1(config-if)#ip address <IP> <Subnetmask> R1(config-if)#encapsulation {HDLC|PPP|Frame-relay...} R1(config-if)#bandwidth 1024 ! 설정하지 않으면 1544k 가 기본값이다. R1(config-if)#clock rate 1000000 ! speed를 기준으로 bps 단위로 List에 있는 값을 할당. R1(config-if)#no shutdown
*** DCE/DTE Type Cable을 구분하는 방법
R1#sh controllers serial 0 HD unit 0, idb = 0x27326C, driver structure at 0x27A830 buffer size 1524 HD unit 0, V.35 DTE cable cpb = 0x1, eda = 0x4940, cda = 0x4800
>> Logical Interface (가상인터페이스)
> Loopback Interface (생성후 설정을 한다.) R1(config)#interface loopback 0 R1(config-if)#ip address <IP> <subnetmask>
[출처] CISCO IOS 기본 명령어 |작성자 노막 |
|
shell>rpm -Uvh *.src.rpm
shell>cd /usr/src/배포판이름/SPEC
shell>rpmbuild -ba *.SPEC
shell>cd /usr/src/배포판이름/RPMS/i386
|
태그: src rpm |
|
|
 |
|
 |
www.superuser.co.kr
|
|