sh run - ram info
sh start - nvram info
sh conf

// 복사
copy running-config startup-config = write

// 인터페이스 정보
show interfaces ehternet 0 - Layer1, Layer2

// 명령어 취소
명령 앞에 no 혹은 clear

sh cdp neighbors

라우터 텔넷 접속후 ctrl+shift+6 x 하면 자기 라우터로 돌아옴
resume 1 하면 다시 접속함

## sh ##
ip int brief - Layer1 Layer2 Layer3
ip route
logging - log
processes
memory
protocols

## 라우터 상호 통신하기 ##

// Router1 Router2 세팅
conf t
hostname r1
int s0
ip address 10.1.1.1 255.255.255.0
no shut
clock reate 64000
enc ppp
end
sh run
sh ip int brief

// Ethernet 세팅
conf t
int e0
ip address 192.168.1.1 255.255.255.0
no shut
end
sh ip int brief

// PC 세팅
ipconfig /ip 192.168.1.2 255.255.255.0
ipconfig /dg 192.168.1.1

// 네트워크 세팅
conf t
router rip
network 10.0.0.0
network 192.168.1.0
end

Router2도 위처럼 셋팅..

// 스위치
conf t
int vlan 1
ip address 192.168.1.4 255.255.255.0
no shut
end
sh ip int brief

description 

## 패스워드 설정 ##
line console 0 - 콘솔에 패스워드 설정 - enable 하기 전에도 패스워드 물어봄
login
passwd cisco

// 텔넷 패스워드
conf t
line vty 0 4 - 텔넷 접속 vty, con, aux
login
password cisco
end

'Network' 카테고리의 다른 글

PCAP 파일에서 UNIX 도구를 이용한 IP 주소 요약  (0) 2017.01.08
라우터 - Spanning Tree, Trunk Port  (0) 2017.01.08
라우터 패스워드 복구  (0) 2017.01.08
Routing Table  (0) 2017.01.08
TTL (Time To Live)  (0) 2017.01.08

ctrl+break
o/r 0x2142
en
conf t
enable secret cisco
config-register 0x2142
end
write
reload

sh run

패스워드 확인 enable secret ..................

sh flash

int atm 0/0

'Network' 카테고리의 다른 글

라우터 - Spanning Tree, Trunk Port  (0) 2017.01.08
라우터 설정  (0) 2017.01.08
Routing Table  (0) 2017.01.08
TTL (Time To Live)  (0) 2017.01.08
VoIP 개요, 구성도, 도입장점, 네트워크 구성도  (0) 2017.01.07

[root@s92 network-scripts]# route add -host 211.63.89.90 eth0
[root@s92 network-scripts]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
211.63.89.91    0.0.0.0         255.255.255.255 UH    0      0        0 eth0
211.63.89.90    0.0.0.0         255.255.255.255 UH    0      0        0 eth0
211.63.89.93    0.0.0.0         255.255.255.255 UH    0      0        0 eth0
211.238.132.0   211.63.89.1     255.255.255.0   UG    0      0        0 eth0
211.63.89.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth0
0.0.0.0         211.63.89.1     0.0.0.0         UG    0      0        0 eth0
[root@s92 network-scripts]#

[root@s92 network-scripts]# route add -net 211.238.133.0 netmask 255.255.255.0 gw 211.63.89.1 dev eth0
[root@s92 network-scripts]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
211.63.89.91    0.0.0.0         255.255.255.255 UH    0      0        0 eth0
211.63.89.90    0.0.0.0         255.255.255.255 UH    0      0        0 eth0
211.63.89.93    0.0.0.0         255.255.255.255 UH    0      0        0 eth0
211.238.133.0   211.63.89.1     255.255.255.0   UG    0      0        0 eth0
211.238.132.0   211.63.89.1     255.255.255.0   UG    0      0        0 eth0
211.63.89.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth0
0.0.0.0         211.63.89.1     0.0.0.0         UG    0      0        0 eth0

cf) 사설에서 사설로 접속할때 서버1에서 아래와 같이 세팅해준다.
[root@s92 network-scripts]# route add -net 172.16.30.0/24 gw 211.63.89.93 dev eth0

:: 삭제 방법
route del -net 211.63.89.0 netmask 25


'Network' 카테고리의 다른 글

라우터 설정  (0) 2017.01.08
라우터 패스워드 복구  (0) 2017.01.08
TTL (Time To Live)  (0) 2017.01.08
VoIP 개요, 구성도, 도입장점, 네트워크 구성도  (0) 2017.01.07
netstat 상태 설명  (0) 2017.01.06

+ Recent posts