- Open the /etc/network/interfaces file :-
- You can see the following lines in interfaces file :-
iface eth0 inet dhcp
- Change the following lines :-
iface eth0 inet static
address 192.168.1.11
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
dns-nameservers 8.8.8.8
- Then reboot the server.
No comments:
Post a Comment