LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   RHEL6 ipv4 (https://www.linuxquestions.org/questions/linux-newbie-8/rhel6-ipv4-4175416121/)

adol83 07-11-2012 08:43 AM

RHEL6 ipv4
 
Hi there!

I'm new on the forum. I can't understand how to read IPv4 through the ip addr command.

I know we've got other methods but i would like to learn a little more about the new tool ip addr

then, i tried the commando ip addr -4 eth0 but the output is similar to below


----------



[root@rhel6 Scrivania]# ip a
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: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:0c:29:2a:1a:64 brd ff:ff:ff:ff:ff:ff
inet6 fe80::20c:29ff:fe2a:1a64/64 scope link
valid_lft forever preferred_lft forever
3: virbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
link/ether ca:87:2f:fe:da:4b brd ff:ff:ff:ff:ff:ff
inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0

---

adol83 07-11-2012 09:27 AM

auto-reply
 
sorry, i was new on rhel6 and it was needed just to send the command

ifup eth0

then, again "ifconfig eth0" or "ip a" to see the ip.

i feel a little dumb..


All times are GMT -5. The time now is 11:32 AM.