Our server if rebooted goes to DHCP even if we have provided static IP to the server. What all changes needs to be done so that even machine reboots it will boot with static IP. Pl. help.
Our server if rebooted goes to DHCP even if we have provided static IP to the server. What all changes needs to be done so that even machine reboots it will boot with static IP. Pl. help.
Edit
/etc/network/interfaces
file (requires root / sudo access) and provide details for the IP addresses required.An example is:
Restart networking with
/etc/init.d/networking restart
Remember also to set up DNS servers - if you use
resolvconf
service (check byservice resolvconf status
), then you may add the desired DNS server entry to/etc/resolvconf/resolv.conf.d/head
file:and restart
resolvconf
by issuingservice resolvconf restart
.