PDA

View Full Version : Broadband connection with fixed IP


satimis
6th January 2007, 07:10
Hi folks,

Ubuntu-6.06.1-LAMP-server-amd64

Now I'm running Static IP (fixed IP)

Connection;
Ubuntu server --> Router --> Modem --> ISP

Which file I have to edit to setup broadband connection? TIA

The Router is supplied by ISP with pre-set Virtual IP;
192.168.0.10 to 192.168.0.60


If making the connection without router;
Ubuntu server --> Modem --> ISP

What shall be the settings. Tks


B.R.
satimis

falko
7th January 2007, 19:19
Why do you want to leave out the router? :confused:
I guess 192.168.0.10 to 192.168.0.60 is the DHCP range for your local network, so you can assign another IP address to your Ubuntu system, e.g. 192.168.0.61. This can be done in /etc/network/interfaces. Take a look here: http://www.howtoforge.com/perfect_setup_ubuntu_6.06_p3

satimis
8th January 2007, 05:20
Hi falko,

Tks for your advice and link.


Why do you want to leave out the router

Just for curiosity. I'm planning to build a working ISP server with CentOS as OS on an AMD Athlon64 X2 AM2 box. The static broadband shall be used solely by the server. In such a case I don't need the router.

I called ISP about the router in order to learn more about it. The reply was "don't touch it".


I guess 192.168.0.10 to 192.168.0.60 is the DHCP range for your local network, so you can assign another IP address to your Ubuntu system, e.g. 192.168.0.61. This can be done in /etc/network/interfaces.

If I understood your advice correctly. On a 2nd Ubuntu box plugged on the router I have to edit /etc/network/interfaces as follow;
auto eth0
iface eth0 inet static
address 192.168.0.61
netmask 255.255.255.0
broadcast 192.168.0.255
gateway 192.168.0.1

?????

Remark: ISP preset router as follow:
Suggested Virtual IP: 192.168.0.10 to 192.168.0.60
Default Gateway: 192.168.0.1
NetMask: 255.255.255.192

DNS Server: xxx.xxx.xxx.xxx
WAN IP: xxx.xxx.xxx.xxx
NetMask: 255.255.255.255

What about On 3rd Ubuntu box "192.168.0.???" etc. ?

Shall I make change on "NetMask"???

TIA

B.R.
satimis

falko
9th January 2007, 00:39
auto eth0
iface eth0 inet static
address 192.168.0.61
netmask 255.255.255.0
broadcast 192.168.0.255
gateway 192.168.0.1

?????

It's
auto eth0
iface eth0 inet static
address 192.168.0.61
netmask 255.255.255.0
broadcast 192.168.0.255
gateway 192.168.0.1The leading spaces are important.

satimis
9th January 2007, 06:28
It's
auto eth0
iface eth0 inet static
address 192.168.0.61
netmask 255.255.255.0
broadcast 192.168.0.255
gateway 192.168.0.1The leading spaces are important.
Noted with tks.

What about the 3rd and 4th boxes? The router has 4 ports for 4 PCs.

Tks


B.R.
satimis

falko
10th January 2007, 17:35
What about the 3rd and 4th boxes? The router has 4 ports for 4 PCs.

You can plug in a third and fourth PC into it. Either have their network settings configured automatically with DHCP, or assign static IP addresses to them (as shown before).