<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Case &#187; arp</title>
	<atom:link href="http://case.net.ru/tag/arp/feed/" rel="self" type="application/rss+xml" />
	<link>http://case.net.ru</link>
	<description>Just another technical weblog</description>
	<lastBuildDate>Sat, 19 Jun 2010 14:06:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Static ARP</title>
		<link>http://case.net.ru/2009/02/01/static-arp/</link>
		<comments>http://case.net.ru/2009/02/01/static-arp/#comments</comments>
		<pubDate>Sun, 01 Feb 2009 12:03:06 +0000</pubDate>
		<dc:creator>Case</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[arp]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://case.net.ru/?p=173</guid>
		<description><![CDATA[Статические ARP таблицы. Комп работает только с теми маками, которые явно указаны. /usr/local/etc/rc.d/arp.sh 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 #!/bin/sh # Static ARP-table loader &#160; case $1 in start&#41; arp -d -a &#62; /dev/null arp [...]]]></description>
			<content:encoded><![CDATA[<p>Статические ARP таблицы. Комп работает только с теми маками, которые явно указаны.<br />
/usr/local/etc/rc.d/arp.sh</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
<span style="color: #666666; font-style: italic;"># Static ARP-table loader</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">case</span> $<span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">in</span>
        start<span style="color: #7a0874; font-weight: bold;">&#41;</span>
                arp <span style="color: #660033;">-d</span> <span style="color: #660033;">-a</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null
                arp <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>arp.conf <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null
                <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'Static ARP-table is loaded'</span>
                <span style="color: #000000; font-weight: bold;">;;</span>
        stop<span style="color: #7a0874; font-weight: bold;">&#41;</span>
                arp <span style="color: #660033;">-d</span> <span style="color: #660033;">-a</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null
                <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'Static ARP-table is unloaded'</span>
                <span style="color: #000000; font-weight: bold;">;;</span>
        restart<span style="color: #7a0874; font-weight: bold;">&#41;</span>
                arp <span style="color: #660033;">-d</span> <span style="color: #660033;">-a</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null
                arp <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>arp.conf <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null
                <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'Static ARP-table is reloaded'</span>
                <span style="color: #000000; font-weight: bold;">;;</span>
        status<span style="color: #7a0874; font-weight: bold;">&#41;</span>
                arp <span style="color: #660033;">-an</span>
                <span style="color: #000000; font-weight: bold;">;;</span>
        <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
                <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Usage: <span style="color: #780078;">`basename $0`</span> {start|stop|restart|status}&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">2</span>
                <span style="color: #000000; font-weight: bold;">;;</span>
<span style="color: #000000; font-weight: bold;">esac</span>
<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span></pre></td></tr></table></div>

<p>Ну и сама таблица с маками в таком вот виде:<br />
/usr/local/etc/arp.conf:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">172.16.127.2    00:0f:ea:1e:<span style="color: #000000;">65</span>:4a
172.16.127.3    00:<span style="color: #000000;">15</span>:c5:<span style="color: #000000;">68</span>:2f:e6
172.16.127.4    00:<span style="color: #000000;">50</span>:<span style="color: #000000;">22</span>:b0:<span style="color: #000000;">88</span>:a2
172.16.127.5    00:<span style="color: #000000;">14</span>:<span style="color: #000000;">38</span>:a5:f4:<span style="color: #000000;">99</span>
172.16.127.6    00:<span style="color: #000000;">17</span>:fa:ec:c0:<span style="color: #000000;">13</span>
172.16.127.7    00:a0:d1:ca:8d:ca
172.16.127.8    00:1f:c6:0e:a9:<span style="color: #000000;">96</span>
172.16.127.9    00:0d:<span style="color: #000000;">88</span>:f4:b5:7c
172.16.127.10   00:1e:<span style="color: #000000;">58</span>:a8:aa:<span style="color: #000000;">46</span>
172.16.127.11   00:<span style="color: #000000;">22</span>:<span style="color: #000000;">15</span>:b4:a7:6a
172.16.127.12   <span style="color: #000000;">11</span>:<span style="color: #000000;">22</span>:<span style="color: #000000;">33</span>:<span style="color: #000000;">44</span>:<span style="color: #000000;">55</span>:<span style="color: #000000;">66</span>
172.16.127.13   <span style="color: #000000;">11</span>:<span style="color: #000000;">22</span>:<span style="color: #000000;">33</span>:<span style="color: #000000;">44</span>:<span style="color: #000000;">55</span>:<span style="color: #000000;">66</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://case.net.ru/2009/02/01/static-arp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
