LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 08-07-2007, 10:14 AM   #1
Rams3377
LQ Newbie
 
Registered: Aug 2007
Location: Miami, FL
Distribution: Debian Etch 4.0
Posts: 15

Rep: Reputation: 0
Configuring LAN


How do i configure multiple IP addresses to one NIC? I also need it to remember the config after reboot. Thanks for the help!
 
Old 08-07-2007, 11:07 AM   #2
linusali
LQ Newbie
 
Registered: Jul 2007
Location: Dubai
Distribution: Kubuntu - 9.04
Posts: 18

Rep: Reputation: 1
Hi,

Tell us about the distro that you are using,

In Redhat, you can create a virtual interface by creating a file named ifcfg-[iface name]:[number] in folder /etc/sysconfig/network-scripts/. for example to create a virtual interface for eth0, create a file called ifcfg-eth0:0 under the above folder.

All necessary parameters can be modified inside this file, for example:

DEVICE=eth0:0
ONBOOT=yes
BOOTPROTO=none
IPADDR=192.168.10.21
NETMASK=255.255.255.0
TYPE=Ethernet


Remember to restart the network using service network restart.

Regards
 
Old 08-07-2007, 11:32 AM   #3
Rams3377
LQ Newbie
 
Registered: Aug 2007
Location: Miami, FL
Distribution: Debian Etch 4.0
Posts: 15

Original Poster
Rep: Reputation: 0
I"m using CentOS 4.5. I'll give that a try. I used ifconfig to assign the IP's to a virual interface. However i wasn't sure that would stick if the machine went down for whatever reason.
 
Old 08-08-2007, 02:59 AM   #4
brianmcgee
Member
 
Registered: Jun 2007
Location: Munich, Germany
Distribution: RHEL, CentOS, Fedora, SLES (...)
Posts: 398

Rep: Reputation: 36
You may also use system-config-network
 
  


Reply

Tags
config, lan


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
configuring for internet thru lan jared78 Linux - General 4 05-11-2005 06:13 PM
configuring LAN TiCkO Linux - Networking 1 03-02-2005 03:22 PM
configuring LAN bahuguna_n Linux - Newbie 1 12-27-2003 06:50 AM
Help on configuring Lan browsing balam Linux - Networking 1 12-07-2002 08:02 AM
Configuring Apache for LAN only use Jase Linux - Networking 3 05-17-2001 12:47 PM


All times are GMT -5. The time now is 02:18 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration