- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: How to set the subnet mask for ip address 220....
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
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
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
тАО06-06-2005 03:30 AM
тАО06-06-2005 03:30 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2005 09:21 AM
тАО06-06-2005 09:21 AM
Re: How to set the subnet mask for ip address 220.130.17.39?
Is there SAM for Linux? I thought it's a HPUX product....
Anyway, you can not set 255.255.255.128 as subnet mask, because it's not a valid subnet mask (it should contain only 255s and 0s). The subnet mask deppends on the class of your network:
class A - 255.0.0.0
class B - 255.255.0.0
class C - 255.255.255.0
For example, if your segment is 220.130.17, then the subnet mask should be 255.255.255.0.
I suggest you to ask the network people at your office (those who gave you this ip address) what class is your network.
Max.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2005 10:26 AM
тАО06-06-2005 10:26 AM
Re: How to set the subnet mask for ip address 220.130.17.39?
255.255.255.0 will be class C with the first three octets 220.130.17 as network and 39 as the host address.
225.255.225.224 will create 32 address blocks.
Before trying to set the subnet mask, I'd run ifconfig on the other machines this one is supposed to talk to. I'm reasonably sure you won't see a network mask of 255.255.255.218
SEP
http://www.isnamerica.com/contactsep.shtml
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2005 06:50 PM
тАО06-06-2005 06:50 PM
Re: How to set the subnet mask for ip address 220.130.17.39?
128|64|32|16|8|4|2|1
1 |1 |0 |0 |0|0|0|0 = 192
1 |0 |1 |0 |1|0|0|0 = 168
0 |0 |0 |0 |0|0|0|1 = 1
You normally only bother for the address portions that are effected by the netmask e.g. if it was 255.255.255.248 only the last octect is of interest.
Once you have done this the next stage is to logically and each bit of the effected octect. For instance in this example 255 - 248 = 7 or 111, therefore the netmask is "11111000" which means that the addresses you are trying to contact must be identical for the first 5 bits and can then have any combination for "000" to "111". Eg:
240 - 247
XXXXX---
11110000
11110111
I hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2005 10:06 PM
тАО06-06-2005 10:06 PM
Re: How to set the subnet mask for ip address 220.130.17.39?
In case of linux, is used to be /etc/sysconfig/network-scripts/ifcfg-eth? (I am not a regular linux user...)
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2005 11:49 PM
тАО06-06-2005 11:49 PM
Solution( Last 8 bits )
10000000=128
11000000=192
11100000=224
11110000=240
11111000=248
11111100=252
11111110=254
the RFCs state that you cannot have only one bit for subnetting, since that would mean that the bit would always be either off or on, which would be illegal. So, the first subnet mask you can legally use is 192, and the last one is 252, since you need at least two bits for defining hosts.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-07-2005 06:02 AM
тАО06-07-2005 06:02 AM
Re: How to set the subnet mask for ip address 220.130.17.39?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-09-2005 01:22 AM
тАО06-09-2005 01:22 AM
Re: How to set the subnet mask for ip address 220.130.17.39?
IThe subnet mask for the ip 220.130.17.39 is 255.255.255.0 . As it is a class c network ip ,the first 3 bytes will be 255.255.255 . The last byte is 0 bcoz the first possible subnetmask's last byte is 192 . In this subnet ( 192 subnetmask ) the subnets will be 220.130.17.64 and 220.130.17.128 ,and the possible host ips will be 65 to 126 in subnet 64 and 129 to 190 in subnet 128 . But ur ip is coming as 39, so the subnet mask should be 255.255.255.0 , which means it is a simple class c network and not a subnet.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-09-2005 02:01 AM
тАО06-09-2005 02:01 AM