two ip numbers in the same network | Unix Linux Forums | IP Networking

  Go Back    


IP Networking Learn TCP/IP, Internet Protocol, Routing, Routers, Network protocols in this UNIX and Linux forum.

two ip numbers in the same network

IP Networking


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 07-16-2002
rene_metaal rene_metaal is offline
Registered User
 
Join Date: Jul 2002
Last Activity: 3 August 2014, 5:28 AM EDT
Posts: 27
Thanks: 0
Thanked 1 Time in 1 Post
CPU & Memory two ip numbers in the same network

Please comment on the examples below.
Example 1:
lan0 has number 192.168.0.1 and 192.168.0.2

Example 2:
lan0 has 192.168.0.1
lan1 has 192.168.0.2

Example 3: /etc/hosts file:
192.168.0.1 cheetah.bigcats.com cheetah giga
192.168.0.2 cheetah.bigcats.com cheetah hundred

==========
In my opinion all three cases are wrong or at least not the proper way. Where can I find info about what is not nice or what is really wrong?
-Rene
Sponsored Links
    #2  
Old 07-16-2002
RTM's Avatar
RTM RTM is offline Forum Advisor  
Registered User
 
Join Date: Apr 2002
Last Activity: 17 October 2014, 8:46 PM EDT
Location: On my motorcycle
Posts: 3,093
Thanks: 1
Thanked 32 Times in 9 Posts
Hopefully this isn't homework - I checked and it seems like you answer questions with knowledge about UNIX so it would seem you are just asking a question.

So,

Example 1:
lan0 has number 192.168.0.1 and 192.168.0.2


One possible reason to have this - one address is used for ftp, one is used for mail (different names in dns). Otherwise, it seems to be a waste of an IP.

Example 2:
lan0 has 192.168.0.1
lan1 has 192.168.0.2

Same reasoning as Example one just that it has two interfaces.
Another possible reason - I have heard of having all inbound traffic on one interface and all outbound on another (don't remember why)

Example 3: /etc/hosts file:
192.168.0.1 cheetah.bigcats.com cheetah giga
192.168.0.2 cheetah.bigcats.com cheetah hundred


Setting both to cheetah.bigcats.com - why? I could see if they were set up as giga-cheetah.bigcats.com and hundred-cheetah.bigcats.com, but they should not have the same name - can't think of a reason to do that.
Sponsored Links
    #3  
Old 07-17-2002
warrend warrend is offline
Registered User
 
Join Date: Nov 2001
Last Activity: 30 August 2006, 6:27 AM EDT
Location: Reading, UK
Posts: 42
Thanks: 0
Thanked 1 Time in 1 Post
Just expansion

Example 1

Could be differnt levels of access through a firewall, A machine running multiple websites with resolution on ip rather than name

Example 2

Firewall! Bridge! router! the other thing is that in some cases it can be usefull to run different applications on different interfases (e.g. back-up on one, everything else on another).

Example3

Could be that for certain applications you want to load balance or select a specific interface, but for others you dont care OR the machine is acting as a firewall/bridge/router between networks and you want to access it via the same way in both networks, the slight difference would enable routing between the interfaces.
    #4  
Old 07-17-2002
rene_metaal rene_metaal is offline
Registered User
 
Join Date: Jul 2002
Last Activity: 3 August 2014, 5:28 AM EDT
Posts: 27
Thanks: 0
Thanked 1 Time in 1 Post
more ip nrs

OK thanks for your input.

I assumed this is not the correct way, but the current tcp/ip stacks don't seem to have a problem with it.

In early Unix versions I was told this was not correct but exactly reason and background was I don't know.
I was thinking along the line of a common broadcast address and the system was confused. But the MAC address can be faked so this might be the explanation of why it is possible today.
Cheers
R
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Print numbers and associated text belonging to an interval of numbers lucasvs UNIX for Dummies Questions & Answers 0 03-06-2012 02:28 AM
the smallest number from 90% of highest numbers from all numbers in file Apfik Shell Programming and Scripting 11 05-22-2011 10:54 PM
Replace US numbers with European numbers FOBoy UNIX for Dummies Questions & Answers 2 02-26-2010 01:15 PM
read numbers from file and output which numbers belongs to which range thepurple Shell Programming and Scripting 6 05-13-2009 06:07 AM
seperating records with numbers from a set of numbers Shiv@jad UNIX for Dummies Questions & Answers 15 11-25-2008 11:04 AM



All times are GMT -4. The time now is 02:03 AM.