0

For example, I have these hosts from different subnets:

192.168.0.1/27 
192.168.0.33/27
192.168.0.65/27
192.168.0.97/27

How can I supernet them together and find the network address and mask? (These will be used in a static routing table)

moonxdd
  • 1
  • 1

1 Answers1

1

You want the netmask command:

$ netmask -c 192.168.0.1/27 192.168.0.33/27 192.168.0.65/27 192.168.0.97/27
    192.168.0.0/25
womble
  • 95,029
  • 29
  • 173
  • 228
  • Thanks, but how can I manually work out the network address and mask? – moonxdd Oct 09 '15 at 03:44
  • @moonxdd Utilities exist so we don't have to do binary math by hand. There are ways to manually do this, but that kind of "show your work" is above and beyond for this site. – 84104 Oct 09 '15 at 05:08
  • Of course it isn't above and beyond a site for pro sysadminship to understand how subnetting/supernetting works @84104. My take is that if one learns how to do this easy math by hand, one starts to understand how the subnetmask works. That's when one begins to ask interesting questions, lke how the mac address is used in conjunction with the ip address. After understanding the math and what it does it is not neccessary but a matter of choice wether to use a calculator for speed. – ErikE Oct 09 '15 at 05:49