11-06-2008
Thanks!
Thanks for your reply sysgate.
I have to deal with arp frames because I have a wired LAN configuration. I have a few devices that has the same IP address and it is impossible to be changed. All of them has different MAC address and they take its firmware from a tftp server.
The problem to be solved is the following:
While all the devices are connected to the same switch, and all of them have the same IP address, it has to be possible to upgrade every one (one by one) downloading its firmware from the ftp server.
I was thinking on blocking the tftp arp request to these devices and in some way (e.g. running a script, iptables, etc) when a device tries to connect to the tftp server, the last one automatically adds a fix rule in the arp cache so it does not send an arp request to devices an only response to only one.
Could you pleas help me???
7 More Discussions You Might Find Interesting
1. IP Networking
I'm using ethereal to analyse my network from my pc.
There're too many TCP Bad checksum
1. between my PC and unix servers (checksum: 0x6660 )
2. between my PC and other servers (windows, novell) checksum: 0x6644 )
There're too many NBNS and BOOTP/DHCP Malformed Packet(Exception occured) ... (0 Replies)
Discussion started by: nymus7
0 Replies
2. Web Development
Hi,
I am writing a web application using Perl CGI. And I have defined an frame within like this
"<iframe id=\"iframe01\" name=\"iframe01\" height=480 width=800 frameborder=0 scrolling=no></iframe>"
My problem is that this iframe appears differently on different browsers - IE6, IE7, Mozilla... (0 Replies)
Discussion started by: garric
0 Replies
3. Linux
Hi,
Need Help!
I'm porting VxWorks code to Linux. Here in VxWorks I have a structure called ether_tag_header.
What is the equivalent structure in Linux?
Note:
struct ether_tag_header {
u_char ether_dhost;
u_char ether_shost;
u_char etherTag;
u_short... (0 Replies)
Discussion started by: ytrew
0 Replies
4. IP Networking
The LBNL/ICSI Enterprise Tracing Project at LBNL/ICSI Enterprise Tracing Project - Project Overview provides a trace of an enterprise's network from 2005.
Upon reading these files with tcpdump, along with regular packets that appear like-
12:04:51.696971 IP 128.3.189.248.netbios-ssn >... (0 Replies)
Discussion started by: sstatla
0 Replies
5. Shell Programming and Scripting
Hi,
I have to insert html frames in for loop.
Here is the code.
for($k=0;$k<3;$k++)
{
print<<HTML;
<html>
<head>
<title>
HTML Horizontal Frames
</title>
</head>
<frameset cols="25%,75%">
<frame src="a.html">
<frame src="b.html">
</frameset> (0 Replies)
Discussion started by: vanitham
0 Replies
6. IP Networking
Hello,
I have 2 clients with Unix installed.
host1: eth0 (192.168.5.10) & eth1 (192.168.10.10)
host2: eth0 (192.168.10.20)
I've connected host1-eth1 to host2-eth0. host1-eth0 isn't connected.
I started 'tcpdump' on wonder that host2 got ARP requests for 192.168.5.10.
Any idea why host1... (2 Replies)
Discussion started by: daWonderer
2 Replies
7. AIX
Hi,
I require help with hardware discovery while running a command from an HMC with firmware V7.3.5 SP 3. The two frames I am running the command for are p 5 595's.
Command input: lshwres -m swdc-c02-9119-595-SN02780CF -r io --rsubtype slotchildren -F lpar_name
Error output: The managed... (1 Reply)
Discussion started by: AIXNEWBIE62
1 Replies
LEARN ABOUT DEBIAN
net::arp
ARP(3pm) User Contributed Perl Documentation ARP(3pm)
NAME
ARP - Perl extension for creating ARP packets
SYNOPSIS
use Net::ARP;
Net::ARP::send_packet('lo', # Device
'127.0.0.1', # Source IP
'127.0.0.1', # Destination IP
'aa:bb:cc:aa:bb:cc', # Source MAC
'aa:bb:cc:aa:bb:cc', # Destinaton MAC
'reply'); # ARP operation
$mac = Net::ARP::get_mac("eth0");
print "$mac
";
$mac = Net::ARP::arp_lookup($dev,"192.168.1.1");
print "192.168.1.1 has got mac $mac
";
IMPORTANT
Version 1.0 will break with the API of PRE-1.0 versions, because the return value of arp_lookup() and get_mac() will no longer be passed as
parameter, but returned! I hope this decision is ok as long as we get a cleaner and more perlish API.
DESCRIPTION
This module can be used to create and send ARP packets and to get the mac address of an ethernet interface or ip address.
send_packet()
Net::ARP::send_packet('lo', # Device
'127.0.0.1', # Source IP
'127.0.0.1', # Destination IP
'aa:bb:cc:aa:bb:cc', # Source MAC
'aa:bb:cc:aa:bb:cc', # Destinaton MAC
'reply'); # ARP operation
I think this is self documentating.
ARP operation can be one of the following values:
request, reply, revrequest, revreply, invrequest, invreply.
The default ARP operation is reply.
get_mac()
$mac = Net::ARP::get_mac("eth0");
This gets the MAC address of the eth0 interface and stores
it in the variable $mac. The return value is "unknown" if
the mac cannot be looked up.
arp_lookup()
$mac = Net::ARP::arp_lookup($dev,"192.168.1.1");
This looks up the MAC address for the ip address 192.168.1.1
and stores it in the variable $mac. The return value is
"unknown" if the mac cannot be looked up.
SEE ALSO
man -a arp
AUTHOR
Bastian Ballmann [ Balle@chaostal.de ]
http://www.datenterrorist.de
COPYRIGHT AND LICENSE
Copyright (C) 2004-2007 by Bastian Ballmann
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.1 or,
at your option, any later version of Perl 5 you may have available.
perl v5.14.2 2009-04-24 ARP(3pm)