LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-30-2003, 08:25 AM   #1
Mouse_103
LQ Newbie
 
Registered: Mar 2003
Distribution: slackware
Posts: 4

Rep: Reputation: 0
how to add / bind ip addresses to one box on slackware ?


I have slackware box and my ISP gave me 16 ip addresses to use for my box.

wondering how to bind multi ip addresses on the slackware

so http server can use one ip and other service can use one diff ip.

Thanks.

Mouse
 
Old 03-30-2003, 08:39 AM   #2
iphoting
LQ Newbie
 
Registered: Mar 2003
Distribution: Mandrake
Posts: 12

Rep: Reputation: 0
U can do an alias

ifconfig --help shoud give you some idea.
 
Old 03-30-2003, 10:25 AM   #3
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
For example:
ifconfig eth0:1 192.168.1.34
 
Old 03-30-2003, 01:11 PM   #4
syntac
LQ Newbie
 
Registered: Mar 2003
Distribution: Gentoo
Posts: 7

Rep: Reputation: 0
I have a server that I run that hosts multiple IPs and this is how I bind the IP addresses to my server. Since I only have one ethernet card, I have to create virtual hosts on eth0.

You can use ifconfig to add them to your network. In my /etc/rc.d/rc.local, I have the following (so it starts up and adds them everytime):

/sbin/ifconfig eth0:0 <ip> netmask <netmask> up
/sbin/ifconfig eth0:1 <ip> netmask <netmask> up
/sbin/ifconfig eth0:2 <ip> netmask <netmask> up
/sbin/ifconfig eth0:3 <ip> netmask <netmask> up

Where <ip> and <netmask> are the IP and netmask, respectively.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bind 2 ip addresses to the server txm123 Linux - Newbie 2 11-08-2004 01:31 PM
Missing IP addresses BIND 9 rdavis@intdoc.c Linux - Networking 0 07-01-2004 10:18 AM
Bind Multi IP addresses to a single NIC sitg Linux - Networking 2 04-30-2004 09:59 PM
How to add IP addresses nigeledge Linux - Networking 5 04-16-2004 06:25 AM
2 IP addresses on the same Linu box Zingaro2002 Linux - Networking 11 02-26-2003 06:49 AM


All times are GMT -5. The time now is 04:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration