|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| IP Networking Learn TCP/IP, Internet Protocol, Routing, Routers, Network protocols in this UNIX and Linux forum. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
||||
|
||||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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 | ||
|
![]() |
| Thread Tools | Search this Thread |
| 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 |
|
|