- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Beginner subnet questions: e.g. why can every ...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2002 05:36 AM
07-09-2002 05:36 AM
Each system has only one lan card.
The x values include: 2, 21, 67, 68, 69, 85, 102, 103, 180, and 182. There is a router with address of .100 outside of the room. I use that as the default gatway.
The above simple setup works fine as a pure local area network.
----------
I'm trying to learn subnetting. I decided to set up 2 subnets. I took 2 bits from the 4th octet. I set the netmask to 255.255.192.0.
ifconfig displays a netmask of ffffc000 and a broadcast of 192.168.63.255.
Questions:
1) Every system can still ping every other system. If the systems are on two dif subnets, shouldn't I now need to set up a system as a router?
2) I think, according to the literature that the valid host addresses should range from .65 through 126 and .129 through 190. Does this mean 1 through 64 should be invalid with this subnet setup? My systems with low numbers can still ping the higher numbers.
In short: I tried to set up 2 subnets, but it still acts like one network.
Perhaps someone can recommend a web site or literature that has an example I can follow, or maybe suggest where I may have gone wrong.
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2002 05:55 AM
07-09-2002 05:55 AM
Re: Beginner subnet questions: e.g. why can every system ping every other system?
You should not be able to ping from one subnet to the other as one falls in broadcast range in 63.127 and the other in 63.255.
With 255.255.192.0, the broadcast address becomes (192.168.127.255, someone pls help me with the calculation) for all your IPs and I am not surprized to see your results.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2002 06:02 AM
07-09-2002 06:02 AM
Re: Beginner subnet questions: e.g. why can every system ping every other system?
Ed,
http://www.aplawrence.com/Unixart/net101.html
http://www.itpapers.com/cgi/PSummaryIT.pl?paperid=15233&scid=66
and HP has a few classes on networking:
http://education.hp.com/hp-uxnetworking.htm
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2002 07:36 AM
07-09-2002 07:36 AM
Re: Beginner subnet questions: e.g. why can every system ping every other system?
BTW: I'm using the Sys Admin & Networking II book [from a friend] as a guide. On page 5-20 is a chart that summarizes the number of subnet and hosts available for various netmasks. I chose a netmask of .192 because I thought 192.168.11.x was class C (/24).
Confusion: The 255.255.255.128 netmask that was recommended is for /16. I don't yet understand about mixing /16 and /24. e.g. The chart says "9 subnet bits". I'm not sure how to even draw the bits for that.
Result of netmask change: If I used set_parms, the machine locked up. If I used ifconfig to set the netmask, it came back with "ifconfig %s bad value" and the machine locked.
Not sure what's going with that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2002 08:17 AM
07-09-2002 08:17 AM
Re: Beginner subnet questions: e.g. why can every system ping every other system?
Set the ndd parameter ip_check_subnet_addr to 0. This will disable verification of RFC1122 (it works for me here) by the system.
Yours is Class C. The default subnet mask in bits is
11111111.11111111.11111111.00000000
The number of subnets you get here (last octet is 2power0=1.
But you need two subnets means 2powerx=2.
So x becomes 1. So, I simply add 1 to the fourth octet to get 10000000 which is equivalent to 128.
If you wanted four subnets, x will be 2. So add two bits to get 11000000 that becomes 192. You can do logical "AND" with the subnet mask and the IP address to get the corresponding network.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2002 08:18 AM
07-09-2002 08:18 AM
Re: Beginner subnet questions: e.g. why can every system ping every other system?
Set the ndd parameter ip_check_subnet_addr to 0. This will disable verification of RFC1122 (it works for me here) by the system.
ndd -set /dev/ip ip_check_subnet_addr 0
Yours is Class C. The default subnet mask in bits is
11111111.11111111.11111111.00000000
The number of subnets you get here (last octet is 2power0=1.
But you need two subnets means 2powerx=2.
So x becomes 1. So, I simply add 1 to the fourth octet to get 10000000 which is equivalent to 128.
If you wanted four subnets, x will be 2. So add two bits to get 11000000 that becomes 192. You can do logical "AND" with the subnet mask and the IP address to get the corresponding network.
I would use ifconfig command to configure the IP after setting ndd parameter.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2002 08:52 AM
07-09-2002 08:52 AM
SolutionI looked at your last message again..
Theoritically both the subnets that you get with 128 netmask are not valid just because of the reason that the primitive router protocols could get confused. The first subnet confuses them with the whole network and the second one with the broadcast. This is not valid anymore on the modern implementations so you can cautiously use these subnet masks. If you want to follow the legal way, you will need to use 192 subnet mask (not in the third octet) to get four subnets with the first and the last being invalid. But with this way, you can only get half of the system covered. The bit notation for 128 subnet is /25 and for 192 is /26. If you want to devide a class C network, you *should* not be touching the third octet.
Here is a simple tutorial on Subnet Addressing.
http://www.networkcomputing.com/unixworld/tutorial/001.html
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2002 09:49 AM
07-09-2002 09:49 AM
Re: Beginner subnet questions: e.g. why can every system ping every other system?
I implemented the 255.255.255.192 subnet and the high end systems have a broadcast of 192.168.11.127 and the high end have a broadcast of 192.168.11.191.
The systems below .65 give an error when I try to configure them with the subnet mask (and this matches the theory).
The pings work as the book says they should.
I obviously misunderstood where to put the 192 in the subnet mask. I find the Sys Admin II course book a bit confusing, as in some places it uses /16 examples and others /24. Without an instructor, it's a bit harder to follow.
Harry, I have bookmarked the web sites you listed in your response.
Thanks again to all.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2005 07:13 AM
06-24-2005 07:13 AM