PDA

View Full Version : Debian Question


AngelDrago
25th October 2005, 17:03
hi everyone with all the problems i was having i deceide to give debian a try the wired thing is it found my domain name and my nameservers :confused: anyway my question is this... if i understand it right from the perfect setup for debian

for addional ip's i need to change this from the original (below)
127.0.0.1 localhost.localdomain localhost server1
192.168.0.100 server1.example.com server1
192.168.0.101 virtual-ip1.example.com virtual-ip1

to this...
127.0.0.1 localhost.localdomain localhost server1
192.168.0.100 server1.mydomain.com server1
192.168.0.101 virtual-ip1.mydomain.com virtual-ip1
192.168.0.102 virtual-ip2.mydomain.com virtual-ip2
192.168.0.103 virtual-ip3.mydomain.com virtual-ip3

mydomain= primary domain and not new domain :confused:

Correct!!!

anyhelp is alway very appriciated
Thank you all
AngelDrago

falko
25th October 2005, 18:23
What's your exact question?

AngelDrago
25th October 2005, 19:09
i got five ip's that i need to implement and i never used the debian before and i do not like to make mistakes... it guess i like to get conformation i'm doing it right.. if i'm not please advice me.. it's seems so much easier in suse(LOL)

Thank you
AngelDrago

falko
25th October 2005, 19:32
for addional ip's i need to change this from the original (below)
127.0.0.1 localhost.localdomain localhost server1
192.168.0.100 server1.example.com server1
192.168.0.101 virtual-ip1.example.com virtual-ip1

to this...
127.0.0.1 localhost.localdomain localhost server1
192.168.0.100 server1.mydomain.com server1
192.168.0.101 virtual-ip1.mydomain.com virtual-ip1
192.168.0.102 virtual-ip2.mydomain.com virtual-ip2
192.168.0.103 virtual-ip3.mydomain.com virtual-ip3


Yes, looks ok.

themachine
25th October 2005, 20:30
I believe what your looking for is how to configure the IP address on your network device.

Networking info is found in the file '/etc/network/interfaces' file. In order to add IP's you need to edit this file. For example, it probably looks like:


auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 10.1.1.10
netmask 255.0.0.0
gateway 10.1.1.1


Generally, when you are adding additional IP addresses... you create them as "alias" devices to eth0 (unless you want to add them to a second interface card). Aliases are in the form of "eth0:0, eth0:1, etc". So, you will need to add something like the following for *each* additional IP address:

auto eth0:0
iface eth0:0 inet static
address 10.1.1.100
netmask 255.0.0.0

auto eth0:1
iface eth0:1 inet static
address 10.1.1.101
netmask 255.0.0.0

...etc


Then of course restart networking and verify...

/etc/init.d/networking restart

ifconfig -a



Hope that helps.

AngelDrago
25th October 2005, 21:16
thank you themachine... i understood that one but was not sure with the other one and thank you falko for clarification for the above...

Peace
AngelDrago

stlshawn
18th January 2006, 04:16
OK, so i'm trying to assign three ip's to this machine on the same nic card, so i go into /etc/network/interfaces and alther things there.

I don't know why, but when i change eth0 to eth0:0 things go badly.
Here's how it sets now,

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 24.182.139.77
netmask 255.255.255.248
network 24.182.139.72
broadcast 24.182.139.79
gateway 24.182.139.73
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 24.217.0.5
dns-search arwenspets.com

#auto eth0:1
#iface eth0:1 inet static
# address 24.182.139.76
# netmask 255.255.255.248
# network 24.182.139.72
# broadcast 24.182.139.79
# gateway 24.182.139.73
# # dns-* options are implemented by the resolvconf package, if installed
# dns-nameservers 24.217.0.5
# dns-search arwenspets.com
#
#auto eth0:2
#iface eth0:2 inet static
# address 24.182.139.75
# netmask 255.255.255.248
# network 24.182.139.72
# broadcast 24.182.139.79
# gateway 24.182.139.73
# # dns-* options are implemented by the resolvconf package, if installed
# dns-nameservers 24.217.0.5
# dns-search arwenspets.coms

now if i change the first eth0 to eth0:0 the machine is unreachable.
This is a debian install, if that makes a difference.
Is there something else i should be doing, is there some other file that needs altered?:eek:

stlshawn
18th January 2006, 05:25
:D
OK, so i needed to make a change.....
I had to leave the part that said eth0 as eth0 and add one for eth0:0, eth0:1, and so forth.

here's the final one.
# 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 static
address 24.182.139.77
netmask 255.255.255.248
network 24.182.139.72
broadcast 24.182.139.79
gateway 24.182.139.73
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 24.217.0.5
dns-search arwenspets.com

auto eth0:0
iface eth0:0 inet static
address 24.182.139.76
netmask 255.255.255.248
network 24.182.139.72
broadcast 24.182.139.79
gateway 24.182.139.73
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 24.217.0.5
dns-search arwenspets.com

auto eth0:1
iface eth0:1 inet static
address 24.182.139.75
netmask 255.255.255.248
network 24.182.139.72
broadcast 24.182.139.79
gateway 24.182.139.73
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 24.217.0.5
dns-search arwenspets.com

ahh, searching for answers, that's what life's all about. I'm lovin' this whole linux thing.

ISPConfig is a wonderful thing, as is the whole linux revolution. I'm having more fun learning than i have in years.

Be Happy!
Shawn

falko
18th January 2006, 06:05
:D
OK, so i needed to make a change.....
I had to leave the part that said eth0 as eth0 and add one for eth0:0, eth0:1, and so forth.


Yes, that's right. :)