2012-04-01, 21:53
I've installed a fresh copy of XBMC Eden 11 as the only OS on an old laptop I'm using as the media PC. I've modified the /etc/network/interfaces file to configure the Ethernet connection to use a static IP:
This works fine if I run sudo /etc/init.d/networking restart, but uses DHCP-assigned IPs after waking from sleep or rebooting. How can I make it use static IPs after powerup?[/code]
Code:
auto lo eth0
allow-hotplug lo eth0
iface lo inet loopback
iface eth0 inet static
address 10.0.0.99
netmask 255.255.255.0
gateway 10.0.0.1
This works fine if I run sudo /etc/init.d/networking restart, but uses DHCP-assigned IPs after waking from sleep or rebooting. How can I make it use static IPs after powerup?[/code]