Skip to main content

How to change Ubuntu Server from DHCP to Static IP

In Ubuntu, all the IP Address is store on /etc/network/interfaces file. So, i have to open this file by using vi to add the Static IP to this file.

Here are steps

1.
sudo vi /etc/network/interfaces


2.
auto eth0
iface eth0 inet dhcp

this 2 statement show that your Ubuntu server was in DHCP. Enter the following statement to set the IP Address

auto eth0
iface eth0 inet static
address 192.168.1.101
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1

after save it. You should able to use the IP address already.

Comments

Popular posts from this blog

What is a kernel panic? (Mac OS X)

I believed most of the Mac OS user see this screen before. Most of your will feel panic when u see this screen. After this screen appear, your just need to press power button off and on your Mac. Your system will back to normal. But i think your do not know what was happening. It is because the kernel of an operating system receives an instruction in an unexpected format, or that it fails to handle properly. A kernel panic may also follow when the operating system is not able to recover from a different type of error. A kernel panic can be caused by damaged or incompatible software or, more rarely, damaged or incompatible hardware.

How to Prevent "Low Disk Space" Error Messages

Sometimes, when you try to open the C: or D: drive in your computer, you will get a warning about low disk space. Even when you try to delete files, you may still get the same message. Here's what to do. Run the Registry Editor (REGEDIT.EXE). Open HKEY_CURRENT_USER\ Software\ Microsoft\ Windows\ CurrentVersion\ Policies\ Explorer. If it's not there, create a DWORD value and call it NoLowDiskSpaceChecks. Double-click on NoLowDiskSpaceChecks, and enter the value 1, and press OK.

How to Create a Mailing List in Outlook Express

If you want send the same email to several people, you might feel frustrated cause you need to enter a lot of email address on the same time even the people are in the same group. To solve this problem, you can try set up a mailing list. With this list, you can email several people at once without choosing each email address separately. To set up a mailing list using Outlook Express: . Select Tools | Address Book... from the menu in Outlook Express. Select File | New Group... from the address book's menu. Type the name of your mailing list in the Group Name: field. Eg: ITDept Click the "Select Members" button on the right. Click a name from your "Contacts" list. Click the "Select" button. Click another name from the list and click "Select" again. Continue choosing names until you complete your list. Click the "OK" button at the bottom of the box when your selection is complete. Click "OK" if you are finished.