new dhcp lease and terminal

Discussion in 'Mac Apps and Mac App Store' started by spookz, Mar 25, 2004.

  1. spookz macrumors member

    Joined:
    Feb 17, 2004
    #1
    i requested a new lease (ip address) thru cocktail. got one.
    terminal however still shows old one. how do i fix?

    last login......
    welcome to darvin
    [sxxxnxxx~] spooky%


    thanks
     
  2. jeremy.king macrumors 603

    jeremy.king

    Joined:
    Jul 23, 2002
    Location:
    Fuquay Varina, NC
    #2
    To see your current IP address from terminal you can use ifconfig command, it will list all of your configured interfaces. If you are using a wired connection the interface will probably be en0 or eth0 (i can't remember which). For more information just type "man ifconfig" in terminal.

    Also - even if you request a new lease, you may still end up with the same IP address. Its up to the DHCP provider to issue you one and unless you set yours manually, you have no control.
     
  3. spookz thread starter macrumors member

    Joined:
    Feb 17, 2004
    #3
    yes. the lease merely is renewed. same ip

    what i really meant to say is.... doing the manual ip change gets me a brand new ip but the change is not reflected in the terminal. is there a fix?

    thanks
     
  4. jeremy.king macrumors 603

    jeremy.king

    Joined:
    Jul 23, 2002
    Location:
    Fuquay Varina, NC
    #4
    You question isn't very clear. So are you are seeing one IP address in cocktail and another from ifconfig? Is that the problem?
     
  5. jeremy.king macrumors 603

    jeremy.king

    Joined:
    Jul 23, 2002
    Location:
    Fuquay Varina, NC
    #5
    Also what IP do you see in the ol Network Preference?
     
  6. spookz thread starter macrumors member

    Joined:
    Feb 17, 2004
    #6
    network prefs shows my new ip address
    the terminal prompt shows old one

    no biggie. just aesthetics ;)
     

Share This Page