9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Before I did
mount /dev/sdc1 /mnt/ll
xsi ll # ls
xsi ll # cd .
xsi ll # ls
NEWGAME.GM2 install md5sum.txt syslinux.cfg ubnkern
.... (1 Reply)
Discussion started by: Xcislav
1 Replies
2. UNIX for Dummies Questions & Answers
When I do sudo -i isn't that like creating a root login shell session? Why isn't motd displayed? motd=message of the day.
---------- Post updated at 09:54 AM ---------- Previous update was at 09:25 AM ----------
I think I answered it myself, it is only called for remote login sessions, once... (2 Replies)
Discussion started by: glev2005
2 Replies
3. Emergency UNIX and Linux Support
Hi guys.
I have installed Acronis disk director in windows XP and allocate some free space to install Debian beside fedora.
after completion i rebooted and now grub is in command line mode and does not show the menu list.
(I didn't remove the fedora partition. I just allocate some space from... (1 Reply)
Discussion started by: majid.merkava
1 Replies
4. UNIX for Advanced & Expert Users
I'm trying to compile vim73 with the Motif Toolkit.
./configure --enable-gui=motif
make
./src/vim -g
Vim runs in a window, without the standard toolbar and
menu bar.
I tried to recompile with
./configure --enable-gui=gnome2It compiled with GTK2 toolkit, but still no menubar, nor toolbar.... (0 Replies)
Discussion started by: mghis
0 Replies
5. UNIX for Dummies Questions & Answers
Hi Team,
I have a couple of questions. I happen to come across a code like this which i was asked to trouble shoot.
Any idea what these two do?
1.
cat $(file?File doesn't exist);
2.
mydir=/home/user/axa032;
echo $(mydir-/home/a2self);
Can some one help me with this ?
... (2 Replies)
Discussion started by: kinny
2 Replies
6. Homework & Coursework Questions
im making c code in linux and im having problems with one command, id should bring up a list but instead id doesnt do nothing, there are no error's, can anyone solve whats wrong ?
void environ()
{
extern char **environ;
int i=0;
for (i = 0; environ !=NULL;i++)
{
... (1 Reply)
Discussion started by: figureout
1 Replies
7. IP Networking
I have a Linux server connected to the Internet like so:
Server (66.77.88.130) -> /29 VLAN Gateway (66.77.88.129) -> Core Router (64.0.0.1) -> Internet
If I run a traceroute from my server to an arbitrary site on the internet I get a result like this:
# traceroute some-other-server... (2 Replies)
Discussion started by: ramnet
2 Replies
8. HP-UX
Hello,
I have the following problem. I made a directory /mnt/appserv and
mounted it on a windows server. The line in /etc/fstab to do this is the following :
winoracle:/environments10g /mnt/appserv cifs defaults 0 0
I have mounted this dir as root-user.
The rights on the directory are... (1 Reply)
Discussion started by: bdb78451
1 Replies
9. Post Here to Contact Site Administrators and Moderators
Is there an issue with it? (2 Replies)
Discussion started by: Spetnik
2 Replies
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)