LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 01-28-2013, 03:17 AM   #1
contozo
Member
 
Registered: Jan 2013
Posts: 32

Rep: Reputation: Disabled
how can have multiple ip's on one LAN card ?


Hi all,
i am pretty new to linux and wann aknow how can have multiple ip's on single interface. I tried with ifconfig , but after reboot i lose all settings. How i can make it permanently ?
 
Old 01-28-2013, 03:21 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
Which distro are you using? Some use ifcfg.* config files which set variables. Some use a script which contains ifconfig commands.
 
Old 01-28-2013, 03:24 AM   #3
contozo
Member
 
Registered: Jan 2013
Posts: 32

Original Poster
Rep: Reputation: Disabled
I use Slackware 14.
 
Old 01-28-2013, 03:37 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
Edit your network configuration script at
/etc/rc.d/rc.inet1.conf
 
Old 01-28-2013, 04:09 AM   #5
contozo
Member
 
Registered: Jan 2013
Posts: 32

Original Poster
Rep: Reputation: Disabled
and what actually have to change there ? When open it i see like
#config info for eth0:
addr
mask
dhcp
....
#config information for et1:
....
...
and so on

on the bottom see default gateway.

i changed
#conf info for eth1: to eth1:1
but think it's comment coz of "#"
 
Old 01-28-2013, 04:26 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,786

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
Take a look at this example.
 
Old 01-28-2013, 04:49 AM   #7
contozo
Member
 
Registered: Jan 2013
Posts: 32

Original Poster
Rep: Reputation: Disabled
Thank you very much
 
  


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
lan card not installed on fc8 broadcom 57xx onborard gigabit ethernet card amolgupta Linux - Networking 3 07-07-2009 03:53 AM
Multiple LAN cards hehaha Linux - Networking 3 01-14-2009 12:13 PM
Problems bridging LAN card to second card connected to Router. DJ_Barney Slackware 4 04-20-2008 12:14 PM
RedHat 9 is not detecting the LAN card, but Win'98 is detecting the LAN card SKYNAT Linux - Newbie 4 12-28-2007 10:25 PM
Wireless LAN card 802.11b and Ricoh card bus Abdul Mueid Linux - Wireless Networking 4 02-10-2004 04:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:34 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