Koozali.org: home of the SME Server

How to get eth1 to renew address

Offline axessit

  • *****
  • 213
  • +0/-0
How to get eth1 to renew address
« on: October 22, 2010, 11:00:39 AM »
Having been having issues with getting on internet with my ISP lately and am testing a couple of ADSL modems and swapping them over. Unfortunately at this stage I can't get them to use the same IP addresses (and actually don't want to), but when I swap them, I want to be able to renew the eth1 DHCP lease as both modems have different gateway IP's. I have tried
Code: [Select]
/etc/init.d/network restart but that doesn't renew it. Have tried
Code: [Select]
ifconfig eth1 down/up too but no good.

End up having to reboot the server.

Is there an equivalent to windows ipconfig /release /renew ?

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: How to get eth1 to renew address
« Reply #1 on: October 22, 2010, 01:39:52 PM »
Having been having issues with getting on internet with my ISP lately and am testing a couple of ADSL modems and swapping them over. Unfortunately at this stage I can't get them to use the same IP addresses (and actually don't want to), but when I swap them, I want to be able to renew the eth1 DHCP lease as both modems have different gateway IP's. I have tried
Code: [Select]
/etc/init.d/network restart but that doesn't renew it. Have tried
Code: [Select]
ifconfig eth1 down/up too but no good.
AFAIK that should work, are you sure you set the configuration of eth1 to be DHCP?
What is the output of the following command?
Code: [Select]
db configuration getprop ExternalInterface Configuration
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: How to get eth1 to renew address
« Reply #2 on: October 22, 2010, 02:06:07 PM »
sv t /service/wan

Offline axessit

  • *****
  • 213
  • +0/-0
Re: How to get eth1 to renew address
« Reply #3 on: October 23, 2010, 05:51:01 AM »
Quote
sv t /service/wan
Cheers Charlie, that worked.