09-28-2011
Partitioning a network address. Urgent help please
Hi,
I am trying to figure out a way to partition the departmental IP network address block to create a staff and a student subnet. Each of these will be identified by its own network address and netmask. It is university policy that you must be economical with the IP addresses. That is, the subnets must be as small as possible, but they must be large enough to accommodate the maximum number of hosts you were given.
Also, it is university policy that the respective gateway router to the outside
world should always be given the highest possible host IP address in the subnet.
The student subnet should have a higher IP network address than the staff subnet.
The network must be able to support up to 60 machines on the staff subnet (not counting the router) and up to 120 machines on the student subnet (also not counting the router).
IP address/netmask
University network address 127.158.128.0
University network mask 255.255.192.0
University internet gateway IP address 127.158.191.254
Department network mask 255.255.254.0
Department router address 127.158.129.254
Suppose that the network address of the departmental network is 127.158.128.0 (calculated by AND between Dep network mask and Dep router address)
I know that 60 machines would use 6 bits for the staff subnet.
the netmask of staff would be 255.255.255.192.
how can I figure out the the IP network address of the staff subnet.
I have worked out the range for the staff subnetwork.
127.158.128.0 - 127.158.128.63
127.158.128.1 = Gateway address
127.158.128.63 = Broadcast address
Now how can I calculate the IP network address of the staff subnet??
Please help its urgent
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
How to chang IP address on the server from unix ?
for Example
I want to chang it from 10.2.0.2 TO 133.2.2.2
Can u please give me more explanation for how to do (5 Replies)
Discussion started by: fmmq
5 Replies
2. UNIX for Dummies Questions & Answers
say I have a IP address which is 10.0.0.12, and subnet mask is 255.255.255.240, what is the network address and what is the broadcast address which host lives on?
And could you explain how to get the answer?
thanx in advance! (7 Replies)
Discussion started by: pnxi
7 Replies
3. Solaris
hi all,
I have been trying to setup network on solaris10 from a long time but am unable to do so..
I tried it with the ethernet card i have(dfe -520tx) but since i was not able to find drivers for that particular device, i thought of using the usb mode to run network..
However am not able... (0 Replies)
Discussion started by: wrapster
0 Replies
4. Solaris
Hi all,
I just bought a new system, but am unable to configure network on it..
am using a nge0 ethernet interface to login.
i've tried all i knew but not of the webpages seem to open.
Here is what i've done..
ifconfig nge0 plumb
ifconfig -a
(nge0) was being displayed as up and running.
... (23 Replies)
Discussion started by: wrapster
23 Replies
5. AIX
Hi, I try to understand how to configure my ethernet network in a hacmp cluster.
I have 2 nodes, 3 lan port on each node, and 1 service ip to cluster.
I don't have any serial o iscsi heartbeat.
Do you suggest me a possibile ip address configuration? I've many error whene I verify it from hacmp... (3 Replies)
Discussion started by: hacmp
3 Replies
6. IP Networking
HI folks,
I am developing a software which one of the module is to interchange the ip address of another active network interface's when making a socket connection.
I would like to know whether there is any function call that would enable me to retrieve the ip address that is obtained by a... (2 Replies)
Discussion started by: citiz3n
2 Replies
7. Shell Programming and Scripting
Hi
Suppose
You have two computers. One named kenny which has an IP address of 192.168.0.7. kenny lives
on a subnet with a subnet mask of 255.255.255.240. The second computer is called zathras, which
has an IP address of 192.168.0.17, zathras lives on a network with the same subnet mask.
i)... (4 Replies)
Discussion started by: scofiled83
4 Replies
8. UNIX for Dummies Questions & Answers
Good morning!
Why would having a fake network device be useful?
Thanks in advance
Bigben (0 Replies)
Discussion started by: bigben1220
0 Replies
9. Shell Programming and Scripting
Hello,
I've bought an semi-dedicated (cloud computing) server, but yesterday I had to change my IP, so I tried this with PuTTY:
Went to
/etc/network/interfaces
And changed
iface eth0 inet static
To
iface eth0 inet dhcp
Hoping to get an dynamic IP
Then I restarted my... (5 Replies)
Discussion started by: lukinhasb
5 Replies
10. IP Networking
How would one approach the problem of determining the NAT tables of a router without knowing the userid and password. The only password holder died.
I know the internal ip address of the router is 192.168.2.1, and also ports 80 or 8080 and 3389 are open. (5 Replies)
Discussion started by: jgt
5 Replies
LEARN ABOUT CENTOS
ipsec_subnetof
IPSEC_SUBNETOF(3) Library Functions Manual IPSEC_SUBNETOF(3)
NAME
ipsec_subnetof, ipsec_hostof, ipsec_broadcastof - given Internet address and subnet mask return subnet number, host part, broadcast address
SYNOPSIS
#include <libreswan.h>
struct in_addr subnetof(struct in_addr addr,
struct in_addr mask);
struct in_addr hostof(struct in_addr addr,
struct in_addr mask);
struct in_addr broadcastof(struct in_addr addr,
struct in_addr mask);
DESCRIPTION
These functions are obsolete; see ipsec_networkof(3) for their replacements.
Subnetof takes an Internet address and a subnet mask and returns the network part of the address (all in network byte order). Hostof simi-
larly returns the host part, and broadcastof returns the broadcast address (all-1s convention) for the network.
These functions are provided to hide the Internet bit-munging inside an API, in hopes of easing the eventual transition to IPv6.
SEE ALSO
inet(3), ipsec_atosubnet(3)
HISTORY
Written for the FreeS/WAN project by Henry Spencer.
BUGS
Calling functions for this is more costly than doing it yourself.
11 June 2001 IPSEC_SUBNETOF(3)