Page 1 of 1

How to set fixed LAN IP when using Bubba|Two as mini server

Posted: 24 Dec 2008, 19:17
by Xargon
This guide helps you set a fixed IP when using Bubba|Two as mini server i.e no fw/routing

In the web based admin set WAN to "Obtain IP-address automatically (DHCP)"

Log on Bubba using SSH
Become root

Code: Select all

su
"Edit network settings"

Code: Select all

nano /etc/network/interfaces
"Add network preferences (replace xyz with your prefs i.e. 192.168.5.5 etc)"

Code: Select all

auto lo
iface lo inet loopback

iface eth1 inet static
              adress xyz
              netmask xyz
              gateway xyz

iface eth0 inet dhcp
"save and exit nano"

"restart server"

Code: Select all

shutdown -r now
Now Bubba should have a fixed IP and be able to access/be accessed the Internet via your gateway. If course you need to port forward relevant ports if you want to remote access it.

BR,
Xargon

Posted: 25 Dec 2008, 05:57
by ahoff
"Add network preferences (replace xyz with your prefs i.e. 192.168.5.5 etc)"
Code:
auto lo
iface lo inet loopback

iface eth1 inet static
address xyz
netmask xyz
gateway xyz

iface eth0 inet dhcp
"save and exit nano"
Just to make things clear. You can't use the same numbers in the netmask line and the gateway line as in the adress line.
It should look something like this instead if you use 192.168.5.5 as your bubba ip-address:

Code: Select all

iface eth1 inet static
              adress 192.168.5.5
              netmask 255.255.255.0
              gateway 192.168.5.1
gateway = your router LAN ip-adress