I connect to internet via my dorm's ethernet and IP addresses are assigned by DHCP. I tried

sudo dhclient -r
dhclient

but that doesn't work. are there another commands i can issue?

p.s: I don't want to get a static IP, just get a new one.

link|improve this question

76% accept rate
I must ask why do you want a different address? – grawity Mar 5 '11 at 19:13
sites like rapidshare, fileserve etc. – sterz Mar 6 '11 at 4:52
feedback

2 Answers

up vote 4 down vote accepted

It is entirely up to the DHCP server. It probably will give you (the MAC address owner) the same address as long as the lease has not yet passed its expiration time.

link|improve this answer
is the lease expiration time solely determined by the DHCP server? if yes, i probably have to change my MAC addr. right? – sterz Mar 5 '11 at 13:39
feedback

Make sure your /etc/network/interfaces file has a line similar to this:

auto eth0
iface eth0 inet dhcp

Use this command to restart networking (and request DHCP IP in the process.)

sudo /etc/init.d/networking restart

You can also use this command to request DHCP: Ubuntu Request DHCP

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.