Setting Up A PXE Install Server On Ubuntu 9.10 - Page 2

3. Inital Server Configuation Setup

After the computer restarts, log in with the user (pxe) you created during installation.

We now need to set the password for the root account, open up terminal and type:

sudo passwd

and give root a password. (vadmin)

Now check you have the best update repository setup.

System --> Administration --> Software Sources

Use the drop down list and select Other.

Then click Select Best Server.

It will then test which server is best for you to use.

Let update manager install updates or run in terminal:

sudo apt-get update

Restart your system:

sudo reboot

If you have more than one ethernet port you will need to edit /etc/udev/rules.d/70-persistent-net.rules to ensure our network interfaces match the labels on the system

First check if your network connections are as you expected:

ifconfig

If they are not as expected then:

sudo gedit /etc/udev/rules.d/70-persistent-net.rules

Switch NAME="eth1" to eth0 and vise versa.

Restart your system:

sudo reboot

 

4. Setting Up A Static IP Address

Newer versions of Ubuntu use an application called network-manager to manage network connections, which works great with desktops and laptops, but not so well for servers, so we are going to remove network-manager.

sudo apt-get remove network-manager

Now let's set up the static IP addresses:

sudo gedit /etc/network/interfaces

Enter the following information in the text file, eth0 will be our Internet connection and eth1 will be our client connection:

   auto lo
   iface lo inet loopback
   auto eth0
   iface eth0 inet static
              address           [your.static.ip]
              netmask           [your.net.mask]
              network           [your.network]
              broadcast         [your.broadcast.addy]
              gateway           [your.gateway]
 auto eth1
 iface eth1 inet static
              address           [your.static.ip]
              netmask           [your.net.mask]
              network           [your.network]
              broadcast         [your.broadcast.addy]

Here is a example:

auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
               address            192.168.1.4
               netmask           255.255.255.0
               network           192.168.1.0
               broadcast          192.168.1.255
               gateway           192.168.1.1
auto eth1
iface eth1 inet static
               address            192.168.2.1
               netmask           255.255.255.0
               network           192.168.2.0
               broadcast          192.168.2.255
 #             gateway           192.168.2.1  leave out otherwise your internet  connection wont work

Then save this file and restart your networking settings.

sudo /etc/init.d/networking restart

You can confirm your ip address is set by typing the following after your networking has restarted.

ifconfig
Share this page:

0 Comment(s)