HOSTADDR(1) General Commands Manual HOSTADDR(1)NAME
hostaddr - show ethernet address, IP address or hostname
SYNOPSIS
hostaddr [-eia] [-E eth-device] [-I ip-device]
DESCRIPTION
Without any of the -eia options, hostaddr shows the ethernet address, IP address and hostname of the local host on one line in the given
order. With options only the wanted fields are shown, still in the same order, not in option order.
OPTIONS -e Show the ethernet address.
-i Show the IP address. This will not work if no IP address has been found by RARP or by setting it with ifconfig(8).
-a Show the fully qualified hostname. The IP address is shown again if it can't be translated to a host name. (This usually indicates
that the DNS reverse address translation tables are incomplete.)
SEE ALSO ifconfig(8), rarpd(8), nonamed(8), set_net_default(8), boot(8).
DIAGNOSTICS
"Timeout"
Hostaddr timed out trying to get the IP address. This means that the network connection is out of order or that the setup of the machine
is bad.
AUTHOR
Kees J. Bot (kjb@cs.vu.nl)
HOSTADDR(1)
Check Out this Related Man Page
IFCONFIG(8) System Manager's Manual IFCONFIG(8)NAME
ifconfig - configure a TCP/IP device
SYNOPSIS
ifconfig [-I ip-device] [-h ipaddr] [-n netmask] [-iv]
DESCRIPTION
Ifconfig initializes a TCP/IP device setting the IP address and/or netmask. It will report the address and netmask set. This command may
be used if the system has not been configured properly yet. It is only used at boot time to set a fixed address for a system without a
physical ethernet. Normally the inet task will find it out by itself from the RARP server.
OPTIONS -h The decimal TCP/IP address to set.
-n The netmask to set.
-i Don't set the IP address or netmask if already set. This way ifconfig cannot interfere if the numbers have been found out by RARP.
-v Report IP address and netmask. This is the default action if there are no other options.
SEE ALSO hostaddr(1), rarpd(8), set_net_default(8), boot(8).
AUTHOR
Kees J. Bot (kjb@cs.vu.nl)
IFCONFIG(8)
I am trying to set up my internet connection for my unix system and cannot seem to do it. I have a optimum on line service, and use a cable modem, with a usb. The 3 com ethernet card in my Gateway Labtop is recognized but when I hook up the usb and try and connect the usb is unrecognized. I... (14 Replies)
Hello again. Neo, thanks for your last reply.
I have a new question. How can I re-configure the host name and IP address information attached to my NIC? I remember seeing a command posted here that would cause the system to re-boot and require the information to be entered but I do not see it... (6 Replies)
I am having a problem getting my configuration to stick. After I installed my quad-card I did the following:
1. created hostname.qe0, hostname.qe1, hostname.qe2, hostname.qe3 files in my /etc directory.
2. In my /etc/hosts file I added the ip address of each interface and the name for each... (7 Replies)
I needed to get a machine's local IP address when not root (so no ifconfig).
Eventually, I arrived at this convoluted solution that grabs the unique local IP info from netstat...
netstat -n -t | awk '{print $4}' | grep -o "*\.*\.*\.*" |\
grep -v "127.0.0.1" | sort -u
...however I... (5 Replies)
Hi guys,
I have a SunBlade 2000 that I am trying to configure. It has been configured previously with an IP address, hostname, DNS and so forth. I want to configure it with a new IP address. How can I achieve this? It has been one of the most difficult tasks for me as I am not really... (6 Replies)
I run - telnet adl001 (where adl001 is a box name) and it works Ok
/etc/hosts file does not have resolution of the ip address for this name
where it can be found ?
Thanks (5 Replies)
Hi all,
I am getting some error messages during bootup
ifconfig :<hostname> bad address
and some more messages related to it.
I some how checked the /etc/hostanem.hme0 /etc/hosts file.
Entries in these files were proper.
If I am running the following command from root:
... (5 Replies)
I need to find the MAC address of the ethernet cards on the host machine from the C language. I have found a way to do this on Linux using socket(), ioctl() and the ifreq structure. But this does not seem to work on AIX, HP/UX and probably the others I need (Solaris, SCO, Alpha etc).
Is there a... (7 Replies)
hello,
I have a Linux server with two interfaces eth0 and eth1. I configured two IP addresses from two different networks on 2 interfaces, and I connected both interfaces on two different switches.
the IP address of eth0 is responding without problem to ping from equipment of its home network,... (25 Replies)
Hi folks,
i am using Oracle Red hat linux 6.5 64 bit operating system. but when i fire a command ifconfig -a it shows me no ip address has been assigned to this server except loop back address.then i done the following things
1)
#nm-connection-editor
2)
#service NetworkManager stop... (5 Replies)
I'm currently looking into ways to integrate the Telegram API into the forums:
Telegram Bots - Bot Code Examples
I'm thinking, first off, to use the Telegram API to get forum alerts and notifications (to Bot or Not?).
Second, I thinking of ways to more deeply integrate Telegram into the... (5 Replies)