On 05/23/2012 02:17 PM, Paul Allen Newell wrote:
On 5/22/2012 10:49 PM, Ed Greshko wrote:
> Well, as you said, things are in transition.... And, if you did some google
searches
> you'd find that there were/are differences between how interface names appear(ed)
at
> various points depending on system architecture. That seems to be your main
"issue".
>
> All that aside.... If you have a system with a single interface you can always
> do....
>
> [egreshko@meimei test]$ /sbin/ifconfig | grep 'inet ' | grep -v
'127.0.0.1' | cut -d
> : -f 2 | awk '{ print $1}'
> 192.168.0.18
>
Ed:
With all due respect, its become clear to me that ifconfig is obsolete and a
solution which uses it doesn't have a future. Can you try to get the ip address
with command "ip" on a i686 and x86_64 system without having to run a
different
command for each?
It will continue to work.... Just not support some new features.
As for the "issue", I am still hoping someone can tell me
that "ip addr show"
giving a different device for the static IP on x86_64 and i686 is "not right"
so I
can bug it with confidence that I am not making a mistake (or let me know that I am
making a mistake ... with enough info that I can confirm it is a pilot error)
???? The "ip" command has nothing to do with the device/interface name.
It simply lists information on all the interfaces available on the
system...regardless of if they are up/down.... There is no "right" or
"wrong".
[egreshko@meimei ~]$ ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: p128p1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen
1000
link/ether 40:61:86:7c:2b:db brd ff:ff:ff:ff:ff:ff
inet 192.168.0.18/24 brd 192.168.0.255 scope global p128p1
inet6 fe80::4261:86ff:fe7c:2bdb/64 scope link
valid_lft forever preferred_lft forever
3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether 70:1a:04:f4:df:69 brd ff:ff:ff:ff:ff:ff
5: vboxnet0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether 0a:00:27:00:00:00 brd ff:ff:ff:ff:ff:ff
[egreshko@meimei ~]$ ip addr show dev p128p1
2: p128p1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen
1000
link/ether 40:61:86:7c:2b:db brd ff:ff:ff:ff:ff:ff
inet 192.168.0.18/24 brd 192.168.0.255 scope global p128p1
inet6 fe80::4261:86ff:fe7c:2bdb/64 scope link
valid_lft forever preferred_lft forever
Maybe the question you should be asking is this?
I don't like the names that have been assigned to my network interfaces. How can I
change them to be what I want them to be?
--
Never be afraid to laugh at yourself, after all, you could be missing out on the joke
of the century. -- Dame Edna Everage