LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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



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 08:37 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
Open Source Consulting | Domain Registration