From: Dmitry Lebkov <dima@sakhalin.ru>
To: community@altlinux.ru
Subject: Re: [Comm] Cisco help need
Date: Wed, 20 Aug 2003 14:41:04 +1100
Message-ID: <20030820144104.1c17e0e2.dima@sakhalin.ru> (raw)
In-Reply-To: <20030820090530.5b6d8411.gosha@zkb.ru>
On Wed, 20 Aug 2003 09:05:30 +0600
Gosha <gosha@zkb.ru> wrote:
> Hi!
> On Wed, 20 Aug 2003 09:58:28 +1100
> Dmitry Lebkov <dima@sakhalin.ru> wrote:
>
> > > но вот что я не пойму никак. Все что я прочитал всегда
> > > подразумевает следующее - на цискином интерфейсе включается:
> > >
> > > (config-if)# ip accounting output-packets
> >
> > (config-if)# ip accounting ?
> >
> > Покажет тебе кое что интересное %) С помощью ip-accounting'а
>
> Дык вот и кажет:
>
> (config-if)#ip accounting ?
> access-violations Account for IP packets violating access lists
> on
> this interface
> output-packets Account for IP packets output on this interface
> precedence Count packets by IP precedence on this
> interface<cr>
>
> То бишь - "Account for IP packets output..."
Дык если я ничего не путаю, указав просто 'ip accounting' получишь
подсчет как входящего так и исходящего трафика на интерфейсе.
> > можно считать как входящий, так и исходящий трафик на интерфейсе.
> > А вот с NetFlow - только в одну сторону (на вскидку сразу и не
> > вспомню какой - In или Out :).
>
> как раз Out.
>
> > > Кто-нибудь может разъяснить что-нибудь по этому поводу?
> >
> > Дык у тебя роутер имеет как минимум два интерфейса. output-packets
> > с интерфейса, смотрящего в твою сеть будут для тебя Incoming
> > traffic, а со смотрящего наружу - Outgoing traffic.
>
> Мысль понял. Но придется еще и статистику разгребать, поскольку
> через интерфейс смотрящий во-внутрь идет не только и-нет трафик,
> да и канала в и-нет у меня два. :-)
У нас их есть в кол-ве четырех. И ничего - разгребаемся ... %) Если
нужен только внешний (по отношению к твоей сети, границей
которой являетются внешние интерфейсы роутера) In/Out-трафик - даешь
на каждом внешнем интерфейсе команду 'ip accounting' и разгребаешь
потом по src_ip/dst_ip. Сдергиивать аккаунтинг удобно с помощью rsh.
Последовательность команд:
cisco# clear ip accounting
cisco# show ip accounting checkpoint
Первая команда делает snapshort текущего состояния счетчиков и
обнуляет сами счетчики. Вторая - просмотр сделанного snapshort'а.
В случае переполнения памяти, отведенной под счетчики, ранние
записи просто заменяются новыми. Но до такого лучше не доводить -
можно потерять инфо о трафике ... %)
В общем, вот ... %)
---
WBR, Dmitry Lebkov
next prev parent reply other threads:[~2003-08-20 3:41 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-19 17:08 Igor Solovyov
2003-08-19 22:58 ` Dmitry Lebkov
2003-08-20 3:05 ` Gosha
2003-08-20 3:41 ` Dmitry Lebkov [this message]
2003-08-20 3:52 ` Gosha
2003-08-20 4:23 ` Dmitry Lebkov
2003-08-20 5:21 ` Gosha
2003-08-20 6:10 ` Dmitry Lebkov
2003-08-20 6:23 ` Gosha
2003-08-20 5:49 ` Alec Podrezenko
2003-08-20 6:07 ` [JT]Re: " Dmitry Lebkov
2003-08-20 6:07 ` Gosha
2003-08-20 6:29 ` [JT]Re: " Dmitry Lebkov
2003-08-20 6:50 ` Gosha
2003-08-20 7:49 ` Dmitriy Gnidchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030820144104.1c17e0e2.dima@sakhalin.ru \
--to=dima@sakhalin.ru \
--cc=community@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git