Results 1 to 8 of 8

Thread: Get IP address and MAC address

  1. #1

    Default Get IP address and MAC address

    Hi there!
    How can get ip address and mac address from command shell without root attributes(I can't use 'ifconfig').
    Thank you in advance.
    [Adrián E. Córdoba]

  2. #2

    Default Re: Get IP address and MAC address

    Quote Originally Posted by aecordoba View Post
    Hi there!
    How can get ip address and mac address from command shell without root attributes(I can't use 'ifconfig').
    And why can you use ifconfig?

    Code:
    /sbin/ifconfig

  3. #3
    Vahis NNTP User

    Default Re: Get IP address and MAC address

    aecordoba wrote:
    > Hi there!
    > How can get ip address and mac address from command shell without root
    > attributes(I can't use 'ifconfig').
    > Thank you in advance.
    >
    >


    /sbin/ifconfig
    --
    Vahis

  4. #4
    Join Date
    Jun 2008
    Location
    Kansas City Area, Missouri, USA
    Posts
    7,236

    Default Re: Get IP address and MAC address

    aecordoba wrote:
    > Hi there!
    > How can get ip address and mac address from command shell without root
    > attributes(I can't use 'ifconfig').
    > Thank you in advance.


    Use /sbin/ifconfig. It works for a normal user, it just is not in your
    path.

  5. #5

    Default Re: Get IP address and MAC address

    *LOL*

    What timing.

    @aecordoba

    Use a search engine and search for "Linux Environment Variables" or "Linux PATH".

  6. #6

    Default Re: Get IP address and MAC address

    Thank you, very much!
    [Adrián E. Córdoba]

  7. #7

    Default Re: Get IP address and MAC address

    alternatively use

    Code:
    ip maddr

  8. #8

    Default Re: Get IP address and MAC address

    Quote Originally Posted by Robertple4 View Post
    alternatively use

    Code:
    ip maddr
    Thank you, Robertple4!
    I didn't know 'ip' command. It's very useful for me!
    [Adrián E. Córdoba]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •