Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I configured a vlan interface on an xubuntu box and set it up for dhcp

eth1.125  Link encap:Ethernet  HWaddr d4:ae:52:6a:dd:81
      inet addr:  Bcast:  Mask:
      inet6 addr: fe80::d6ae:52ff:fe6a:dd81/64 Scope:Link
      RX packets:167 errors:0 dropped:0 overruns:0 frame:0
      TX packets:82 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:0
      RX bytes:7620 (7.6 KB)  TX bytes:11719 (11.7 KB)

my /etc/network/interfaces file contains the following

auto eth1.125
iface eth1.125 inet dhcp

The dhcp did work and I got an IP. However, I want to release/renew the IP on this interface. If I do "dhclient -r eth1.125", it releases the IP but I cant do "dhclient eth1.125" to renew. I have to reboot the box to get back an IP in the virtual interface. How can I renew without reboot ?

share|improve this question
Do a dhclient -v eth1.125 to get verbose output and find more details. – LawrenceC Jun 1 '13 at 4:19
I actually want to try that but the issue is the following. eth0 is the interface by which i am currently logged into the box. this interface has static ip. But when I do "dhclient eth1.125", it renews eth0 as well so i fear i will get disconnected from the box :( – test Jun 1 '13 at 4:44
For some reason, dhclient -r eth1.125 followed by dhclient -v eth1.125 did the trick. Though, i realize now that -v is probably for verbose. – test Jun 1 '13 at 5:07

You must log in to answer this question.

Browse other questions tagged .