Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 5th November 2006, 13:26
domino domino is offline
Senior Member
 
Join Date: Aug 2005
Posts: 364
Thanks: 0
Thanked 9 Times in 8 Posts
Default Config Ubuntu 6.10 NIC with multi-IP addresses

Does anyone know how to give multiple IP address to a single network card. I'm using Ubuntu 6.10. This is my current interfaces file.

Code:
# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
#iface eth0 inet dhcp
iface eth0 inet static
	address 192.168.0.20
	netmask 255.255.255.0
	network 192.168.0.0
	broadcast 192.168.0.255
	gateway 192.168.0.10
__________________
Shuttle XPC | Intel 865g | P4 3.2Ghz | ATI 9800 Pro
Hosts: Ubuntu 6.10 ~ XGL-Beryl SVN-Gnome | OS X 10.4.8 | WindowsXP
Virtual Appliances: Ubuntu Server 6.10 | WindowsXP | CentOS 4.4
Reply With Quote
Sponsored Links
  #2  
Old 6th November 2006, 14:28
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Have a look at the Debian Sarge tutorial: http://www.howtoforge.com/perfect_setup_debian_sarge_p3
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 6th November 2006, 19:47
domino domino is offline
Senior Member
 
Join Date: Aug 2005
Posts: 364
Thanks: 0
Thanked 9 Times in 8 Posts
Default

Ahh, I forgot to add the IP's to the hosts file

Thanks!
__________________
Shuttle XPC | Intel 865g | P4 3.2Ghz | ATI 9800 Pro
Hosts: Ubuntu 6.10 ~ XGL-Beryl SVN-Gnome | OS X 10.4.8 | WindowsXP
Virtual Appliances: Ubuntu Server 6.10 | WindowsXP | CentOS 4.4
Reply With Quote
  #4  
Old 6th November 2006, 21:55
domino domino is offline
Senior Member
 
Join Date: Aug 2005
Posts: 364
Thanks: 0
Thanked 9 Times in 8 Posts
Default

Shoold I be conserned about this waring? this message on showed after adding all 5 IP's in /etc/hosts
Code:
user@linux:~# /etc/init.d/networking restart
 * Reconfiguring network interfaces...
SIOCDELRT: No such process
SIOCDELRT: No such process
SIOCDELRT: No such process
SIOCDELRT: No such process
SIOCDELRT: No such process
   ...done.
/etc/hosts

Code:
127.0.0.1	localhost	linux
#127.0.1.1	linux.WorkGroup	linux
192.168.20.20	linux.mydomain.com linux
192.168.20.21	virtual-ip1.mydomain.com	virtual-ip1
192.168.20.22	virtual-ip2.mydomain.com	virtual-ip2
192.168.20.23	virtual-ip3.mydomain.com	virtual-ip3
192.168.20.24	virtual-ip4.mydomain.com	virtual-ip4
192.168.20.25	virtual-ip5.mydomain.com	virtual-ip5

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
/etc/network/interfaces

Code:
# 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
iface eth0 inet static
	address 192.168.20.20
	netmask 255.255.255.0
	network 192.168.20.0
	broadcast 192.168.20.255
	gateway 192.168.20.10

auto eth0:0
iface eth0:0 inet static
	address 192.168.20.21
	netmask 255.255.255.0
	network 192.168.20.0
	broadcast 192.168.20.255
	gateway 192.168.20.10

auto eth0:1
iface eth0:1 inet static
	address 192.168.20.22
	netmask 255.255.255.0
	network 192.168.20.0
	broadcast 192.168.20.255
	gateway 192.168.20.10

auto eth0:2
iface eth0:2 inet static
	address 192.168.20.23
	netmask 255.255.255.0
	network 192.168.20.0
	broadcast 192.168.20.255
	gateway 192.168.20.10

auto eth0:3
iface eth0:3 inet static
	address 192.168.20.24
	netmask 255.255.255.0
	network 192.168.20.0
	broadcast 192.168.20.255
	gateway 192.168.20.10

auto eth0:4
iface eth0:4 inet static
	address 192.168.20.25
	netmask 255.255.255.0
	network 192.168.20.0
	broadcast 192.168.20.255
	gateway 192.168.20.10
ifconfig

Code:
eth0      Link encap:Ethernet  HWaddr 00:0C:29:35:BF:A4  
          inet addr:192.168.20.20  Bcast:192.168.20.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fe35:bfa4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:284 errors:0 dropped:0 overruns:0 frame:0
          TX packets:325 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:252091 (246.1 KiB)  TX bytes:25954 (25.3 KiB)
          Interrupt:185 Base address:0x1400 
 
eth0:0    Link encap:Ethernet  HWaddr 00:0C:29:35:BF:A4  
          inet addr:192.168.20.21  Bcast:192.168.20.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:185 Base address:0x1400 
 
eth0:1    Link encap:Ethernet  HWaddr 00:0C:29:35:BF:A4  
          inet addr:192.168.20.22  Bcast:192.168.20.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:185 Base address:0x1400 
 
eth0:2    Link encap:Ethernet  HWaddr 00:0C:29:35:BF:A4  
          inet addr:192.168.20.23  Bcast:192.168.20.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:185 Base address:0x1400 
 
eth0:3    Link encap:Ethernet  HWaddr 00:0C:29:35:BF:A4  
          inet addr:192.168.20.24  Bcast:192.168.20.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:185 Base address:0x1400 
 
eth0:4    Link encap:Ethernet  HWaddr 00:0C:29:35:BF:A4  
          inet addr:192.168.20.25  Bcast:192.168.20.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:185 Base address:0x1400 
 
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:12 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1309 (1.2 KiB)  TX bytes:1309 (1.2 KiB)
__________________
Shuttle XPC | Intel 865g | P4 3.2Ghz | ATI 9800 Pro
Hosts: Ubuntu 6.10 ~ XGL-Beryl SVN-Gnome | OS X 10.4.8 | WindowsXP
Virtual Appliances: Ubuntu Server 6.10 | WindowsXP | CentOS 4.4

Last edited by domino; 7th November 2006 at 17:54.
Reply With Quote
  #5  
Old 7th November 2006, 16:49
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

What's the output of
Code:
ifconfig
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 7th November 2006, 17:57
domino domino is offline
Senior Member
 
Join Date: Aug 2005
Posts: 364
Thanks: 0
Thanked 9 Times in 8 Posts
Default

I edited my post. It doesn't seem to have any effect. All IP addesses work fine.
__________________
Shuttle XPC | Intel 865g | P4 3.2Ghz | ATI 9800 Pro
Hosts: Ubuntu 6.10 ~ XGL-Beryl SVN-Gnome | OS X 10.4.8 | WindowsXP
Virtual Appliances: Ubuntu Server 6.10 | WindowsXP | CentOS 4.4
Reply With Quote
  #7  
Old 8th November 2006, 17:53
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
 
Default

Then everything's ok, I guess.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig on Ubuntu 6.10 falko Installation/Configuration 12 8th February 2008 17:52
NEEDED : Ubuntu 6.10 (Edgy Eft) ISP Server Setup with DTC (v 0.24.2.0) tyranno Suggest HOWTO 3 31st October 2006 23:58
Log for Debugging jwan Installation/Configuration 5 27th October 2006 14:34
Problem with the apache (I can't start ist) M.Behrens Installation/Configuration 11 31st March 2006 10:48
Is there a testing procedure for ISPConfig? deezone Installation/Configuration 14 22nd January 2006 19:41


All times are GMT +2. The time now is 04:21.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.