LinuxQuestions.org
Latest LQ Deal: Linux Power User 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 11-27-2008, 12:45 AM   #1
rao.mohan
LQ Newbie
 
Registered: Nov 2008
Posts: 1

Rep: Reputation: 0
ip addressing


why to use temporary and virtual ip addressing in linux?why not use the only one ip that is permanent ip addressing?
 
Old 11-27-2008, 01:46 AM   #2
kenneho
Member
 
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 655

Rep: Reputation: 40
I guess that having two addresses allow you to be on two LANs at the same time.
 
Old 11-27-2008, 02:47 AM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Depends on the context of your qn, but:

1. dynamic IP.
Used by ISPs who have eg 10,000 users, but only eg 3,000 logged in at any time. IP addrs are a limited resource.
There is a protocol DHCP that can be used to manage this and it tells the client what the nameservers are and a bunch of other stuff, optionally.
Big company's also use this because there's a large turnover in PCs and its easier to automate management via DHCP than try to keep a master list and manually set IP every time.
http://www.linuxtopia.org/online_boo...5_ch-dhcp.html

2. virtual IP
normally, each NIC has only one IP addr, but you can add more to it using 'virtual' method eg eth0 becomes eth0:0, eth0:1 etc.
http://www.linuxtopia.org/online_boo...nterfaces.html

see also Apache virtual hosts: http://www.linuxtopia.org/online_boo...ettingupvhosts
HTH
 
Old 11-27-2008, 06:12 AM   #4
Predatorian
Member
 
Registered: Mar 2008
Location: currently, where ever the army takes me
Distribution: Debian Lenny/Ubuntu or Arch Linux
Posts: 145

Rep: Reputation: 27
coudlnt you also use 2 ip addresses if you have 2 NICs? like a linux router/firewall?
 
Old 11-27-2008, 01:15 PM   #5
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
Yes you can.
 
  


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
IPv6 addressing hegdeshashi Linux - General 1 10-30-2006 07:17 PM
Kubuntu IP addressing SpaceGhoti Ubuntu 8 05-12-2006 05:42 PM
Need Help With IP Addressing jmj99385 Slackware 2 04-27-2006 02:34 PM
Absolute addressing Glemu Programming 2 10-13-2005 03:49 PM
RedHat 9 IP Addressing TenderFoot Red Hat 7 06-28-2004 06:17 PM


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