PDA

View Full Version : new dhcp lease and terminal




spookz
Mar 25, 2004, 10:43 AM
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



jeremy.king
Mar 25, 2004, 11:04 AM
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.

spookz
Mar 25, 2004, 04:29 PM
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

jeremy.king
Mar 25, 2004, 04:36 PM
You question isn't very clear. So are you are seeing one IP address in cocktail and another from ifconfig? Is that the problem?

jeremy.king
Mar 25, 2004, 04:38 PM
Also what IP do you see in the ol Network Preference?

spookz
Mar 25, 2004, 05:03 PM
network prefs shows my new ip address
the terminal prompt shows old one

no biggie. just aesthetics ;)