Posted by: isaraffee | August 29, 2009

Configuring IP Address in Dreamlinux 2.2

Configuring IP Address in Dreamlinux 2.2

This is the configuration file to set the network settings if you are using broadband modem i.e. you should set its IP address as DHCP.

root@mars:~# less /etc/network/interfaces

### Network settings #####

# Loopback

auto lo

iface lo inet loopback

iface eth0 inet dhcp

auto eth0

Alternatively you can also set it by using the GUI. Click on the DCP-Control Panel and launch Network Admin.. But sometimes, Dreamlinux failed to lauch the GUI. So another method is to type:

root@mars:~# network-admin

If there are error messages displayed, ignore them. The Network Settings window will pop up and you can set the network settings.

If you are setting the IP address for LAN, you have to use static IP address. Edit the /etc/network/interfaces file as show below.

root@mars:~# vi /etc/network/interfaces

### Network settings #####

# Loopback

auto lo

iface lo inet loopback

iface eth0 inet static

address 172.16.0.2

netmask 255.255.0.0

gateway 172.16.0.1

And restart the network process.

root@mars:/etc/init.d# ./networking

Usage: /etc/init.d/networking {start|stop|restart|force-reload}

Test the Network Settings

Ping the network interface eth0 and another terminal that is connected to the server to see that the network settings are set correctly.

root@mars:~# ping 172.16.0.2

PING 172.16.0.2 (172.16.0.2) 56(84) bytes of data.

64 bytes from 172.16.0.2: icmp_seq=1 ttl=64 time=0.106 ms

64 bytes from 172.16.0.2: icmp_seq=2 ttl=64 time=0.097 ms

— 172.16.0.2 ping statistics —

2 packets transmitted, 2 received, 0% packet loss, time 999ms

Above is the ping results to the Dreamlinux itself.

My Dreamlinux server is connected to another server, an Ubuntu server over a WAN connection. Take note of the IP address of my Ubuntu server. It is on another network segment, i.e. 172.18.0.0. Below is the ping results to the Ubuntu server.

root@mars:~# ping 172.18.0.2

PING 172.18.0.2 (172.18.0.2) 56(84) bytes of data.

64 bytes from 172.18.0.2: icmp_seq=1 ttl=62 time=27.4 ms

64 bytes from 172.18.0.2: icmp_seq=2 ttl=62 time=27.4 ms

64 bytes from 172.18.0.2: icmp_seq=3 ttl=62 time=27.4 ms

— 172.18.0.2 ping statistics —

3 packets transmitted, 3 received, 0% packet loss, time 2002ms

rtt min/avg/max/mdev = 27.401/27.426/27.440/0.192 ms

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: