실무자 입장에서 알아두면 유용한 명령어 몇개를 정리해 봅니다.
머.. 다들 알고 계시는 내용입니다만...^^;
[1] config 내용볼때 라인 번호 나오게하기
zero-7206vxr#sh run linenum
Building configuration...
Current configuration : 9355 bytes
1 : !
2 : ! Last configuration change at 16:23:26 KST Tue Jan 24 2006
3 : ! NVRAM config last updated at 16:23:27 KST Tue Jan 24 2006
4 : !
5 : version 12.2
6 : no service pad
7 : service timestamps debug uptime
8 : service timestamps log datetime localtime
9 : service password-encryption
10 : !
11 : hostname 7206vxr
12 : !
13 : boot system disk2:/c7200-p-mz.122-15.T10.bin
14 : boot bootldr bootflash:c7200-kboot-mz.122-4.BW
15 : logging queue-limit 100
16 : enable secret 5 $1$07px$nEhWhCf0F4SJmYHZ/zfaj/
17 : !
18 : clock timezone KST 9
[2] config에서 특정 부분만 골라서 보기
zero-4500sw#sh run | ?
begin Begin with the line that matches
exclude Exclude lines that match
include Include lines that match
zero-4500sw#sh run | in Null
ip route 192.107.128.0 255.255.240.0 Null0
ip route 192.107.248.0 255.255.252.0 Null0
ip route 192.69.176.0 255.255.240.0 Null0
zero-4500sw#sh run | be bgp
router bgp 1818
no synchronization
bgp log-neighbor-changes
neighbor 어쩌구 저쩌구..
...
...
neighbor 어쩌구 저쩌구..
no auto-summary
....
[3] 인터페이스 간략 정보보기
zero-Router#sh ip int bri
Interface IP-Address OK? Method Status Protocol
FastEthernet0/1 192.168.0.1 YES NVRAM up up
FastEthernet0/2 unassigned YES NVRAM administratively down down
Serial1/0 unassigned YES NVRAM administratively down down
Serial1/1 192.75.169.2 YES NVRAM up up
[4] 화면에서 more 없이 보기 : config 백업시 유용함, 해당 세션만 유효. 다음 접속시 원래대로됨
zero-4500sw#terminal length ?
<0-512> Number of lines on screen (0 for no pausing)
zero-4500sw#terminal length 0
zero-4500sw#terminal no length
zero-4500sw#sh terminal
Line 1, Location: "", Type: "ANSI"
Length: 24 lines, Width: 80 columns
Baud rate (TX/RX) is 9600/9600
..........