실 습 router configuration

39
Router Configuration

Upload: hallam

Post on 15-Mar-2016

102 views

Category:

Documents


1 download

DESCRIPTION

실 습 Router Configuration. ( 기본 Command). clear ==> 라우터 설정값을 초기화 , 가상 단말기의 접속 강제 해제 , 라우팅 테이블의 초기화 . clock ==> 라우터의 시간과 날짜를 설정 copy ==> 환경값을 화일로 저장하거나 불러오고 , IOS 를 TFTP 서버로 보내거나 받는 작업을 위해 사용 - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: 실      습  Router Configuration

실 습 Router Configuration

Page 2: 실      습  Router Configuration

( 기본 Command)

clear ==> 라우터 설정값을 초기화 , 가상 단말기의 접속 강제 해제 , 라우팅

테이블의 초기화 .

clock ==> 라우터의 시간과 날짜를 설정

copy ==> 환경값을 화일로 저장하거나 불러오고 , IOS 를 TFTP 서버로 보내거나

받는 작업을 위해 사용

debug ==> 라우터 동작의 시스템 차원에서 추적이 가능하다 . 라우팅 테이블

교환이나 인터페이스의 상호간 교환하는 정보 메세지를 추적하여

비정상 적인 동작이나 오류를 찾아낸다 . Router load 에 많은 영향을

미치므로 사용시 주의해야 한다 .

reload ==> 전원 스위치를 이용 하지 않고 원격으로 재 부팅하는 경우 .

send ==> 라우터에 접속하고 있는 모든 터미날의 화면에 메세지 전송 .

show version ==> IOS 의 버전 , 부팅시간 , 메모리 종류 / 크기 , H/W 구성 정보

show Interface ==> 인터페이스의 종류 및 각종 종류

show configuration ==> NVRAM 에 저장된 configuration 을 보여줌

Page 3: 실      습  Router Configuration

write memory ==> memory 에서 현재 작동하는 configuration 을 NVRam 에 저장 .

write terminal ==> memory 에서 현재 작동하고 있는 Configuration 을 보여줌 .

show ip route ==> IP 의 routing Table 을 보여줌 .

show process ==> 라우터의 프로세스 Utilization 과 구동되고 있는 프로세스들

show arp ==> arp Table 을 보여줌 .

show memory ==> 라우터의 메모리 사용 현황

show buffer ==> 버퍼의 할당 상태와 상태 .

show user ==> 현재 Telnet 이나 Console 로 들어와 있는 사용자들의 현황 .

show line vty 0 ==> 접속된 가상단말기의 속도 및 단절 시간등을 표시

trace ==> 네트워크의 중간 경로 확인

ping ==> host 가 제대로 작동중인지 점검하는 명령어 .

Show cdp neighbor detail 인접한 cisco product 를 점검할 수 있는 명령어

( 기본 Command) 계속

Page 4: 실      습  Router Configuration

1. Console 및 Telnet Login

Console 접속Router>enablePassword:Router#

Telnet 접속unix_server% telnet 152.149.40.1User Access Verification

Password:Router>enablePassword:Router#

Password 를 입력하여도 보이지 않는다 .

Console 접속Router 의 console port 에 console cable 을 연결하여 단말기 (PC 나 Notebook) 의 serial port 와 연결한다 . 보통 속도는 9600, 8 data bits, No parity, 1 stop bit 로 단말기의 통신 프로그램 에서 설정하면 된다 . Router 를 처음 설정할 경우에는 console 을 이용하여야 한다 .

Telnet 접속Remote 에서 Router 에 접속하는 방법으로 telnet 응용 프로그램을 사용할수 있는 환경이면 된다 .

Page 5: 실      습  Router Configuration

2. Mode

EXEC Mode- User Mode

Router>- Privilege Mode

Router#Configuration Mode

- Global Configuration ModeRouter(config)#

- Interface Configuration ModeRouter(config-if)#

- HUB Configuration ModeRouter(config-hub)#

- Router Configuration ModeRouter(config-router)#

EXEC ModeRouter 에 관하여 Monitor 를 하거나 특정한 명령어를 실행하는 mode 이다 .

Configuration ModeConfiguration mode 에서는 router 에 필요한 값을 설정할 수 있다 .

Page 6: 실      습  Router Configuration

3. SETUP MODE

CommandRouter#setup

Setup Mode

• 라우터의 기본 특성을 대화 방식으로 처리 .• 초보자에게 편리• 주로 라우터의 초기 설치시 사용• 자세하고 부가적인 환경 설정은 지원 안됨

Page 7: 실      습  Router Configuration

4. HELP

Full HelpRouter#show ? read-calendar Read the hardware calendar into the clock set Set the time and date update-calendar Update the hardware calendar from the clock

Partial HelpRouter#a?access-enable access-template atmsig

Full HelpCommand 입력시 다음 command 를 모를경우 사용한다 . 이때 다음에 사용할 수 있는 command 와 함께 설명이 나타난다 .

Partial HelpCommand 중 입력부분까지 같은 command만 화면에 출력해준다 . 각각의 command 에 대한 설명은 나타나지 않는다 .

Page 8: 실      습  Router Configuration

5. 설정 값 보기 및 저장

Configuration 보기Router#show configuration Using 3034 out of 129016 bytes ! ! Last configuration change at 14:39:52 UTC Sat May 23 1998 ! NVRAM config last updated at 14:40:18 UTC Sat May 23 1998 ! version 11.1 service slave-log service timestamps debug datetime localtime service timestamps log datetime localtime service udp-small-servers service tcp-small-servers

Configuration 저장Router#write memoryRouter#copy running-config startup-config

…..

…..

Configuration 보기Router 에 설정된 값은 Router 내부에 있는 NVRam 에 저장된다 . NVRam 에 저장된 configuration 을 보는 명령어가 show configuration 이다 . 만일 현재 Router 의 memory 에서 설정된 값을 보려면 show running-config 명령을 사용해야 한다 .

Configuration 저장현재 router 주 memory 에 설정된 값을 NVRam 으로 저장하려면 write memory 나 copy running-config startup-config 를 이요하여야 한다 .

Page 9: 실      습  Router Configuration

6. Password 설정 Console Password (Console 접속 시 사용 ) Router#configure terminal Router(configure)#line console 0 Router(configure-line)#password router Terminal Password (Telnet 접속 시 사용 )

Router#configure terminalRouter(config)#line vty 0 4Router(config-line)#password router

Enable PasswordRouter#configure terminalRouter(config)enable password 12345

Enable SecretRouter#configure terminalRouter(config)enable secret 12345

PasswordTerminal password 는 remote 에서 user 가 접속 시 사용자 확인을 하는 경우에 사용한다 .

Enable password 와 enable secret 는 previlege mode 로 다시 접속할때 사용자를 확인하기 위해 사용한다 . Enable password 와 enable secret 중 enable secret 가 우선순위가 높다 . 즉 , enable secret 가 설정되어 있으면 enable secret 에 설정된 password 로 확인하고 만일 설정되어 있지 않으면 enable password 로 확인한다 .

Page 10: 실      습  Router Configuration

7. Ethernet Interface 설정 Ethernet Interface 설정 Mode

Router#configure terminalRouter(config)#interface ethernet 0Router(config-if)#ip address 210.99.1.1 255.255.255.0

Enable or disable 설정Router(config-if)#shutdownRouter(config-if)#no shutdown

Fast Ethernet Interface 설정

Enable or disableInterface 의 작동을 멈추기 위해서는 shutdown명령을 이용한다 . Interface 가 shutdown상태이면 interface 는 어떠한 data 의 송수신도 허용하지 않는다 . shutdown 명령은 사용시 매우 주의해야 한다 .

Shutdown 되어 있는 interface 를 다시 작동하게 하려면 no shutdown 명령을 이용한다 .

Page 11: 실      습  Router Configuration

8. Serial Interface 설정 Serial Interface 설정 Mode

Router#configure terminalRouter(config)#interface serial 0Router(config-if)#ip address 210.100.1.5 255.255.255.252

Encapsulation 설정Router(config-if)#encapsulation hdlcRouter(config-if)#encapsulation frame-relay

Bandwidth 설정Router(config-if)#bandwidth 2048

EncapsulationSerial interface 에서는 WAN 구간으로 data 를 전송하기 위해 다양한 protocol을 사용한다 . 따라서 어떠한 protocol을 사용하여 전송할 것인가를 결정하여 설정하여야 한다 . Protocol 에는 ppp, hdlc, frame-relay, sdlc, smds, x.25 등이 있다 .

BandwidthWAN 구간에 data 를 전송하는 속도를 설정하는 부분으로서 회선 속도 값을 입력하면 된다 . 즉 E1 의 경우 2048, T1 은 1544 값을 입력한다 . 단위는 Kbyte 이다 .

Page 12: 실      습  Router Configuration

9. Default route 설정 Default route 설정

Router#configure terminalRouter(config)#ip route 0.0.0.0 0.0.0.0 Next-hop_add

Router#configuration terminal Router(config)ip default-gateway Next-hop_add

Default routeRouter 는 routing table 에서 network address 가 최대한 일치하는 route 로 data를 전송한다 . 만일 routing table 에 없는 network 일 경우 default route 를 이용하여 전송한다 . 즉 , router 가 알지 못하는 network 인 경우 모두 default route 로 설정되어 있는 곳으로 전송한다 .

Page 13: 실      습  Router Configuration

10. Static route 설정 Static route 설정

Router#configure terminalRouter(config)#ip route Destination_add Next-hop_add

Floating Static Route 설정 Router#configure terminal Router(config)#ip route Destination_add Next-hop_add Router(config)#ip route Destination_add Next-hop_add administrative distance Router#configure terminal Router(configure)#ip route 0.0.0.0 0.0.0.0 Next-hop_add Router(configure)#ip route 0.0.0.0 0.0.0.0 Next-hop_add administrative distance

Static routeRouter 는 routing table 에서 network address 가 최대한 일치하는 route 로 data 를 전송한다 . 특정 Network 에 대한 정보를 Admin 이 직접 등록하는 방법 .

장점은 Router 의 cpu, memory 의 overhead 가 가장 적다 .

단점은 admin 이 일일이 routing table에 등록을 하여야 하며 , troubleshooting 에 어려움이 있다 .

Page 14: 실      습  Router Configuration

10. Static route 설정 ( 계속 )

Route Source Administrative DistanceConnected Interface 0Static Route 1EIGRP Summary Route 5External BGP 20EIGRP 90IGRP 100OSPF 110IS-IS 115RIP 120EGP 140External EIGRP 170Internal BGP 200Unknown 255

Page 15: 실      습  Router Configuration

10. Static route 설정 ( 계속 )

Load Sharing - Equal-cost

동일한 metrics 을 갖는 multiple path 에서 동일하게 traffic 의 부하분산

- Unequal-cost서로 다른 metrics 을 갖는 multiple path 사이에 packets 을 분산처리하여

부하분산 Router#configure terminal Router(config)#ip route 10.1.3.0 255.255.255.0 10.1.20.1 Router(config)#ip route 10.1.3.0 255.255.255.0 10.1.10.1

Router#configure terminal Router(config)#ip route 0.0.0.0 0.0.0.0 10.1.10.1 Router(config)#ip route 0.0.0.0 0.0.0.0 10.1.20.1

Load-SharingStatic Route 는 equal-cost Load-sharing을 지원한다 .

Process Switching 을 지원한다 .

Page 16: 실      습  Router Configuration

10. Static route 설정 ( 계속 )

Load Sharing - Per-Destination

목적지 address 별로 부하분산

- Per-Packetmultiple path 상에 각 path 별로 packet 을 전송하여 부하분산

Path Bandwidth 별로 packet 비율 조정

Fast/Process Switching Enable/Disable Router#configure terminal Router(config)#int s0 Router(config-if)#ip route-cache Router(config-if)#no ip route-cache

Load-SharingFast Switching 은 Cisco 라우터의 default switching mode

Per-Packet Load-Sharing/Balancing 은 Process Switching 지원

Page 17: 실      습  Router Configuration

10. Static route 설정 ( 계속 )

Processing Switching라우터에서 Packet 을 Switching 할 때 모든 Packet 별로 Routing Table 을 lookup 하여 목적지를 찾은 후 합당한 Interface 로 packet 을 switching

Fast Switching

라우터에서 Packet 을 Switching 할 때 처음 라우터로 들어오는 Packet 을Routing Table 에서 lookup 하여 목적지를 찾은 후 합당한 Interface 로 packet 을 switching 하고 , 그 정보를 라우터 Interface 에 Caching 한다 .다음 번 packet 부터 는 Caching 된 정보를 바탕으로 Routing Table 을 참조하지 않고 바로 Interface 로 switching

Page 18: 실      습  Router Configuration

11. Dynamic Routing

Path Determination

Routing Table 갱신을 통하여 각 라우터들은 최적의 경로를 설정한다 .라우팅 알고리즘은 목적지 네트웍으로 가는 각 패스를 위한 메트릭이라는 숫자를 만들어 낸다 . 일반적으로 메트릭 값은 더 작은 것이 좋은 패스이다 .

- Hop Count - 회선속도 (Bandwidth) - 전송지연 (Delay) - 회선신뢰도 (Reliability) - 회선사용량 (Load) - 비용 (Cost) - 최대전송단위 (MTU)

Page 19: 실      습  Router Configuration

11. Dynamic Routing

Distance Vector Routing Protocol

- 특정 링크에 대한 방향 (vector- 라우팅 업데이트 방향 )과 거리 (distance) 를 결정 - 전체 네트웍에 대한 정확한 토폴러지 정보까지는 가지 못한다 . - 특징

Periodic Updates Broadcast Updates Full Routing Table Updates

- RIP, IGRP, EIGRP

Page 20: 실      습  Router Configuration

11. Dynamic Routing( 계속 )

Link State Routing Protocol

- SPF(Shortest Path First) - 자신을 중심으로 한 전체 네트웍의 토폴로지를 그릴 수 있는 DB 를 갖는다 . - DB 를 이용하여 SPF Tree 를 생성 - SPF Tree 를 이용하여 Routing Table 을 유지 , 관리하며 Packet 에 대한 Switching 을 수행 - 각 라우터는 link state 패킷 (LSP) 을 보내 각 링크의 상태를 알려준다 . - 이 LSP 는 이웃한 모든 라우터에게 보내진다 . - LSP 를 받은 각 라우터는 이를 자신의 DB 에 저장하고 , 주위의 다른 라우터 에게 전파한다 . - LSP 에 의해 link state 데이터베이스에 변화가 생길 때마다 link state 알고리즘은 최적의 경로를 다시 산정하여 경로 표를 갱신한다 . - 특징

Link State Flooding Partial Routing Table Updates Fast Convergence

- OSPF, IS-IS

Page 21: 실      습  Router Configuration

12. RIP 설정 RIP routing protocol enable

Router#configure terminal

Router(config)#router ripRouter(config-router)

Network enableRouter(config-router)#network 210.99.1.0

RIPRIP(Routing Information Protocol) 는 hop count 를 기준으로 최적의 경로를 설정한다 . 즉 , 최소의 router 를 통과하는 path 가 제일 좋은 경로이다 .

매 30 초 마다 routing table 을 update 한다 .

만일 hop count 가 16 을 넘으면 그 route 는 접근 불가능으로 판단한다 . 또한 RIP 는 가변적인 subnetmask network 을 인식하지 못한다 .

Page 22: 실      습  Router Configuration

13. IGRP 설정 IGRP routing protocol enable

Router#configure terminalRouter(config)#router igrp 1400(as-number)Router(config-router)

Network enableRouter(config-router)#network 210.99.1.0

IGRPIGRP(Interior Gateway Routing Protocol) 는 Cisco 사에서 개발한 routing protocol 이다 . 기본적으로 IGRP 는 매 90초마다 update packet 을 전송한다 .

IGRP 는 같은 AS-number 를 갖는 IGRP 사이에서만 정보를 교환한다 .

Page 23: 실      습  Router Configuration

14. EIGRP 설정 EIGRP routing protocol enable

Router#configure terminalRouter(config)#router eigrp 1400(as-number)Router(config-router)

Network enableRouter(config-router)#network 210.99.1.0

EIGRPEIGRP(Enhanced Interior Gateway Routing Protocol) 는 Cisco 사에서 개발한 routing protocol 이다 . 기본적으로 EIGRP는 매 90 초마다 update packet 을 전송한다 .

EIGRP 는 같은 AS-number 를 갖는 EIGRP 사이에서만 정보를 교환한다 .

Page 24: 실      습  Router Configuration

15. OSPF 설정 OSPF routing protocol enable

Router#configure terminalRouter(config)#router ospf 100Router(config-router)

Network enableRouter(config-router)#network 210.99.1.0 0.0.0.255 area 0.0.0.0

Default route enableRouter(config-router)#default-information originate

OSPFOSPF(Open Shortest Path First) 는 최소의 hop count 로 경로를 결정하는 RIP 와는 달리 회선의 속도 load 등을 기준으로 최적의 경로를 산출하는 routing protocol이다 . OSPF 는 area 로 구분하는데 0.0.0.0 은 backbone area 이다 . Backbone area 주위로 다른 sub-area 가 연결되어 사용될 수 있다 . OSPF 는 만일 area 가 다르면 routing 정보를 서로 교환하지 않는다 .

OSPF 는 default route 에 관한 정보를 전송할 수 있다 . 즉 ISP 와 연결되는 router에서 default route 에 관한 정보를 발생시키면 OSPF area 가 같은 router 는 모두 default route 를 설정하지 않아도 ISP 와 연결된 router 로 default route 가 설정된다 .

Page 25: 실      습  Router Configuration

16. Route Redistribute

Route RedistributeRouter#configure terminalRouter(config)#router ripRouter(config-router)#redistribute static metric 1

Route Redistribute(rip-igrp)

Router#configure terminalRouter(config)#router igrp 100Router(config)#network 130.140.0.0Router(config-router)#redistribute rip Router(config-router)#default-metric 100000 100 255 1 1500 (B/W, delay, Reliability, load,MTU)Router(config)#router ripRouter(config-router)#network 130.130.0.0Router(config-router)#redistribute igrp 100Router(config-router)#default-metric 3(hop-count)

Route Redistribute하나의 Router 에는 여러개의 routing protocol 이 운용될 수 있다 . 때로는 서로 다른 routing protocol 에 의해 생성되는 route 정보를 포함해야 하는 경우가 발생한다 . 이런 경우에 사용하는 것이 redistribute 이다 .

Page 26: 실      습  Router Configuration

Access-List

Access-list

- Standard Access-list ip source address 를 검사하여 제어 Access-list 번호는 1~99

- Extended Access-list 다양한 조건을 검색하여 제어 ip source/destination address routing protocol(rip.igrp,……) internet layer protocol(ip,icmp,……) transport layer protocol(tcp, udp) application layer protocol(ftp-data,ftp, telnet, www,……) Access-list 번호는 100~199

Access-listCisco Router 에서 access-list 는 data filtering 을 담당한다 . 먼저 filtering 하고자 하는 것을 group 에 설정하고 이것을 어느 interface 에 적용할 것인가를 설정한다 .

Access-list 는 firewall 수준과 거의 동일한 기능이다 .

Page 27: 실      습  Router Configuration

Access-List 설정 Access-list 작성

- Standard Access-list 작성

Router#configure terminal Router(config)#access-list 10 deny 131.108.3.0 0.0.0.255 Router(config)#access-list 10 permit any any Router(config)#interface s0 Router(config-if)#ip access-group 10 [in/out]

- Extended Access-list 작성

Router#configure terminal Router(config)#access-list 120 permit tcp any 210.99.3.0 0.0.0.255 established

Router(config)#access-list 120 permit tcp any 210.99.3.0 0.0.0.255 eq telnetRouter(config)#access-list 120 deny tcp any any eq telnet

Access-listAccess-list 적용 시 interface mode 에서 적용한다 .

Incoming, outgoing 제어가 있다 .

Access-list 는 선언된 순서되로 조건을 검색

Access-list 작성시 좁은 범위의 조건을 먼저 선언

Access-list 작성시 빈번히 발생하는 조건을 먼저 선언

Access-list 의 맨 마지막은 특별히 선언을 하지 않는 한 defaut 로 deny any 가 선언 됨

Page 28: 실      습  Router Configuration

LAB 구성 (Static Route )

Gateway : 192.168.2.1/24

IP: 192.168.2.3/24

Gateway : 192.168.4.1/24

IP: 192.168.4.3/24E0 : 192.168.2.1/24

S0 : 192.168.1.2/26

S0 : 192.168.1.1/26

S1 : 192.168.3.1/26 S0 : 192.168.3.2/26

E0 : 192.168.4.1/24

E0 : 192.168.4.2/24

A B

C

D

Router#sh ip int brief

Router#sh ip route

Router#sh ip protocol

Router#sh int

Router#ping

Router#traceroute

Page 29: 실      습  Router Configuration

(Floating Static Route)

Gateway : 152.149.45.1/24

IP: 152.149.45.2/24

S1:152.149.47.1/24S0:152.149.46.1/24

S0:152.149.46.2/24

E0:152.149.45.1/24

S1:152.149.47.2/24

E0:152.149.44.1/24

E0:152.149.44.2/24

A

B

C

Page 30: 실      습  Router Configuration

(Load-Sharing)

Gateway : 152.149.45.1/24

IP: 152.149.45.2/24

S1:152.149.47.1/24S0:152.149.46.1/24

S0:152.149.46.2/24

E0:152.149.45.1/24

S1:152.149.47.2/24

E0:152.149.44.1/24

E0:152.149.44.2/24

A

B

C

Page 31: 실      습  Router Configuration

LAB 구성 (RIP 예제 )

Gateway : 172.16.2.1/24

IP: 172.16.2.3/24

Gateway : 172.16.4.1/24

IP: 172.16.4.3/24E0 : 172.16.2.1/24

S0 : 172.16.1.2/26

S0 : 172.16.1.1/26

S1 : 172.16.3.1/26 S0 : 172.16.3.2/26

E0 : 172.16.4.1/24

E0 : 172.16.4.2/24

A B

C

Router#sh ip int brief

Router#sh ip route rip

Router#sh ip protocol

Router#sh int

Router#ping

Router#traceroute

Page 32: 실      습  Router Configuration

LAB 구성 (IGRP/EIGRP 예제 )

Gateway : 192.168.2.1/24

IP: 192.168.2.3/24

Gateway : 192.168.4.1/24

IP: 192.168.4.3/24E0 : 192.168.2.1/24

S0 : 192.168.1.2/26

S0 : 192.168.1.1/26

S1 : 192.168.3.1/26 S0 : 192.168.3.2/26

E0 : 192.168.4.1/24

E0 : 192.168.4.2/24

A B

C

Router#sh ip int brief

Router#sh ip route igrp/eigrp

Router#sh ip protocol

Router#sh int

Router#ping

Router#traceroute

Page 33: 실      습  Router Configuration

LAB 구성 (OSPF 예제 )

Gateway : 192.168.2.1/24

IP: 192.168.2.3/24

Gateway : 192.168.4.1/24

IP: 192.168.4.3/24E0 : 192.168.2.1/24

S0 : 192.168.1.2/26

S0 : 192.168.1.1/26

S1 : 192.168.3.1/26 S0 : 192.168.3.2/26

E0 : 192.168.4.1/24

E0 : 192.168.4.2/24

S2 : 192.168.5.1/26S0 : 192.168.5.2/26

Gateway : 192.168.6.1/24

IP: 192.168.6.2/24

E0 : 192.168.6.1/26

A B

C

DRouter#sh ip int brief

Router#sh ip route

Router#sh ip route ospf

Router#sh ip protocol

Router#sh int

Router#ping

Router#traceroute

Page 34: 실      습  Router Configuration

첨부 6(Access-List 예제 )

E0 : 192.168.4.1/24

S1 : 192.168.3.1/26

S0 : 192.168.1.1/26

Gateway : 192.168.4.1/24

IP: 192.168.4.2/24

S0 : 192.168.1.2/26

E0 : 192.168.2.1/24

S0 : 192.168.3.2/26

Gateway : 192.168.2.1/24

IP: 192.168.2.2/24

• Standard Access-List

192.168.4.0 Network 을 Router A 에서 접근 금지

A B

C

Page 35: 실      습  Router Configuration

첨부 3 (show command Example)

v100sm#sh conf

Using 902 out of 32762 bytes

!

! Last configuration change at 11:31:32 UTC Fri Nov 21 1997

! NVRAM config last updated at 11:28:45 UTC Fri Nov 21 1997

!

version 11.2

!

hostname v100sm ==> 라우터의 이름

!

enable secret 5 $1$VaUC$FKJ03sGHt3tbAZC90ZnSN.

enable password 12345

!

buffers small permant 200 ==> 데이터 송수신시 사용하는 버퍼의 크기를 관리자가 정의

buffers middle permant 200 정의하지 않으면 기본값을 사용한다 .

buffers huge permant 10

!

interface Ethernet0

ip address 210.99.1.1 255.255.255.0 ==> IP 와 Subnet mask

ip accounting ==> Ethernet 의 사용량을 기록하기위함

interface Ethernet1

no ip address

shutdown ==> 관리자가 임의로 다운 시킴 .

!

interface Serial0

ip address 210.100.1.2 255.255.255.252

bandwidth 1544 ==> serial port bandwidth 설정 (T1)

!

interface Serial1

description This is a serial line 1 to seoul ==> 인터페이스의 용도에 주석을 달아 놓는다

ip address 210.100.1.5 255.255.255.252

Page 36: 실      습  Router Configuration

ip classless ==> 라우터가 CIDR 을 이해 하기 위한 선언부

ip route 0.0.0.0 0.0.0.0 210.100.1.1

ip route 210.99.4.0 255.255.255.0 210.99.1.6

==> 정적 라우팅을 사용하는데 210.99.4.0 네트웍을 가려면 , 210.99.1.6(serial 1)

인터페이스로 가야한다 .

ip subnet-zero ==> 서브넷을 했을 경우 서브넷도 사용하기 위한 명령

ip name-server 210.99.1.2 ==> 필요한 Name 서버를 등록해 놓고 사용

ip name-server 210.99.100.100 ==> 라우터에서 name service 기능을 지원한다 .

!

line con 0 ==> console Line

line aux 0

line vty 0 4

password 123 ===> 가상 단말기 (Telnet 0 ~ 4 : 5 개 ) 를 허용하며 ,

login 로그인을 허락하고 패스워드는 123 이다 .

!

End

Page 37: 실      습  Router Configuration

v100sm#show interface ethernet 0

Ethernet0 is up, line protocol is up ==> 정상적인 상태의 인터페이스

Hardware is Lance, address is 0060.4740.c4e2 (bia 0060.4740.c4e2)

Internet address is 152.149.95.94/27 ==> sebnet Mask Bit 수

MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec, rely 255/255, load 1/255

Encapsulation ARPA, loopback not set, keepalive set (10 sec)

ARP type: ARPA, ARP Timeout 04:00:00

Last input 00:00:00, output 00:00:00, output hang never

Last clearing of "show interface" counters never

Queueing strategy: fifo

Output queue 0/40, 0 drops; input queue 0/75, 0 drops

5 minute input rate 3000 bits/sec, 2 packets/sec

5 minute output rate 12000 bits/sec, 6 packets/sec

948151 packets input, 173700149 bytes, 0 no buffer

Received 517397 broadcasts, 0 runts, 0 giants

0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort

0 input packets with dribble condition detected

2735446 packets output, 615274034 bytes, 0 underruns

0 output errors, 59 collisions, 2 interface resets ==> 이더넷은 어느정도 충돌 예상함

0 babbles, 0 late collision, 196 deferred

0 lost carrier, 0 no carrier

0 output buffer failures, 0 output buffers swapped out

5 분동안의평균사용량

MTU : 최대 패킷 크기BW : 회선속도DLY : 전송 지연시간Rely : 회선 신뢰도Load : 회선 사용량

처리하지 못한 데이터량

Page 38: 실      습  Router Configuration

v100sm#sh ip route ==> 라우터가 가지고 있는 라우팅 정보들을 모두 보여 준다 .Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default

Gateway of last resort is 152.149.255.165 to network 0.0.0.0

152.149.0.0 is variably subnetted, 11 subnets, 4 masksC 152.149.97.96 255.255.255.224 is directly connected, Ethernet0S 152.149.95.64 255.255.255.224 [1/0] via 152.149.95.161O IA 152.149.46.16 255.255.255.240 [110/1796] via 152.149.255.165, 2d16, Serial0O 152.149.55.0 255.255.255.0 [110/1795] via 152.149.255.165, 2d16, Serial0 ==> 152.149.55.0 네트웍으로 data 를 전송하려면 serial 0 interface (152.149.255.165) 를 통하여 전송하여야 한다 . 대괄호의 110 은 OSPF 의 distance 값이며 , 1796 은 이경로의 메트릭 값을 표시한다 .

Page 39: 실      습  Router Configuration