Visit Our UNIX and Linux User Community


two ip numbers in the same network


 
Thread Tools Search this Thread
Special Forums IP Networking two ip numbers in the same network
# 1  
Old 07-16-2002
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
# 2  
Old 07-16-2002
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.
# 3  
Old 07-17-2002
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
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

Previous Thread | Next Thread
Test Your Knowledge in Computers #427
Difficulty: Easy
JavaScript supports only explicit delegation.
True or False?

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Decimal numbers and letters in the same collums: round numbers

Hi! I found and then adapt the code for my pipeline... awk -F"," -vOFS="," '{printf "%0.2f %0.f\n",$2,$4}' xxx > yyy I add -F"," -vOFS="," (for input and output as csv file) and I change the columns and the number of decimal... It works but I have also some problems... here my columns ... (7 Replies)
Discussion started by: echo manolis
7 Replies

2. Red Hat

Network becomes slow and return fast only after restart network

Hi, I have 2 machines in production environment: 1. redhat machine for application 2. DB machine (oracle) The application doing a lot of small read&writes from and to the DB machine. The problem is that after some few hours the network from the application to the DB becomes very slow and... (4 Replies)
Discussion started by: moshesa
4 Replies

3. UNIX for Dummies Questions & Answers

Print numbers and associated text belonging to an interval of numbers

##### (0 Replies)
Discussion started by: lucasvs
0 Replies

4. Solaris

configure zones to have different network interface and network

i need to configure a zone to use different interface (bge2) than global and have connected to completely different network switch & to use its own defaultrouter and hosts file .. is it possible ..if so ..how ? Thanks (9 Replies)
Discussion started by: skamal4u
9 Replies

5. Shell Programming and Scripting

the smallest number from 90% of highest numbers from all numbers in file

Hello All, I am having problem to find what is the smallest number from 90% of highest numbers from all numbers in file. I am having file with thousands of lines and hundreds of columns. I am familiar mainly with bash but I am open to whatever suggestion witch will lead to the solutions. If I... (11 Replies)
Discussion started by: Apfik
11 Replies

6. UNIX for Dummies Questions & Answers

Replace US numbers with European numbers

hey, I have a file with numbers in US notation (1,000,000.00) as well as european notation (1.000.000,00) i want all the numbers to be in european notation. the numbers are in a text file, so to prevent that the regex also changes the commas in a sentence/text i thought of: sed 's/,/\./'... (2 Replies)
Discussion started by: FOBoy
2 Replies

7. Shell Programming and Scripting

read numbers from file and output which numbers belongs to which range

Howdy experts, We have some ranges of number which belongs to particual group as below. GroupNo StartRange EndRange Group0125 935300 935399 Group2006 935400 935476 937430 937459 Group0324 935477 935549 ... (6 Replies)
Discussion started by: thepurple
6 Replies

8. IP Networking

ssh server is attachable from local network not from another network

hello i have a ubuntu ssh server that i can acess from any of my comnputers but only if they are on the same wireless network as the server. i tested trhis my tehtehring my samsung blackjack to my windows partition and installing openssh to windows it works when windows is on the wireless but no... (1 Reply)
Discussion started by: old noob
1 Replies

9. UNIX for Dummies Questions & Answers

seperating records with numbers from a set of numbers

I have two files one (numbers file)contains the numbers(approximately 30000) and the other file(record file) contains the records(approximately 40000)which may or may not contain the numbers from that file. I want to seperate the records which has the field 1=(any of the number from numbers... (15 Replies)
Discussion started by: Shiv@jad
15 Replies

Featured Tech Videos