Posts Tagged ‘networking’

Enable ping on Windows Server 2008

February 12th, 2010
I am unable to Ping my Windows Server 2008 box, how can I enable Ping?

By default Microsoft disables Ping on the Windows platform, probably has an added security measure. However Ping maybe needed for testing or monitoring purposes. The process to allow Windows Server to respond to Pings is minimal, requiring minimal changes to the Windows firewall.

Go to Start > Administrative Tools > Windows Firewall with Added Security

start-control-panel

On the sidebar look for Inbound Rules > File and Print Sharing (Echo Request – ICMPv4-IN) > right click on Enable Rule

enable-rule

The rule has now been enabled and the server will respond to Pings.

rules-enabled

If you wish to later disable ping all you have to do is right click on the rule and select > Disable Rule

Configure Ubuntu Server with static IP

January 13th, 2010

It’s not recommended to assign IP address to servers using DHCP since the IP address can change after the lease expires. Just imagine having all the users or devices that need access to the server stopping because the server changed IP address.

In Ubuntu/Linux the process of assigning a static IP to the server is an easy task that only requires the modification of one file and issuing a few commands.

Using you favorite text editor open the file /etc/network/interfaces.

sudo nano /etc/network/interfaces

This is how the the /etc/network/interfaces file looks like.

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
 
# The loopback network interface
auto lo
iface lo inet loopback
 
# The primary network interface
auto eth0
iface eth0 inet dhcp

You can safely erase all the information for eth0 and add the information below. Make sure to change the information in order to meet your networking requirements.

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

After adding the appropriate networking information you can restart the networking service for the new changes to take effect.

sudo /etc/init.d/networking restart

How To Set A Static IP On Ubuntu 8.10

November 12th, 2008

Known network manager bug https://bugs.edge.launchpad.net/ubuntu/+source/network-manager/+bug/284298

Due to a bug if you want to assign a static IP on Ubuntu 8.10 Desktop your setting will be overwritten after the next reboot because of a bug that escaped the Ubuntu team. The bug is annoying and silly that something so basic would escape the development team.

Any way there are two solutions one uses the command line and the second one the GUI.

First Solution

First solution is to get down and dirty with the command line, it takes less than 2 minutes. Edit /etc/network/interfaces and enter the following values.

sudo nano /etc/network/interfaces
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.1.3
network 192.168.1.0
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1

And save it.

Now move on to edit the /etc/resolv.conf. And add the name server.

sudo nano /etc/resolv.conf
nameserver 192.168.1.1

If you don’t want to reboot the system restart the networking service instead.

sudo /etc/init.d/networking restart

Second Solution

  1. Right click on the network icon located in the top panel. Select Edit Connections…
  2. Right click on Add. This is when we add the new configuration.
  3. Now you are presented with empty fields. Check Connect automatically at the top, otherwise the older configuration will take over. For the configuration to work you need to provide the MAC address of your network interface card in my case it’s eth0.Tip : Issue ifconfig in the command line and copy and paste the resulting MAC address.
  4. In the same windows select the IPv4 Setting tab, the drop down menu will offer various option select Manual.
  5. After selecting Manual you have to provide the IP Address, Netmask, Gateway and DNS Server. Now click OK to save the settings.
  6. Now the new connection named “Wired connection 1″ is available.
  7. Go back to the network icon located in the top panel and right click on it. Wired Connection 1 is now an option right click on it. The system will now change from the previous interface configuration the the new one.Tip :  To verify the changes issue the ifconfig command.
  8. The last and perhaps most important step is to go back in to Edit Connections… and unchecked the Connect automatically option on Auto eth0 which is the previous faulty Ubuntu configuration. Failure to do so will result in the Auto eth0 taking over the new configuration on the next reboot.

Drop me a line if this was of any help to you.