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 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.

How to setup Apple Wireless Keyboard

By default, Apple Wireless keyboard is not functioning at all. In order to make the Wireless Keyboard workable, follow the following steps to setup it: Install the Apple Wireless Keyboard and Mouse software that came with the keyboard. Insert the CD, double-click the installer, and follow the onscreen instructions. Turn the keyboard over, install the batteries as illustrated and replace the battery cover. Open the Bluetooth Setup Assistant. Click Continue . At the Select Device Type panel, select Keyboard. Do not click Continue yet. Using the power switch on the bottom of the keyboard, turn the keyboard on. The light above the power switch should begin to flash. Click Continue . The keyboard's name should appear in the device list of the Search pane. Select the keyboard in the Setup Assistant listing, then click Continue . The assistant will try to pair with the keyboard. When the Setup Assistant prompts you to do so, type the passkey shown in the Setup Assistant on the Apple ...