Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-26-2008, 11:45 PM   #1
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, 12:46 AM   #2
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, 01:47 AM   #3
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,406

Rep: Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396
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.

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.

see also Apache virtual hosts:
Old 11-27-2008, 05:12 AM   #4
Registered: Mar 2008
Location: currently, where ever the army takes me
Distribution: Debian Lenny/Ubuntu or Arch Linux
Posts: 145

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

Rep: Reputation: 45
Yes you can.


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

All times are GMT -5. The time now is 09:07 PM.

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