0 / 0 / 0
Регистрация: 26.05.2021
Сообщений: 10
1

Время жизни ARP кэша

14.03.2023, 12:40. Показов 262. Ответов 5
Метки нет (Все метки)

Можно ли как-то посмотреть TTL Arp кэша? Читал где-то, что стандартное время ≈5 минутам, но вот чтобы вывести на экран эти значения, такого нигде не нашел.
0
Programming
Эксперт
94731 / 64177 / 26122
Регистрация: 12.04.2006
Сообщений: 116,782
14.03.2023, 12:40
Ответы с готовыми решениями:

Сформируйте ARP-запрос и ARP-ответ для случая расположения хоста-отправителя и хоста-получателя в одной подсети
Как это сделать? Если можно распишите шаги Сформируйте ARP-запрос и ARP-ответ для случая...

Почему TTL(Время жизни пакета) измеряется в хопах ???
Задали такой вопрос всей группе при, защите лабораторной работы. Перерыли весь гугл, но нормального...

Время и дата. Время жизни программы
Сделал вывод даты в Edit, но столкнулся с проблемой, время не "идёт". AnsiString Days =...

Подскажите программу для очистки кэша в заданной время?
Подскажите программу для очистки кэша всех временных файлов в заданной время?

Время жизни
Подскажите пожалуйста, где в базе Oracle 10g можно настроить время жизни точки доступа, ситуация...

5
Эксперт по компьютерным сетям
10951 / 6804 / 1819
Регистрация: 25.12.2012
Сообщений: 28,801
15.03.2023, 10:05 2
а где именно?
и зачем?
Цитата Сообщение от fblrka_f Посмотреть сообщение
≈5 минутам
у всех по-разному
вот старенький пост:

Кликните здесь для просмотра всего текста

The ARP timeouts are vendor dependent and can very drastically from one vendor to another. Here is some information about ARP timeouts.

Cisco 3750 switch

# show interfaces vlan 1
Vlan1 is up, line protocol is down
Hardware is EtherSVI, address is 5897.1ec9.1040 (bia 5897.1ec9.1040)
Internet address is 192.168.100.1/24
MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive not supported
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:10:09, output 00:10:07, output hang never
Last clearing of “show interface” counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
60274 packets input, 5100402 bytes, 0 no buffer
Received 0 broadcasts (0 IP multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
66629 packets output, 52011719 bytes, 0 underruns
0 output errors, 3 interface resets
0 output buffer failures, 0 output buffers swapped out

The default ARP timeout for cisco switch is 4 hrs.
It can be changed using following command :

#configure terminal
cisco(config)#interface vlan 1
cisco(config-if)#arp timeout ?
<0-2147483> Seconds
cisco(config-if)#arp timeout 600

The ARP timeout must be less than the MAC-Address-Table aging-timer.We have set the ARP = 1hr and MAC = 2hrs, so when the ARP entry times out before the MAC entry, the forced update of the ARP entry before the MAC timeout causes the MAC entry age to reset.

#show mac address-table aging-time
Global Aging Time: 300
Vlan Aging Time
—- ———-

Default aging time is 300 and you can change it globally or by VLAN

#configure terminal
cisco(config)# mac address-table aging-time 600 vlan 40

Linux

Default ARP timeout value in Linux is 60 sec and can be changed at /proc/sys/net/ipv4/neigh/eth1/gc_stale_time

gc_stale_time (since Linux 2.2)
Determines how often to check for stale neighbor entries. When a neighbor entry is considered stale, it is resolved again before sending data to it. Defaults to 60 seconds.

gc_thresh1 (since Linux 2.2)
The minimum number of entries to keep in the ARP cache. The garbage collector will not run if there are fewer than this number of entries in the cache. Defaults to 128.

gc_thresh2 (since Linux 2.2)
The soft maximum number of entries to keep in the ARP cache. The garbage collector will allow the number of entries to exceed this for 5 seconds before collection will be performed. Defaults to 512.

gc_thresh3 (since Linux 2.2)
The hard maximum number of entries to keep in the ARP cache. The garbage collector will always run if there are more than this number of entries in the cache. Defaults to 1024.

To flush arp table on Linux server you need to run this:

#ip -s -s neigh flush all

Windows

It was difficult to find about XP. For windows 2000 i got following lines from the link given at reference.

Windows 2000 adjusts the size of the ARP cache automatically to meet the needs of
the system. If an entry is not used by any outgoing datagram for two minutes, the entry is
removed from the ARP cache.Entries that are being referenced are given additional time, in two minute increments,
up to a maximum lifetime of 10 minutes.After 10 minutes, the ARP cache entry is removed and must be rediscovered using
an ARP Request frame. To adjust the time an unreferenced entry can remain in the ARP cache, change the
value of the ArpCacheLife and ArpCacheMinReferencedLife registry entries.
(HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Para meters).

So the default value looks like is 2 min.

5) For brocade switch the default value is 10 min.

command to enable aging time
ip arp-aging-timeout value
no ip arp-aging-timeout

The ARP ageing time is different from the MAC bridge learning time or the MAC table time . If there is mismatch between the MAC bridge learning table and ARP ageing time , it can result in unicast flood. So normally , its better if the ARP aging time is less than the bridge learning table time ( in Linux this value is 300 sec or 5 min can be seen using brctl command)
0
0 / 0 / 0
Регистрация: 26.05.2021
Сообщений: 10
16.03.2023, 02:55  [ТС] 3
Цитата Сообщение от insect_87 Посмотреть сообщение
а где именно?
и зачем?
Если возможно, то через cmd. Но возможно и использование софта по типу того же Wireshark'a или других анализаторов. Нужно мне это затем, что препод дал такое задание

Цитата Сообщение от insect_87 Посмотреть сообщение
у всех по-разному
Да, безусловно, для разных моделей сетевых устройств это значение может отличаться. Тут речь об устройстве под Windows, моя ошибка что не уточнил это
0
Эксперт по компьютерным сетям
10951 / 6804 / 1819
Регистрация: 25.12.2012
Сообщений: 28,801
16.03.2023, 11:07 4
На Win в реестре можно поменять (выше написано)
HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Param eters
А windows какая:?
0
0 / 0 / 0
Регистрация: 26.05.2021
Сообщений: 10
17.03.2023, 15:55  [ТС] 5
Цитата Сообщение от insect_87 Посмотреть сообщение
А windows какая:?
10-я

Покопался в реестре, почему-то не нашел ArpCacheLife и ArpCacheMinReferencedLife

Время жизни ARP кэша


Это все что есть в реестре по указанному пути
0
Эксперт по компьютерным сетям
828 / 411 / 118
Регистрация: 20.04.2014
Сообщений: 1,067
18.03.2023, 11:45 6
https://learn.microsoft.com/en... technet.10)
https://learn.microsoft.com/en... echnet.10)

нет - так создайте нужный ключ самостоятельно

Про дефолтные значения:
https://learn.microsoft.com/en... g-behavior
0
IT_Exp
Эксперт
87844 / 49110 / 22898
Регистрация: 17.06.2006
Сообщений: 92,604
18.03.2023, 11:45
Помогаю со студенческими работами здесь

Время жизни Cookie
Задание: Создать cookie с названием students на 30 минут и увеличить срок действия на 40 минут. ...

Время жизни сессии
### время жизни сессии php_value session.gc_maxlifetime 2592000 php_value session.cookie_lifetime...

Время жизни Куки
Добрый день, ребят! Подскажите пожалуйста, почему у меня не удаляется кука в хроме и мозиле? Причем...

C++11 время жизни переменных
После долгого перерыва в программирование вновь спохватился и тут наткнулся на такую не ожиданность...

Время жизни datatable
Уважаемые форумчане, возник вопрос по времени жизни datatable. Есть многопользовательская...


Искать еще темы с ответами

Или воспользуйтесь поиском по форуму:
6
Ответ Создать тему
Опции темы

КиберФорум - форум программистов, компьютерный форум, программирование
Powered by vBulletin
Copyright ©2000 - 2023, CyberForum.ru