Thread: 8.04 server edition won't keep static IP
i set (well thought had) static ip address ubuntu server box using the
/etc/network/interfaces file below , ran
sudo /etc/init.d/networking restart
, seemed well. got in morning , ip address had changed
192.168.5.27 192.168.5.19 meant hostname didn't resolve
correctly. have missed something?
less of /etc/network/interfaces
# file describes network interfaces available on system
# , how activate them. more information, see interfaces(5).
# loopback network interface
auto lo
iface lo inet loopback
# primary network interface
auto eth0
iface eth0 inet static
address 192.168.5.27
netmask 255.255.255.0
network 192.168.5.0
broadcast 192.168.5.255
gateway 192.168.5.254
hi markseddon,
record interfaces file is:
so can suggest remove network , broadcast addresses.code:# loopback network interface auto lo iface lo inet loopback # primary network interface auto eth0 iface eth0 inet static address 192.168.0.127 netmask 255.255.255.0 gateway 192.168.0.1
fyi first part of output ifconfig command is:
code:eth0 link encap:ethernet hwaddr 00:05:5d:01:99:2a inet addr:192.168.0.127 bcast:192.168.0.255 mask:255.255.255.0
Forum The Ubuntu Forum Community Ubuntu Specialised Support Ubuntu Servers, Cloud and Juju Server Platforms [ubuntu] 8.04 server edition won't keep static IP
Ubuntu
Comments
Post a Comment