LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   want to see all my ip's (https://www.linuxquestions.org/questions/linux-newbie-8/want-to-see-all-my-ips-832956/)

ramesh_india2020 09-17-2010 11:59 PM

want to see all my ip's
 
Hi friend,

I want to see all my ip's inside server. ip a command and ifconfig not working . Because i am under su root login. Is there any possibilities to view all my IP reside in the server.. Please help me


I am using CentOS release 5.5 (Final) server.

Thanks,
Ramesh

sem007 09-18-2010 12:03 AM

Quote:

Originally Posted by ramesh_india2020 (Post 4101332)
Hi friend,

I want to see all my ip's inside server. ip a command and ifconfig not working . Because i am under su root login. Is there any possibilities to view all my IP reside in the server.. Please help me


I am using CentOS release 5.5 (Final) server.

Thanks,
Ramesh

You can run ifconfig and ip addr command under su root login.

when you run command it gives any error?

Regards,

xeleema 09-18-2010 12:03 AM

Greetingz!

If you are not 'root' on a server, then you may not have the 'ifconfig' command in your path.
Try
/usr/sbin/ifconfig -a
or
/sbin/ifconfig -a
To see all of the configured network interfaces (eth0, eth1, eth2...) and the IP addresses assigned to them.

NOTE: to find out if a command is in your path, type 'which command_name'

ramesh_india2020 09-18-2010 12:30 AM

Many Thanks.. It worked... :-)

Quote:

Originally Posted by sem007 (Post 4101333)
You can run ifconfig and ip addr command under su root login.

when you run command it gives any error?

Regards,


ramesh_india2020 09-18-2010 12:30 AM

Many Thanks.. It worked... :-)

Quote:

Originally Posted by xeleema (Post 4101334)
Greetingz!

If you are not 'root' on a server, then you may not have the 'ifconfig' command in your path.
Try
/usr/sbin/ifconfig -a
or
/sbin/ifconfig -a
To see all of the configured network interfaces (eth0, eth1, eth2...) and the IP addresses assigned to them.

NOTE: to find out if a command is in your path, type 'which command_name'


sem007 09-18-2010 12:49 AM

Quote:

Originally Posted by ramesh_india2020 (Post 4101352)
Many Thanks.. It worked... :-)

You are wel-come.
when you swith use use "-" it will provide login sell of user.

Code:

su - username
Regards,


All times are GMT -5. The time now is 05:24 PM.