LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Subnetting question (https://www.linuxquestions.org/questions/linux-networking-3/subnetting-question-705771/)

chibi2666 02-18-2009 09:59 PM

Subnetting question
 
HI,

a subnet mask of 255.255.255.192 and the first network address of 64.5.96.0, I'm trying to find all of the network/broadcast pairs?


I got 64.5.96.0 255.255.255.192

64.5.96.1 255.255.255.224


Can you please help me with this problem.

Thanks

routers 02-18-2009 10:35 PM

here :)

Code:

[noc@nc ~]$ ipcalc 64.5.96.0/26
Address:  64.5.96.0            01000000.00000101.01100000.00 000000
Netmask:  255.255.255.192 = 26 11111111.11111111.11111111.11 000000
Wildcard:  0.0.0.63            00000000.00000000.00000000.00 111111
=>
Network:  64.5.96.0/26        01000000.00000101.01100000.00 000000
HostMin:  64.5.96.1            01000000.00000101.01100000.00 000001
HostMax:  64.5.96.62          01000000.00000101.01100000.00 111110
Broadcast: 64.5.96.63          01000000.00000101.01100000.00 111111
Hosts/Net: 62                    Class A

Code:

[noc@nc ~]$ ipcalc 64.5.96.1/27
Address:  64.5.96.1            01000000.00000101.01100000.000 00001
Netmask:  255.255.255.224 = 27 11111111.11111111.11111111.111 00000
Wildcard:  0.0.0.31            00000000.00000000.00000000.000 11111
=>
Network:  64.5.96.0/27        01000000.00000101.01100000.000 00000
HostMin:  64.5.96.1            01000000.00000101.01100000.000 00001
HostMax:  64.5.96.30          01000000.00000101.01100000.000 11110
Broadcast: 64.5.96.31          01000000.00000101.01100000.000 11111
Hosts/Net: 30                    Class A


anomie 02-18-2009 10:36 PM

If I don't have time to calculate networks on paper, I use this: http://www.subnet-calculator.com/

Quick and easy.

---

@routers: even better - a utility already available on your server.

routers 02-18-2009 10:55 PM

for security reason all junkies tools not on the server
everything inside the laptop :)


All times are GMT -5. The time now is 02:08 AM.