Find the answer to your Linux question:
Results 1 to 5 of 5
My eth0 is used DHCP,I want to know my gateway and DNS,Which command should I use? thanks...
  1. #1
    Just Joined!
    Join Date
    Jan 2009
    Location
    China
    Posts
    11

    Question How canI find my eth0´s details?

    My eth0 is used DHCP,I want to know my gateway and DNS,Which command should I use?

    thanks

  2. #2
    Just Joined!
    Join Date
    Jan 2009
    Posts
    47
    use ifconfig

  3. #3
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,095
    ...and you can run man ifconfig for more info on the command itself.
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

  4. #4
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    not sure about you two, but ifconfig tells me none of those things.
    Code:
    route -n
    will definitely tell you the default gateway
    Code:
    cat /etc/resolv.conf
    should tell you your dns servers

  5. #5
    Just Joined!
    Join Date
    Jan 2009
    Location
    China
    Posts
    11
    You are right,Thank you

Posting Permissions

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