Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: axessit on October 22, 2010, 11:00:39 AM

Title: How to get eth1 to renew address
Post by: axessit 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 ?
Title: Re: How to get eth1 to renew address
Post by: cactus 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
Title: Re: How to get eth1 to renew address
Post by: CharlieBrady on October 22, 2010, 02:06:07 PM
sv t /service/wan
Title: Re: How to get eth1 to renew address
Post by: axessit on October 23, 2010, 05:51:01 AM
Quote
sv t /service/wan
Cheers Charlie, that worked.