<?xml version="1.0" encoding="UTF-8" ?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Posteet: shell,mac</title> 
    <link>http://www.posteet.com/</link> 
    <description>Recent posteets posted to Posteet</description>
    <ttl>60</ttl>

    
    <item>
        <title>Finding ethernet address (MAC) of an IP address with arping</title>
        <link>http://www.posteet.com/view/430</link>
        <description>
        <![CDATA[<pre>arping -c 1 192.168.1.1 | grep &quot;:&quot; | sed &quot;s/\[//g;s/\]//g&quot; |gawk '{print $5}'
# 00:AA:BB:CC:DD:EE

# Find MACs of all the hosts on a specific network with broadcast pings. Displays:
# 192.168.1.1 -&gt; 00:AA:BB:CC:DD:EE
# 192.168.1.2 -&gt; 00:FC:AE:5C:D1:A6
# ...
for i in `ping -b -c 5 192.168.1.255 | grep &quot;: ic&quot; | gawk '{print $4}' | sort -u | sed &quot;s/://g&quot;`
do 
   arping -c 1 $i | grep &quot;:&quot; | sed &quot;s/\[//g;s/\]//g&quot; | gawk '{a=$4&quot; -&gt; &quot;$5;print a}'
done</pre> <a href="http://www.posteet.com/tags/arping">[arping]</a>  <a href="http://www.posteet.com/tags/bash">[bash]</a>  <a href="http://www.posteet.com/tags/ethernet">[ethernet]</a>  <a href="http://www.posteet.com/tags/gawk">[gawk]</a>  <a href="http://www.posteet.com/tags/grep">[grep]</a>  <a href="http://www.posteet.com/tags/mac">[mac]</a>  <a href="http://www.posteet.com/tags/sed">[sed]</a>  <a href="http://www.posteet.com/tags/shell">[shell]</a> ]]>        </description>
        <dc:creator>spirit</dc:creator>
        <pubDate>Wed, 14 Nov 2007 14:01:07 +0000</pubDate>

            <category>arping</category>
            <category>bash</category>
            <category>ethernet</category>
            <category>gawk</category>
            <category>grep</category>
            <category>mac</category>
            <category>sed</category>
            <category>shell</category>
    
    </item>

  
    <item>
        <title>Changer l'adresse mac</title>
        <link>http://www.posteet.com/view/142</link>
        <description>
        <![CDATA[<pre>#passer en root
ifconfig eth0 hw ether AA:BB:CC:DD:EE:FF</pre> <a href="http://www.posteet.com/tags/bash">[bash]</a>  <a href="http://www.posteet.com/tags/ifconfig">[ifconfig]</a>  <a href="http://www.posteet.com/tags/linux">[linux]</a>  <a href="http://www.posteet.com/tags/mac">[mac]</a>  <a href="http://www.posteet.com/tags/network">[network]</a>  <a href="http://www.posteet.com/tags/shell">[shell]</a> ]]>        </description>
        <dc:creator>jon207</dc:creator>
        <pubDate>Sat, 03 Nov 2007 17:04:33 +0000</pubDate>

            <category>bash</category>
            <category>ifconfig</category>
            <category>linux</category>
            <category>mac</category>
            <category>network</category>
            <category>shell</category>
    
    </item>


</channel>
</rss>
