Results 1 to 6 of 6

Thread: bash command for 'ipconfig' equivalent?

  1. #1
    Associate
    Join Date
    Apr 2002
    Posts
    39

    bash command for 'ipconfig' equivalent?

    There MUST be a bash command that can be used to display/release/renew the dhcp assigned ip address (ipconfig or winipcfg equivalent).

    I'm finding that I'm not only poor at the Windows->Linux conversion ... I must not be to enter search strings well either.

  2. #2
    Moderator
    Good Guru
    Schotty's Avatar
    Join Date
    Jul 2001
    Location
    Milwaukee, WI
    Posts
    5,760

    Re: bash command for 'ipconfig' equivalent?

    Are you talking about this:

    Code:
    ifdown eth0
    ifup eth0
    Thats what I did when I used DHCP and wanted a renewal. Plus IIRC, RedHat, Mandrake, and SuSE all had tools to do that. Of course, you need to be root to do this.

  3. #3
    Mentor
    Join Date
    Jun 2001
    Posts
    1,672

    Re: bash command for 'ipconfig' equivalent?

    Also: /sbin/ifconfig

  4. #4
    Moderator
    Good Guru
    Compunuts's Avatar
    Join Date
    May 2001
    Location
    California
    Posts
    3,935

    Re: bash command for 'ipconfig' equivalent?

    Yeah actually "ifconfig" is the equivalent to "ipconfig" in WinNT and ifconfig have much more ....

  5. #5
    Associate
    Join Date
    Apr 2002
    Posts
    39

    Many thanx!: bash command for 'ipconfig' equivalen

    I had come across the 'ifconfig' command in my searching, however not that I needed to be root to run (actually, I can run it as 'me' if explicitly define the path ... maybe the 'me' user is setup with too many rights )

    Thanks much. I found the man page for it and arp, etc. I appreciate the steering!

  6. #6

    Re: Many thanx!: bash command for 'ipconfig' equiv


    I had come across the 'ifconfig' command in my searching, however not that I needed to be root to run (actually, I can run it as 'me' if explicitly define the path ... maybe the 'me' user is setup with too many rights )

    Thanks much. I found the man page for it and arp, etc. I appreciate the steering!
    No, ifconfig can be ran by non-root users, but for information only. It can not be used to SET anything.

Similar Threads

  1. command in bash script to check if tar is currupt or not
    By expresstom in forum Linux - Software, Applications & Programming
    Replies: 2
    Last Post: 05-15-2011, 09:07 PM
  2. Ipconfig/Telnet is not an internal command
    By thebull in forum Windows - General Topics
    Replies: 1
    Last Post: 04-21-2008, 09:10 AM
  3. Red Hat 8.0 equivalent command
    By photowriters in forum Linux - Hardware, Networking & Security
    Replies: 7
    Last Post: 01-27-2004, 03:16 PM
  4. Bash :: Command recursion to a directories' contents
    By Schotty in forum Linux - Software, Applications & Programming
    Replies: 7
    Last Post: 01-27-2003, 07:31 PM
  5. BASH:  run command over long list, appnd 2 file
    By Blaqb0x in forum Linux - Software, Applications & Programming
    Replies: 1
    Last Post: 04-25-2002, 05:30 PM

Bookmarks

Posting Permissions

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