DHCP, Mail, Static IP



Getting DHCP working

Choose DHCP in linuxconf
Check what Linuconf does by looking in /etc/network/interfaces - this file can be edited directly

We plugged into the network which dishes out all the network settings and the browser found the internet although we couldn't ping some sites from the shell — why? We don't know.

  top

Configuring Mail

The default mail transport agent is called Exim. To get our server to send through our SMTP server, we had to:

dpkg-reconfigure exim

We chose option 2 to start with smarthost (this sends everything to our isp rather than trying to contact each recipient host server directly). All our other options were default except the outgoing mail which we set to our isp that we are connected to through a LAN. Set the domain to something real. We didn't do that so we had to go back and change the exim.conf file.

/etc/exim/exim.conf

We set qualify_domain to something real.

We set up an admin account to get root's mail. We did this in Exim (we had previously created the admin user)

  top

Setting up a static IP

This assumes that you have a fixed IP address available and you can just plug into it.

/sbin/ifconfig is the interface details. eth[number] is the interface, starting at 0.

/sbin/route shows want IP numbers go out what interface

Open /etc/networks/interfaces

Comment out the DHCP lines and change the Address to the IP address. Change the gateway to that machine if you know that. Comment out the broadcast and network because it will figure them out by itself.

Then run

ifdown eth0

and

ifup eth0