I have a need to allow only certain IP addresses to access a machine running solaris 9. I am not sure how this can be accomplished.
Thanks in advance for your help.
Patch (2 Replies)
Is there any API call to get IP Address of a machine? I know there is function which returns name of the machine, gethostname(). But I need the IP.
Thanks & Regards,
Ahsan (7 Replies)
I am using windows Xp. From windows I would connect to my IBM AIX unix machine using telnet client. Is there any command available to view the IP address of Windows machine from Unix? (Note that ifconfig will give unix mahcine's IP address currently logged in.) (3 Replies)
Hi
i want to know the Ip address of the machine from where i logged into the unix server and made some changes to a file.
Can I know the last changes made to a unix file ? (3 Replies)
Hi
How to get the IP address / Host name of a particular user connected to Unix Server.
For example: If used 'DevUser1' is connected to Unix server. I need to find out from which PC this connection has been made.
How can this be achieved?
Thanks (6 Replies)
Hi All
I am having a solaris 10 virtual machine on vista (using vmware 7) laptop.
Now i want to access virtual machine from vista using putty.
Problem is that i insalled the solaris machine as dhcp. and whenever i connect to internet or reboot my system the IP address of solaris... (1 Reply)
hi all
i want to set ip address to a vitrual machine i am using following command.
but it is not ifconfig -a command output.
what is wrong i dont know
bash# ifconfig interfacename plumb
bash# ifconfig interfacename auto-dhcp
Please use code tags next time for your code and data. (4 Replies)
Discussion started by: nikhil kasar
4 Replies
LEARN ABOUT SUNOS
arp
arp(1M) System Administration Commands arp(1M)NAME
arp - address resolution display and control
SYNOPSIS
arp hostname
arp -a [-n]
arp -d hostname
arp -f filename
arp -s hostname ether_address [temp] [pub] [trail]
DESCRIPTION
The arp program displays and modifies the Internet-to-MAC address translation tables used by the address resolution protocol (see arp(7P)).
With no flags, the program displays the current ARP entry for hostname. The host may be specified by name or by number, using Internet dot
notation.
OPTIONS -a Display all of the current ARP entries. The definition for the flags in the table are:
M Mapping; only used for the multicast entry for 224.0.0.0
P Publish; includes IP address for the machine and the addresses that have explicitly been added by the -s option. ARP will
respond to ARP requests for this address.
S Static; not learned for the ARP protocol.
U Unresolved; waiting for ARP response.
You can use the -n option with the -a option to disable the automatic numeric IP address-to-name translation. Use arp -an or arp
-na to display numeric IP addresses.
-d Delete an entry for the host called hostname. This option may only be used by the super-user.
-f Read the file named filename and set multiple entries in the ARP tables. Entries in the file should be of the form:
hostname MACaddress [temp] [pub] [trail]
See the -s option for argument definitions.
-s Create an ARP entry for the host called hostname with the MAC address MACaddress. For example, an Ethernet address is given as
six hexadecimal bytes separated by colons. The entry will be permanent unless the word temp is given in the command. If the word
pub is given, the entry will be published. For instance, this system will respond to ARP requests for hostname even though the
hostname is not its own. The word trail indicates that trailer encapsulations may be sent to this host. arp -s can be used for a
limited form of proxy ARP when a host on one of the directly attached networks is not physically present on the subnet. Another
machine can then be configured to respond to ARP requests using arp -s. This is useful in certain SLIP configurations.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO ifconfig(1M), arp(7P), attributes(5)SunOS 5.10 7 Mar 2003 arp(1M)