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,758

    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. BASH history... for years
    By yarikoptic in forum Linux - General Topics
    Replies: 9
    Last Post: 03-07-2005, 03:34 PM
  2. Bash customization
    By TeRG in forum Linux - General Topics
    Replies: 1
    Last Post: 12-14-2003, 05:46 PM
  3. Hyperterm equivalent
    By Tyr_7BE in forum Linux - Software, Applications & Programming
    Replies: 3
    Last Post: 06-01-2003, 05:18 AM
  4. Perl to bash
    By Dizzybacon in forum Linux - Software, Applications & Programming
    Replies: 7
    Last Post: 06-22-2002, 07:59 AM
  5. Replies: 5
    Last Post: 04-18-2002, 10:56 AM

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
  •