11-03-2008
how to grep only IP address of e1000g0 using ifconfig -a
Hello All,
Can someone show me how to cat "only the IP address of e1000g0" using ifconfig -a.
i am trying to grep only the ip address (xx.xx.xx.xx) from the bunch of all other things like, broadcast address, IPV4, UP........and so on.
thanks
10 More Discussions You Might Find Interesting
1. Solaris
hi all
iam trying to set my eri0 interface but with little luck .
when i set the ip using ipconfig i always get "bad adress"..
moreover when i use ifconfig eri0 i can notice that the inet is 0.0.0.0 and the netmask 0
i am runnig solaris 9 on sparc .
any helpis highly appreciated ... ... (2 Replies)
Discussion started by: ppass
2 Replies
2. UNIX for Dummies Questions & Answers
if i have the command ifconfig eth0, what will the output be and how can i use either awk or grep to isolate and display the IP address, subnet mask and physical address of my host (1 Reply)
Discussion started by: carlvernon
1 Replies
3. IP Networking
Hello,
I have a server with two ip addresses. I need to make the ip address that's currently the secondary the primary. How do I use the ifconfig command and primary option?
Thanks. (5 Replies)
Discussion started by: pmichner
5 Replies
4. IP Networking
HI All,
My interface card has failed.If i am giving the command to uplumb it i am getting an error.
ce401001: flags=219040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER,FAILED,CoS> mtu 1500 index 3
inet 10.188.24.18 netmask ffffffc0 broadcast 10.188.24.63
# ifconfig... (2 Replies)
Discussion started by: sag71155
2 Replies
5. Shell Programming and Scripting
hi,
i want to know how to grep inet address for below
below is the output of ifconfig command
/home/JA> ifconfig
eth0 Link encap:Ethernet HWaddr 00:11:0A:5B:2E:E9
inet addr:161.239.203.18 Bcast:161.239.203.127 Mask:255.255.255.128
UP BROADCAST RUNNING... (3 Replies)
Discussion started by: mail2sant
3 Replies
6. Shell Programming and Scripting
I'm a newbie to linux, so pleases forgive me!
I would like to find a script that I could use to extract a dynamic ip from the ppp0 and set it as a variable to be used in IPTables
basically, if ppp0 ip address is 10.10.10.20, I would like a script that would set a var to 10.10.10.0. of... (9 Replies)
Discussion started by: speedy3k
9 Replies
7. IP Networking
I'm working on an AIX Unix LPAR (AIX 3.5 00C3C9904C00 as returned by uname -a)
I can access this box using telnet, port 22 using adress IP A and B
A=AA.AA.XX.XX and B=AA.AA.YYY.YYY
I can confirm these 2 are the same space, I can see
I can't find address B listed anywhere... so I wonder what... (1 Reply)
Discussion started by: Isax50
1 Replies
8. Solaris
hi,
I am trying to configure one of my interfaces, but after reboot - i lose the changes to the netmask & broadcast address.
I have added an entry in /etc/netmasks, but it doesnt pick up the new settings. any ideas - much appreciated.
before reboot:
eri0:... (3 Replies)
Discussion started by: badoshi
3 Replies
9. Solaris
Hi all,
I encounter some problem with my e1000g interface running on sol 10. I can't permanently change the auto-nego to disable, if i use ndd commands, it will only stay until the next reboot.
But i can't change the link speed either is set to /etc/init.d/nddconfig or using ndd commands.
... (1 Reply)
Discussion started by: mailbox80
1 Replies
10. Shell Programming and Scripting
Hi
I am trying to create a script extracting the IP provided by ifconfig.
I tried with grep + awk but I am returned more than I need.
/sbin/ifconfig eth0 | grep "inet addr:" | awk '/inet addr:/ { print $2 }'
and returns
addr:10.15.1.64
How can I remove "addr:" string?... (9 Replies)
Discussion started by: manustone
9 Replies
RARPD(8) System Manager's Manual RARPD(8)
NAME
rarpd - reverse address resolution protocol daemon
SYNOPSIS
rarpd [-d]
DESCRIPTION
Rarpd listens on the ethernet for broadcast packets asking for reverse address resolution. These packets are sent by hosts at boot time to
find out their IP address. Rarpd looks up the six octet ethernet number in the /etc/ethers file finding a host name. This name is trans-
lated to the IP address of the host by a DNS lookup. The IP address is then sent to the host.
Before rarpd can start its service it first finds out what the IP addresses of the ethernets are. It will look through /etc/ethers to map
the ethernet addresses to host names. It then uses /etc/hosts to map the host names to IP addresses. If this lookup fails then several
RARP requests are broadcasted in the hope that some RARP server knows the addresses. The IP addresses are eventually set in the same way
as ifconfig(8). (The address is not changed if already set with ifconfig.) Note that the host names in the ethers and hosts files must
match exactly. The DNS can not be used yet, so a simple name can't be translated to a fully qualified name.
Rarpd exits after startup if there are no active ethernets, or if there is no ethers file.
Warning! Sun diskless workstations assume that the first RARP server that answers is the host they are to boot from. For this to work all
other Sun RARP servers delay their answer if they are not also the requestors boot server. The Minix rarpd does not have this kludge so it
will happily engage the Sun boot server to see who can answer the client first. Unless your Minix host can actually serve a Sun diskless
client, it is better not to list any more hosts in the ethers file than necessary.
OPTIONS
-d Turns on debugging messages. Debugging can also be turned on at runtime by sending signal SIGUSR1 or turned off with SIGUSR2.
SEE ALSO
ifconfig(8), ethers(5), hosts(5), set_net_default(8), boot(8), inetd(8), irdpd(8), nonamed(8).
AUTHOR
Kees J. Bot (kjb@cs.vu.nl)
RARPD(8)