IP Accounting 설정 방법
IP ACCOUNTING
─────────────────────────────────────────────
1. 내부 트래픽 확인 (IP Accounting은 output-packets만 적용)
Serial Interface 적용시 - 유출양 확인
Ethernet Interface 적용시 - 유입양 확인
2. 설정법
ROUTER#
ROUTER# config t
ROUTER(conf)# int s0 (또는 int e0)
ROUTER(conf-if)# ip accounting output-packets
ROUTER(conf-if)# ^z
ROUTER# sh ip accounting output-packets
Source Destination Packets Bytes
203.200.39.50 203.239.36.121 6 328
202.109.117.194 203.239.36.122 1 40
203.235.205.231 203.239.36.123 195 12849
202.109.117.194 203.239.36.124 1 40
203.235.205.231 203.239.36.125 832 51043
접속하는 IP들의 경로와 Packets양을 보여줍니다.
Accounting data age is 0 ----- 분 단위 (30이 넘어가지 않도록 주의한다)
3. 해지법
ROUTER#
ROUTER# config t
ROUTER(conf)# int s0 (또는 int e0) --- 설정했던 인터페이스
ROUTER(conf-if)# no ip accounting output-packets (앞에 no를 붙여준다)
ROUTER(conf-if)# ^z
ROUTER# sh ip accounting output-packets
더 이상 나타나지 않는다.
4. clear 방법
ROUTER# clear ip accounting
5. 주의사항
Encapsulation이 Frame-relay로 sub-interface로 설정이 되어 있을 경우
ROUTER(config)# int s0.1
ROUTER(config-subif)# ip accounting output-packets (해지시 앞에 no)
ROUTER(config-subif)# ^z
scripts --------
config t
interface FastEthernet0/1
ip accounting output-packets
exit
exit
sh ip accounting output-packets
config t
interface FastEthernet0/1
no ip accounting output-packets
exit
exit
clear ip accounting
config t
interface Hssi1/0
ip accounting output-packets
exit
exit
sh ip accounting output-packets
config t
interface Hssi1/0
no ip accounting output-packets
exit
exit
clear ip accounting