Cisco라우터 상태
* 사용자모드 & 관리자 모드 & 글로벌 모드
Router> <= 사용자모드(User Mode) : 장비의 상태확인에 사용 (privilege level 1)
Router>enable
Router# <= 관리자모드(Privilege Exec Mode) : 정보확인, 저장, 삭제, 초기화, Ping test, trace route, telnet, ssh 접속, debug 등등 (privilege level 15)
Router# conf t
Router(config)# <= 글로벌 모드(Global Mode) : 전반적인 설정 및 상세설정 모드
Router(config)# : do show ip route : 알고있는 네트워크 상태
Router(config)# : do show ip int brief : 라우터 인터페이스 설정 확인
Cisco라우터 IP 부여
Router(config)# : int gi0/0/0
Router(config-if)# : ip add 192.168.0.1 255.255.255.0
: ip add < ip 주소 > <서브넷마스크>
Router(config-if)# : no shutdown (no sh)
- 라우터에 장착된 물리적인 인터페이스는 기본적으로 shutdown 또는 administartively down 상태임
- no shutdown 명령어로 shutdown 명령어를 삭제하면 동작함
Cisco라우터 Static Routing
Router(config)# : ip route 200.200.200.0 255.255.255.0 se0/0/1
: ip route <라우팅 ip 대역> <서브넷마스크> <대상포트>
Cisco라우터 명령어 확인 및 취소
* 실행한 명령어 확인
Router# : show run
* 취소할 명령어
Router(config)# : no <명령어>
RIPv1 Routing Protocol
* 라우팅 프로토콜로 RIP를 사용할 것을 선언
Router(config)# : router rip
* network 명령어로 라우터에 직접 연결되어 있는 네트워크 주소를 입력
Router(config)# : network <네트워크 주소>
* rip 디버그
Router(config)# : debug ip rip
Router(config)# : un all (debug 종료)
* rip으로 인한 불필요한 포트 네트워크 전송 방지
Router(config)# : passive-interface gi0/0/0
: passive-interface <대상포트>
RIPv2 Routing Protocol
* RIPv2 선언
Router(config)# : version 2
EIGRP Routing Protocol
Router>enable
Router#conf t
Router(config)#router eigrp [as 번호]
Router(config-network)#network [네트워크 주소]
OSPF
Router(config)#router ospf Process-ID(1~65535)
Router(config-router)#router-id OSPF routerID(필수 값은 아님)
Router(config-router)#network network-address wildcard-mask area area-id
ex)
Router(config)#router ospf 1
Router(config-router)#router-id 1.1.1.1
Router(config-router)#network 200.200.200.1 0.0.0.0 area 0
* wildcard-mask는 subnet-mask의 반대로 생각하면 된다
반응형
'IT' 카테고리의 다른 글
[네트워크] 윈도우공유폴더 자동로그인 해제 (드디어 찾았다) (0) | 2022.11.04 |
---|---|
더미허브 vs 스위치허브 (0) | 2022.11.03 |
지윤테크 크레인m2s 개봉기 (2) | 2022.05.27 |
[gitlab] root 비밀번호 변경 (0) | 2022.01.21 |
[gitlab] root 비밀번호 변경 (0) | 2022.01.21 |