더블 클릭 시 (특수)문자, 숫자 선택 범위 조정

 

' "()[]<>,;#?!=

 

 

 

idle timeout 설정 (세션 유지 설정)

 

 

 

 

Scrollback buffer

 

 

D:\SecureCRT_Log\%H-%S-%Y-%M-%D_%h%m%s.log

 

1. USB에서 Switch의 bootflash에 image copy

switch# dir usb1:

switch# dir bootflash:

switch# copy usb1:aci-n9000-dk9.14.2.7f.bin bootflash:

 

2. NXOS 모드를 끄고, 지정한 ACI image를 사용하여 booting 하도록 설정 후  reload 

switch(config)# no boot nxos

switch(config)# boot aci bootflash:///aci-n9000-dk9.14.2.7f.bin

switch(config)# copy r s

switch(config)# reload

  * username admin password xxxx (계정이 없는 경우 설정)

  * reload 후 Loder 모드로 진입함.

 

3. ACI image로 booting

loader > dir

loader > boot aci-n9000-dk9.14.2.7f.bin

 

5. image 확인

(none)# copy usb/usb1/aci-n9000-dk9.14.2.7f.bin bootflash

(none)# show version

.........

  kickstart: version 14.2(7f) [build 14.2(7f)]
.........
  kickstart image file is: /bootflash/aci-n9000-dk9.14.2.7f.bin

(none)# dir bootflash

 

6. ACI 모드의 bootflash에 새 image가 있는지 확인
(none)# cat /mnt/cfg/0/boot/grub/menu.lst.local
(none)# cat /mnt/cfg/1/boot/grub/menu.lst.local

 

7. ACI 모드의 bootflash에 사용하고자 하는 image로 변경

(none)# setup-bootvars.sh aci-n9000-dk9.14.2.7f.bin

'네트워크 > OS' 카테고리의 다른 글

ACI OS USB install (ACI --> ACI)  (0) 2023.06.11
[NXOS] Nexus OS install (ICAM serivce 관련)  (0) 2023.02.03
[NXOS] Nexus C93180YC-EX - OS install (USB)  (0) 2023.02.02

-  라우팅 프로토콜에 의한 경로를 사용하지 않고, 트래픽을 특정 결로를 통해 라우팅 하는 경우 사용.

-  ACL에서 next-hop 주소를 설정하여 패킷을 포워딩하기 위해 사용.

-  next-hop은 최대 3개 까지 설정 가능.

- GRE 인터페이스에서 지원 가능.

- ACL 기반으로 ACL의 기존 규칙(ACE)과 일치하지 않는 패킷은 all drop 된다.

- permit rules만 가능.

- default-route는 지원하지 않음.

 

- ABF의 next-hop 상태 확인

show access-lists ipv4 abf nexthops client pfilter_ea location 0/3/CPU0

- ABF가 현재 라인 카드의 인터페이스에 연결되어 있는지 확인

show access-lists usage pfilter location all

highlight.zip
1.48MB

 

highlight.js

Usage highlight.js can be used in different ways such using CDNs, hosting the bundle yourself, as a Vue plug-in, as ES6 modules, with Node.js, and web workers. See our README on GitHub for more details. As a Module Highlight.js can be used with Node on the

highlightjs.org

 

■ highlightjs.js 사이트에서 코드블럭 테마를 다운받기

 

압축 해제

 

원하는 형식을 선택하여 적용된 모습을 확인 할 수 있다.

 

 

■ 티스토리에서 코드 문법 강조 해제

 

 

■ 스킨 편집

 

 

 

■ HTML 수정

</head> 윗 줄에 아래의 HTML에서 '테마네임.css'을 원하는 스타일의 파일명으로 변경 후 추가 및 적용

 

1
2
3
4
5
<!--코드블럭 monokai-sublime 시작-->
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.3.1/styles/테마네임.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.3.1/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
<!--코드블럭 monokai-sublime 끝-->
cs

 

 

 

 

■ 폰트 및 폰트사이즈 변경

CSS에서 아래의 CSS 코드를 제일 아래에 추가

pre code {
  font-family: "consolas", monospace;
  line-height: 1.3;
}
 
pre code.hljs {
  padding: 10px; margin: 15px 0; max-width: 100%;
    overflow-x: auto; overflow-y: hidden;  border-radius: 7px; line-height: 130%;
}
 
.hljs {
  white-space: pre;
  overflow-x: auto;
}

 

 

● running-config와 startup-config 구성 간의 차이를 출력,

*** (별) 로 시작하는 섹션은 Startup-config, --- (대시) 아래의 섹션은 Running-config

switch# sh run dif
*** Startup-config
--- Running-config
***************
*** 288,298 ****
  
  interface mgmt0
    vrf member management
  
  interface loopback0
!   ip address 1.1.1.1/24
  line console
  line vty
  

--- 287,297 ----
  
  interface mgmt0
    vrf member management
  
  interface loopback0
!   ip address 2.2.2.2/24
  line console
  line vty

 

● match 되는 행의 앞,뒤에 표시 할 행 수를 지정하여 running-config를 필터링하여 출력

N5k-UP# show running-config | grep prev 1 next 2 Firewall
interface Ethernet1/1
description Firewall – LAN
interface Ethernet1/2
--
interface Ethernet1/4
description Firewall - WAN
interface Ethernet1/5

 

● 한 번의 명령으로 여러개의 명령어 실행

NXOS-1# sh clo ; sh switchname ; sh license host-id
13:25:46.280 UTC Fri Feb 09 2024
Time source is NTP
NXOS-1 
License hostid: VDH=9BAZ0R47J6O
NXOS-1#

 

● 10진수 ↔ 16진수 변환

switch# hex 255
0xff
switch# dec 0xff
255

 

● 명령어 실행 지연

NXOS-1# sh clo ; sleep 5 ; sh clo
13:29:00.744 UTC Fri Feb 09 2024
Time source is NTP
13:29:05.761 UTC Fri Feb 09 2024
Time source is NTP

 

running-config 구성을 bootflash로 Redirect

NXOS-1# show running-config > backup_$(SWITCHNAME)_$(TIMESTAMP)
NXOS-1# 
NXOS-1# dir bootflash:
	.....
       4254    May 11 11:54:20 2024  backup_NXOS-1_2024-05-11-11.54.20

 

● configuration 스냅샷 및 rollback

NXOS-1# checkpoint ANNE
.Done
NXOS-1# sh checkpoint summary 
1) ANNE:
Created by admin
Created at Fri, 13:34:43 09 Feb 2024
Size is 22,658 bytes
User Checkpoint Summary
--------------------------------------------------------------------------------
Description: None

NXOS-1# 
NXOS-1# conf
Enter configuration commands, one per line. End with CNTL/Z.
NXOS-1(config)# host ANNE_TEST
ANNE_TEST(config)# end
NXOS-1# 
ANNE_TEST# sh diff rollback-patch checkpoint ANNE running-config 
Collecting Running-Config
Generating Rollback Patch
!!                                                                  
hostname ANNE_TEST

vdc ANNE_TEST id 1

ANNE_TEST#
ANNE_TEST#
ANNE_TEST# rollback running-config checkpoint ANNE 
ADVISORY: Rollback operation started...
Modifying running configuration from another VSH terminal in parallel
is not recommended, as this may lead to Rollback failure.

Collecting Running-Config
Generating Rollback patch for switch profile
Rollback Patch is Empty
Collecting Running-Config
Generating Rollback Patch
Executing Rollback Patch 
During CR operation,will retain L3 configuration
when vrf member change on interface
Generating Running-config for verification
Generating Rollback Patch

Rollback completed successfully.

NXOS-1# 
NXOS-1#

 

● CLI variables를 사용하여 TAC 정보를 압축된 .gz 파일로 특정 위치에 저장

NXOS-1# show cli variables
VSH Variable List (* = session vars)
-----------------
SWITCHNAME="NXOS-1"
TIMESTAMP="2024-02-11-11.16.29"
NXOS-1# 
NXOS-1# 
NXOS-1# tac-pac bootflash:$(SWITCHNAME)_$(TIMESTAMP)-show-tech-all.gz
Show tech detail can take more than 5 minutes to complete. Please Wait ...
2024 Feb 11 11:17:43 NXOS-1 %$ VDC-1 %$ %SECURITYD-2-FEATURE_ENABLE_DISABLE: User  has enabled the feature bash-shell
2024 Feb 11 11:17:44 NXOS-1 %$ VDC-1 %$ %SECURITYD-2-FEATURE_ENABLE_DISABLE: User  has disabled the feature bash-shell
NXOS-1# 
NXOS-1# 
NXOS-1# dir bootflash:
   .....
    6586243    Feb 11 11:19:46 2024  NXOS-1_2024-02-11-11.16.54-show-tech-all.gz
    7568071    Feb 11 12:46:32 2024  show_tech_out.gz
   .....
Usage for bootflash://sup-local
   .....
  copy bootflash://sup-local/backup.2024-03-07-11.48.22 tftp:1.1.1.1 vrf management

 

● 대소문자를 구분하지 않고 matching ( -i )

NXOS-2# sh int des | include -i test
Eth1/1        eth    10G     ## test-1 ##
Eth1/2        eth    10G     ## Test-2 ##


NXOS-2# sh int des | grep -i test
Eth1/1        eth    10G     ## test-1 ##
Eth1/2        eth    10G     ## Test-2 ##

 

● diff 인수를 사용하여 인터페이스 카운트 차이 확인

NXOS# show int eth1/10 | inc unicast | diff
2c2
< 175430277381 unicast packets 1264463 multicast packets 177 broadcast packets
---
> 175432920374 unicast packets 1264481 multicast packets 177 broadcast packets

 

● command history 확인

NXOS-1# show cli history config-mode 
 2  11:12:30     line con 
 3  11:12:33       ex 0
 4  11:12:34     exi
 5  11:12:38     no ip domain-lookup 
 6  11:12:47     host NXOS-1
 8  11:13:21     !CMD: PASSWORD statement not printed
26  11:24:24     feature bash-shell 
47  11:42:51     int eth1/1
48  11:42:59       des ## eth1/1 ##

 

● L3 설정을 유지한채 vrf member 설정

system vrf-member-change retain-l3-config

NXOS-1# ping 1.1.12.2 vr anNE count 20 interval 1
PING 1.1.12.2 (1.1.12.2): 56 data bytes
Request 0 timed out
64 bytes from 1.1.12.2: icmp_seq=1 ttl=254 time=3.158 ms
64 bytes from 1.1.12.2: icmp_seq=2 ttl=254 time=2.509 ms
Request 8 timed out
Request 9 timed out
64 bytes from 1.1.12.2: icmp_seq=10 ttl=254 time=3.811 ms
64 bytes from 1.1.12.2: icmp_seq=11 ttl=254 time=3.92 ms
^C
--- 1.1.12.2 ping statistics ---
14 packets transmitted, 11 packets received, 21.43% packet loss
round-trip min/avg/max = 2.197/3.478/4.87 ms

 

● CPU 사용량 2초 마다 출력

NXOS-1# show system internal processes cpu 2 | no-more

 

show running-config 후 --More-- 상태에서 ' / ' 입력하여 출력을 필터링한 다음 원하는 패턴을 검색

switch# show running-config 

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

/line
...skipping
line console
line vty

 

 

show interface brief | sort

 

● CRC count만 보는 명령어

show int | i is up|CRC

 

● 인터페이스에서 inpit error count만 보는 방법

show interface | section input error

show interface | include input_error

show interface | i up, line protocol is up|input error

show interface | inc FastEthernet|input error

show interface | inc line | CRC

IOS-XR의 Config Concept은 2단계 모델을 지원한다.

 

1단계. 사용자가 적용하고자 하는 configuration builds

  : 실행 전 명령어의 구문과 오류를 확인. (라우터의 동작에 영향 없음)

 

2단계. commit

  : 적용 대상의 configuration을 commit하여 실행.

 

** 적용 대상 configuraion 확인

  show configuration

  show commit changes diff

  show configuration merge (commit 후 실행 구성에 적용된 running-config 확인)

 

** commit 시 다음 이벤트 발생

  - commit change database에 구성 변경 사항을 저장하고 rollback 지점이 생선됨

  - configuration history에 commit changes 항목 추가됨

  - syslog에 구성 변경 log 생성

(config[65723]: %MGBL-CONFIG-6-DB_COMMIT : Configuration committed by user 'anne'. Use 'show configuration commit changes 1000000005' to view the changes.)

  - running config에 통합됨

  - commit 후 commit change ID가 할당되고 이 commit ID를 통해 변경 사항을 확인하고 rollback을 할 수 도 있다.

 

ex) RP/0/0/CPU0:ios#show configuration commit changes ?
  all         Display configurations committed for all commits
  last        Changes made in the most recent <n> commits
  since       Changes made since (and including) a specific commit
  1000000002  Commit ID
  1000000001  Commit ID

 

RP/0/0/CPU0:ios#show configuration commit changes 1000000001 diff 
Tue Feb  6 08:33:34.090 UTC
Building configuration...
!! IOS XR Configuration 6.1.3
#  interface GigabitEthernet0/0/0/0
  +   ipv4 address 1.1.1.1 255.255.255.0
  -   shutdown
  -  !
     end

 

RP/0/0/CPU0:ios#rollback configuration ?  
  last        Rollback last <n> commits made
  to          Rollback up to (and including) a specific commit
  to-exclude  Rollback up to (and excluding) a specific commit
  1000000002  Commit ID
  1000000001  Commit ID

EVE-NG-Win-Client-Pack설치해도 image 실행 시 SecureCRT 연동이 안되는 경우 중 하나.

앱의 기본값을 확인해서 SecureCRT가 기본 앱으로 되어있는지 확인.

 

 

 

 

'EVE-NG' 카테고리의 다른 글

[EVE-NG] Fortigate (fortinet-FGT-v6-build1010)  (0) 2025.02.12
[EVE-NG] Juniper vQFX 설치  (0) 2025.02.11
[EVE-NG] Cisco vIOS L3 Switch 설치  (2) 2023.12.06
[EVE-NG] Cisco vIOS Router 설치  (1) 2023.12.06
[EVE-NG] Cisco NXOS 설치  (1) 2023.12.06

+ Recent posts