To setup a domain, the server should assigned with a static ip address. Let's go ahead and assign static ip address on ubuntu server.
1. To should change your root password in order to proceed further. Type su and enter your new password that already created, and logged in as a root.
2. Type ifconfig on the terminal window. If it is not showing ip addresses, then you need to install net-tools. Make a track of inet, netmask and broadcast ip addresses and open interfaces file located under etc/network directory.
3. You need to edit this file and make an entry of ip-addresses. Now scroll down and goto dhcp and press insert button to make an entry. replace dhcp by typing static because we are assigning this server with a static ip-address.
Enter address, netmask, network, broadcast and gateway for your ubuntu server. Enter dns-nameservers, alongwith global dns. dns-nameservers ip address should be same with the ip-address of your server. Finally type dns-search with the name of your local server. Press esc on your keyboard, type : and type wq to save and exit from the file.
4. Finally restart network services by typing /etc/init.d/networking restart on your terminal window.
1. To should change your root password in order to proceed further. Type su and enter your new password that already created, and logged in as a root.
2. Type ifconfig on the terminal window. If it is not showing ip addresses, then you need to install net-tools. Make a track of inet, netmask and broadcast ip addresses and open interfaces file located under etc/network directory.
3. You need to edit this file and make an entry of ip-addresses. Now scroll down and goto dhcp and press insert button to make an entry. replace dhcp by typing static because we are assigning this server with a static ip-address.
Enter address, netmask, network, broadcast and gateway for your ubuntu server. Enter dns-nameservers, alongwith global dns. dns-nameservers ip address should be same with the ip-address of your server. Finally type dns-search with the name of your local server. Press esc on your keyboard, type : and type wq to save and exit from the file.
4. Finally restart network services by typing /etc/init.d/networking restart on your terminal window.
Comments
Post a Comment