why
To get the scripts from this site,and perhaps other files,you need network connection.
When you are going the computer as a desktop PC, you are fine with a DHCP address.
But when you are going to use it as a server (SAN or NAS, Webserver, mailserver, DNS, ...),
you want to be able to access it with a predictable IP address, so give it
a fixed IP address.
how
Connect the BBS2 with a UTP cable to your LAN (switch, router, or modem).
After installation, your BBS2 connects to the LAN using DHCP.
If it works, you're fine.
Otherwise check your DHCP setings on the DHCP server (can other PC's in your LAN connect to the Internet using DHCP ?).
If you're fine with a DHCP lease, then skip the rest of this page.
Fixed IP address
If you want the BBS to work as a server,
you probably want to give it a fixed IP address,
known by the NAT table of your router / firewall.
Router
First choice: put the MAC address in the routers DHCP table,
and combine it with the desired IP address.
The DCHP router will then give that IPI address to your server.
You may find the MAC address in the configuration page of your router,
along with the current temporal IP address.
Desktop
in the Ubuntu desktop you see a pull-down menu.
Choose System, Preferences, Network Configuration.
Select Wired, Auto eth0, hit edit.
Connection name: eth0
Tab IPv4 settings: Method: Manual, Add
10.0.0.5 255.255.255.0 10.0.0.1
DNS: 192.168.0.1
Note: of course, you must fill in the propriate values of your own LAN here.
Start the firefox browser, and visit any site on the Internet.
If it works, you're fine.
Then you may even want to try this site...
Server
Edit the file /etc/network/interfaces
to contain the folowing text:
# 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 # removed
iface eth0 inet static
address 10.0.0.5
netmask 255.255.255.0
gateway 10.0.0.1
Be sure to use the IP addresses of your own network:
- find the old addresses with the command
ifconfig eth0
- choose a new free IP address in your network range, but not in the DHCP range
- copy the netmask
- the gateway is the 'inside' addres of your Internet router
Save it, and restart it with:
- ifdown eth0
- ifup eth0
- ifonfig eth0
The last command should display the new IP address.
Finally
If this fails:...
- check your LAN cables
- check the IP address, mask, gateway and DNS.
Ping the gateway and the DNS.
- check the IP address, mask gateway and DNS supplied by the DHCP server.