mirror of
https://github.com/lissy93/networking-toolbox.git
synced 2026-11-27 07:58:56 +03:00
Supernet calculator
This commit is contained in:
1 parent
42f505862b
commit
165e5506ed
6 files changed
+1664
-27
No files matched your search
@@ -1,4 +1,8 @@
|
||||
<script lang="ts">
|
||||
/**
|
||||
* This component uses some FontAwesome icons (v7.0.0)
|
||||
* License: https://fontawesome.com/license (Commercial License) (C) 2025 Fonticons, Inc
|
||||
*/
|
||||
interface Props {
|
||||
name: string;
|
||||
size?: 'sm' | 'md' | 'lg';
|
||||
@@ -40,44 +44,58 @@
|
||||
<svg fill="currentColor" viewBox="0 0 24 24">
|
||||
<path d="M12,1L3,5V11C3,16.55 6.84,21.74 12,23C17.16,21.74 21,16.55 21,11V5L12,1M12,7C13.4,7 14.8,8.6 14.8,10V11.5C14.8,12.4 14.4,13.8 13,13.8H11C9.6,13.8 9.2,12.4 9.2,11.5V10C9.2,8.6 10.6,7 12,7Z"/>
|
||||
</svg>
|
||||
|
||||
|
||||
{:else if name === 'warning'}
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Pro v7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--><path opacity=".4" d="M117.4 496L320 120.8L522.6 496L117.4 496zM293.3 448C292.7 457.9 297.6 467.3 306.1 472.5C314.6 477.6 325.3 477.6 333.8 472.5C342.3 467.3 347.2 457.9 346.6 448C347.2 438.1 342.3 428.7 333.8 423.5C325.3 418.4 314.6 418.4 306.1 423.5C297.6 428.7 292.7 438.1 293.3 448zM296 256L296 368C296 381.3 306.7 392 320 392C333.3 392 344 381.3 344 368L344 256C344 242.7 333.3 232 320 232C306.7 232 296 242.7 296 256z"/><path d="M117.4 496L320 120.8L522.6 496L117.4 496zM355.2 85C348.2 72.1 334.7 64 320 64C305.3 64 291.8 72.1 284.8 85L68.8 485C62.1 497.4 62.4 512.4 69.6 524.5C76.8 536.6 89.9 544 104 544L536 544C550.1 544 563.1 536.6 570.4 524.5C577.7 512.4 577.9 497.4 571.2 485L355.2 85zM320 232C306.7 232 296 242.7 296 256L296 368C296 381.3 306.7 392 320 392C333.3 392 344 381.3 344 368L344 256C344 242.7 333.3 232 320 232zM346.7 448C347.3 438.1 342.4 428.7 333.9 423.5C325.4 418.4 314.7 418.4 306.2 423.5C297.7 428.7 292.8 438.1 293.4 448C292.8 457.9 297.7 467.3 306.2 472.5C314.7 477.6 325.4 477.6 333.9 472.5C342.4 467.3 347.3 457.9 346.7 448z"/></svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><path opacity=".4" d="M117.4 496L320 120.8L522.6 496L117.4 496zM293.3 448C292.7 457.9 297.6 467.3 306.1 472.5C314.6 477.6 325.3 477.6 333.8 472.5C342.3 467.3 347.2 457.9 346.6 448C347.2 438.1 342.3 428.7 333.8 423.5C325.3 418.4 314.6 418.4 306.1 423.5C297.6 428.7 292.7 438.1 293.3 448zM296 256L296 368C296 381.3 306.7 392 320 392C333.3 392 344 381.3 344 368L344 256C344 242.7 333.3 232 320 232C306.7 232 296 242.7 296 256z"/><path d="M117.4 496L320 120.8L522.6 496L117.4 496zM355.2 85C348.2 72.1 334.7 64 320 64C305.3 64 291.8 72.1 284.8 85L68.8 485C62.1 497.4 62.4 512.4 69.6 524.5C76.8 536.6 89.9 544 104 544L536 544C550.1 544 563.1 536.6 570.4 524.5C577.7 512.4 577.9 497.4 571.2 485L355.2 85zM320 232C306.7 232 296 242.7 296 256L296 368C296 381.3 306.7 392 320 392C333.3 392 344 381.3 344 368L344 256C344 242.7 333.3 232 320 232zM346.7 448C347.3 438.1 342.4 428.7 333.9 423.5C325.4 418.4 314.7 418.4 306.2 423.5C297.7 428.7 292.8 438.1 293.4 448C292.8 457.9 297.7 467.3 306.2 472.5C314.7 477.6 325.4 477.6 333.9 472.5C342.4 467.3 347.3 457.9 346.7 448z"/></svg>
|
||||
{:else if name === 'info'}
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Pro v7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--><path opacity=".4" d="M112 320C112 434.9 205.1 528 320 528C434.9 528 528 434.9 528 320C528 205.1 434.9 112 320 112C205.1 112 112 205.1 112 320zM256 312C256 298.7 266.7 288 280 288L328 288C341.3 288 352 298.7 352 312L352 400L360 400C373.3 400 384 410.7 384 424C384 437.3 373.3 448 360 448L280 448C266.7 448 256 437.3 256 424C256 410.7 266.7 400 280 400L304 400L304 336L280 336C266.7 336 256 325.3 256 312zM352 224C352 241.7 337.7 256 320 256C302.3 256 288 241.7 288 224C288 206.3 302.3 192 320 192C337.7 192 352 206.3 352 224z"/><path d="M320 112C434.9 112 528 205.1 528 320C528 434.9 434.9 528 320 528C205.1 528 112 434.9 112 320C112 205.1 205.1 112 320 112zM320 576C461.4 576 576 461.4 576 320C576 178.6 461.4 64 320 64C178.6 64 64 178.6 64 320C64 461.4 178.6 576 320 576zM280 400C266.7 400 256 410.7 256 424C256 437.3 266.7 448 280 448L360 448C373.3 448 384 437.3 384 424C384 410.7 373.3 400 360 400L352 400L352 312C352 298.7 341.3 288 328 288L280 288C266.7 288 256 298.7 256 312C256 325.3 266.7 336 280 336L304 336L304 400L280 400zM320 256C337.7 256 352 241.7 352 224C352 206.3 337.7 192 320 192C302.3 192 288 206.3 288 224C288 241.7 302.3 256 320 256z"/></svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><path opacity=".4" d="M112 320C112 434.9 205.1 528 320 528C434.9 528 528 434.9 528 320C528 205.1 434.9 112 320 112C205.1 112 112 205.1 112 320zM256 312C256 298.7 266.7 288 280 288L328 288C341.3 288 352 298.7 352 312L352 400L360 400C373.3 400 384 410.7 384 424C384 437.3 373.3 448 360 448L280 448C266.7 448 256 437.3 256 424C256 410.7 266.7 400 280 400L304 400L304 336L280 336C266.7 336 256 325.3 256 312zM352 224C352 241.7 337.7 256 320 256C302.3 256 288 241.7 288 224C288 206.3 302.3 192 320 192C337.7 192 352 206.3 352 224z"/><path d="M320 112C434.9 112 528 205.1 528 320C528 434.9 434.9 528 320 528C205.1 528 112 434.9 112 320C112 205.1 205.1 112 320 112zM320 576C461.4 576 576 461.4 576 320C576 178.6 461.4 64 320 64C178.6 64 64 178.6 64 320C64 461.4 178.6 576 320 576zM280 400C266.7 400 256 410.7 256 424C256 437.3 266.7 448 280 448L360 448C373.3 448 384 437.3 384 424C384 410.7 373.3 400 360 400L352 400L352 312C352 298.7 341.3 288 328 288L280 288C266.7 288 256 298.7 256 312C256 325.3 266.7 336 280 336L304 336L304 400L280 400zM320 256C337.7 256 352 241.7 352 224C352 206.3 337.7 192 320 192C302.3 192 288 206.3 288 224C288 241.7 302.3 256 320 256z"/></svg>
|
||||
{:else if name === 'ipv4-ipv6'}
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Pro v7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--><path opacity=".4" d=""/><path d="M392 96C405.3 96 416 106.7 416 120C416 133.3 405.3 144 392 144L288 144C235 144 192 187 192 240L192 304.3C215.7 284.2 246.4 272 280 272L344 272C419.1 272 480 332.9 480 408C480 483.1 419.1 544 344 544L280 544C204.9 544 144 483.1 144 408C144 406.1 144 404.2 144.1 402.4C144 401.6 144 400.8 144 400L144 240C144 160.5 208.5 96 288 96L392 96zM192 408C192 456.6 231.4 496 280 496L344 496C392.6 496 432 456.6 432 408C432 359.4 392.6 320 344 320L280 320C231.4 320 192 359.4 192 408z"/></svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><path opacity=".4" d=""/><path d="M392 96C405.3 96 416 106.7 416 120C416 133.3 405.3 144 392 144L288 144C235 144 192 187 192 240L192 304.3C215.7 284.2 246.4 272 280 272L344 272C419.1 272 480 332.9 480 408C480 483.1 419.1 544 344 544L280 544C204.9 544 144 483.1 144 408C144 406.1 144 404.2 144.1 402.4C144 401.6 144 400.8 144 400L144 240C144 160.5 208.5 96 288 96L392 96zM192 408C192 456.6 231.4 496 280 496L344 496C392.6 496 432 456.6 432 408C432 359.4 392.6 320 344 320L280 320C231.4 320 192 359.4 192 408z"/></svg>
|
||||
{:else if name === 'ipv6-ipv4'}
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Pro v7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--><path opacity=".4" d=""/><path d="M448 120C448 106.7 437.3 96 424 96C410.7 96 400 106.7 400 120L400 368L192 368C183.2 368 176 360.8 176 352L176 120C176 106.7 165.3 96 152 96C138.7 96 128 106.7 128 120L128 352C128 387.3 156.7 416 192 416L400 416L400 520C400 533.3 410.7 544 424 544C437.3 544 448 533.3 448 520L448 416L488 416C501.3 416 512 405.3 512 392C512 378.7 501.3 368 488 368L448 368L448 120z"/></svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><path opacity=".4" d=""/><path d="M448 120C448 106.7 437.3 96 424 96C410.7 96 400 106.7 400 120L400 368L192 368C183.2 368 176 360.8 176 352L176 120C176 106.7 165.3 96 152 96C138.7 96 128 106.7 128 120L128 352C128 387.3 156.7 416 192 416L400 416L400 520C400 533.3 410.7 544 424 544C437.3 544 448 533.3 448 520L448 416L488 416C501.3 416 512 405.3 512 392C512 378.7 501.3 368 488 368L448 368L448 120z"/></svg>
|
||||
{:else if name === 'networking'}
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Pro v7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--><path opacity=".4" d="M112 304L112 464L152 464L152 408C152 394.7 162.7 384 176 384C189.3 384 200 394.7 200 408L200 464L248 464L248 408C248 394.7 258.7 384 272 384C285.3 384 296 394.7 296 408L296 464L344 464L344 408C344 394.7 354.7 384 368 384C381.3 384 392 394.7 392 408L392 464L440 464L440 408C440 394.7 450.7 384 464 384C477.3 384 488 394.7 488 408L488 464L528 464L528 304L488 304C474.7 304 464 293.3 464 280L464 240L424 240C410.7 240 400 229.3 400 216L400 176L240 176L240 216C240 229.3 229.3 240 216 240L176 240L176 280C176 293.3 165.3 304 152 304L112 304z"/><path d="M192 160C192 142.3 206.3 128 224 128L416 128C433.7 128 448 142.3 448 160L448 192L480 192C497.7 192 512 206.3 512 224L512 256L544 256C561.7 256 576 270.3 576 288L576 480C576 497.7 561.7 512 544 512L96 512C78.3 512 64 497.7 64 480L64 288C64 270.3 78.3 256 96 256L128 256L128 224C128 206.3 142.3 192 160 192L192 192L192 160zM240 176L240 216C240 229.3 229.3 240 216 240L176 240L176 280C176 293.3 165.3 304 152 304L112 304L112 464L152 464L152 408C152 394.7 162.7 384 176 384C189.3 384 200 394.7 200 408L200 464L248 464L248 408C248 394.7 258.7 384 272 384C285.3 384 296 394.7 296 408L296 464L344 464L344 408C344 394.7 354.7 384 368 384C381.3 384 392 394.7 392 408L392 464L440 464L440 408C440 394.7 450.7 384 464 384C477.3 384 488 394.7 488 408L488 464L528 464L528 304L488 304C474.7 304 464 293.3 464 280L464 240L424 240C410.7 240 400 229.3 400 216L400 176L240 176z"/></svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><path opacity=".4" d="M112 304L112 464L152 464L152 408C152 394.7 162.7 384 176 384C189.3 384 200 394.7 200 408L200 464L248 464L248 408C248 394.7 258.7 384 272 384C285.3 384 296 394.7 296 408L296 464L344 464L344 408C344 394.7 354.7 384 368 384C381.3 384 392 394.7 392 408L392 464L440 464L440 408C440 394.7 450.7 384 464 384C477.3 384 488 394.7 488 408L488 464L528 464L528 304L488 304C474.7 304 464 293.3 464 280L464 240L424 240C410.7 240 400 229.3 400 216L400 176L240 176L240 216C240 229.3 229.3 240 216 240L176 240L176 280C176 293.3 165.3 304 152 304L112 304z"/><path d="M192 160C192 142.3 206.3 128 224 128L416 128C433.7 128 448 142.3 448 160L448 192L480 192C497.7 192 512 206.3 512 224L512 256L544 256C561.7 256 576 270.3 576 288L576 480C576 497.7 561.7 512 544 512L96 512C78.3 512 64 497.7 64 480L64 288C64 270.3 78.3 256 96 256L128 256L128 224C128 206.3 142.3 192 160 192L192 192L192 160zM240 176L240 216C240 229.3 229.3 240 216 240L176 240L176 280C176 293.3 165.3 304 152 304L112 304L112 464L152 464L152 408C152 394.7 162.7 384 176 384C189.3 384 200 394.7 200 408L200 464L248 464L248 408C248 394.7 258.7 384 272 384C285.3 384 296 394.7 296 408L296 464L344 464L344 408C344 394.7 354.7 384 368 384C381.3 384 392 394.7 392 408L392 464L440 464L440 408C440 394.7 450.7 384 464 384C477.3 384 488 394.7 488 408L488 464L528 464L528 304L488 304C474.7 304 464 293.3 464 280L464 240L424 240C410.7 240 400 229.3 400 216L400 176L240 176z"/></svg>
|
||||
{:else if name === 'ip-convertor'}
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Pro v7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--><path opacity=".4" d="M112 272C112 289.7 126.3 304 144 304C161.7 304 176 289.7 176 272C176 254.3 161.7 240 144 240C126.3 240 112 254.3 112 272zM368 496C368 513.7 382.3 528 400 528C417.7 528 432 513.7 432 496C432 478.3 417.7 464 400 464C382.3 464 368 478.3 368 496zM432 144C432 161.7 446.3 176 464 176C481.7 176 496 161.7 496 144C496 126.3 481.7 112 464 112C446.3 112 432 126.3 432 144z"/><path d="M432 144C432 126.3 446.3 112 464 112C481.7 112 496 126.3 496 144C496 161.7 481.7 176 464 176C446.3 176 432 161.7 432 144zM402.1 194.6C408.9 202.9 417.3 209.8 426.8 214.8L390 416.6C378.5 418 367.8 421.9 358.3 427.7L217.3 304.2C221.6 294.3 224 283.5 224 272C224 270 223.9 267.9 223.8 265.9L402.1 194.6zM474 223.4C513.5 218.5 544 184.8 544 144C544 99.8 508.2 64 464 64C419.8 64 384 99.8 384 144C384 146 384.1 148.1 384.2 150.1L205.9 221.4C191.3 203.4 169 192 144 192C99.8 192 64 227.8 64 272C64 316.2 99.8 352 144 352C159.3 352 173.5 347.7 185.6 340.3L326.7 463.8C322.4 473.7 320 484.5 320 496C320 540.2 355.8 576 400 576C444.2 576 480 540.2 480 496C480 465.3 462.7 438.6 437.3 425.2L474 223.4zM368 496C368 478.3 382.3 464 400 464C417.7 464 432 478.3 432 496C432 513.7 417.7 528 400 528C382.3 528 368 513.7 368 496zM144 240C161.7 240 176 254.3 176 272C176 289.7 161.7 304 144 304C126.3 304 112 289.7 112 272C112 254.3 126.3 240 144 240z"/></svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><path opacity=".4" d="M112 272C112 289.7 126.3 304 144 304C161.7 304 176 289.7 176 272C176 254.3 161.7 240 144 240C126.3 240 112 254.3 112 272zM368 496C368 513.7 382.3 528 400 528C417.7 528 432 513.7 432 496C432 478.3 417.7 464 400 464C382.3 464 368 478.3 368 496zM432 144C432 161.7 446.3 176 464 176C481.7 176 496 161.7 496 144C496 126.3 481.7 112 464 112C446.3 112 432 126.3 432 144z"/><path d="M432 144C432 126.3 446.3 112 464 112C481.7 112 496 126.3 496 144C496 161.7 481.7 176 464 176C446.3 176 432 161.7 432 144zM402.1 194.6C408.9 202.9 417.3 209.8 426.8 214.8L390 416.6C378.5 418 367.8 421.9 358.3 427.7L217.3 304.2C221.6 294.3 224 283.5 224 272C224 270 223.9 267.9 223.8 265.9L402.1 194.6zM474 223.4C513.5 218.5 544 184.8 544 144C544 99.8 508.2 64 464 64C419.8 64 384 99.8 384 144C384 146 384.1 148.1 384.2 150.1L205.9 221.4C191.3 203.4 169 192 144 192C99.8 192 64 227.8 64 272C64 316.2 99.8 352 144 352C159.3 352 173.5 347.7 185.6 340.3L326.7 463.8C322.4 473.7 320 484.5 320 496C320 540.2 355.8 576 400 576C444.2 576 480 540.2 480 496C480 465.3 462.7 438.6 437.3 425.2L474 223.4zM368 496C368 478.3 382.3 464 400 464C417.7 464 432 478.3 432 496C432 513.7 417.7 528 400 528C382.3 528 368 513.7 368 496zM144 240C161.7 240 176 254.3 176 272C176 289.7 161.7 304 144 304C126.3 304 112 289.7 112 272C112 254.3 126.3 240 144 240z"/></svg>
|
||||
{:else if name === 'subnet-calculator'}
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Pro v7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--><path opacity=".4" d="M176 240L176 512C176 520.8 183.2 528 192 528L448 528C456.8 528 464 520.8 464 512L464 240L176 240zM256 296C256 309.3 245.3 320 232 320C218.7 320 208 309.3 208 296C208 282.7 218.7 272 232 272C245.3 272 256 282.7 256 296zM256 384C256 397.3 245.3 408 232 408C218.7 408 208 397.3 208 384C208 370.7 218.7 360 232 360C245.3 360 256 370.7 256 384zM208 472C208 458.7 218.7 448 232 448L320 448C333.3 448 344 458.7 344 472C344 485.3 333.3 496 320 496L232 496C218.7 496 208 485.3 208 472zM344 296C344 309.3 333.3 320 320 320C306.7 320 296 309.3 296 296C296 282.7 306.7 272 320 272C333.3 272 344 282.7 344 296zM344 384C344 397.3 333.3 408 320 408C306.7 408 296 397.3 296 384C296 370.7 306.7 360 320 360C333.3 360 344 370.7 344 384zM432 296C432 309.3 421.3 320 408 320C394.7 320 384 309.3 384 296C384 282.7 394.7 272 408 272C421.3 272 432 282.7 432 296zM432 384C432 397.3 421.3 408 408 408C394.7 408 384 397.3 384 384C384 370.7 394.7 360 408 360C421.3 360 432 370.7 432 384zM384 472C384 458.7 394.7 448 408 448C421.3 448 432 458.7 432 472C432 485.3 421.3 496 408 496C394.7 496 384 485.3 384 472z"/><path d="M464 240L464 512C464 520.8 456.8 528 448 528L192 528C183.2 528 176 520.8 176 512L176 240L464 240zM464 192L176 192L176 128C176 119.2 183.2 112 192 112L448 112C456.8 112 464 119.2 464 128L464 192zM512 192L512 128C512 92.7 483.3 64 448 64L192 64C156.7 64 128 92.7 128 128L128 512C128 547.3 156.7 576 192 576L448 576C483.3 576 512 547.3 512 512L512 192zM208 296C208 309.3 218.7 320 232 320C245.3 320 256 309.3 256 296C256 282.7 245.3 272 232 272C218.7 272 208 282.7 208 296zM232 360C218.7 360 208 370.7 208 384C208 397.3 218.7 408 232 408C245.3 408 256 397.3 256 384C256 370.7 245.3 360 232 360zM208 472C208 485.3 218.7 496 232 496L320 496C333.3 496 344 485.3 344 472C344 458.7 333.3 448 320 448L232 448C218.7 448 208 458.7 208 472zM320 272C306.7 272 296 282.7 296 296C296 309.3 306.7 320 320 320C333.3 320 344 309.3 344 296C344 282.7 333.3 272 320 272zM296 384C296 397.3 306.7 408 320 408C333.3 408 344 397.3 344 384C344 370.7 333.3 360 320 360C306.7 360 296 370.7 296 384zM408 272C394.7 272 384 282.7 384 296C384 309.3 394.7 320 408 320C421.3 320 432 309.3 432 296C432 282.7 421.3 272 408 272zM384 384C384 397.3 394.7 408 408 408C421.3 408 432 397.3 432 384C432 370.7 421.3 360 408 360C394.7 360 384 370.7 384 384zM408 448C394.7 448 384 458.7 384 472C384 485.3 394.7 496 408 496C421.3 496 432 485.3 432 472C432 458.7 421.3 448 408 448z"/></svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><path opacity=".4" d="M176 240L176 512C176 520.8 183.2 528 192 528L448 528C456.8 528 464 520.8 464 512L464 240L176 240zM256 296C256 309.3 245.3 320 232 320C218.7 320 208 309.3 208 296C208 282.7 218.7 272 232 272C245.3 272 256 282.7 256 296zM256 384C256 397.3 245.3 408 232 408C218.7 408 208 397.3 208 384C208 370.7 218.7 360 232 360C245.3 360 256 370.7 256 384zM208 472C208 458.7 218.7 448 232 448L320 448C333.3 448 344 458.7 344 472C344 485.3 333.3 496 320 496L232 496C218.7 496 208 485.3 208 472zM344 296C344 309.3 333.3 320 320 320C306.7 320 296 309.3 296 296C296 282.7 306.7 272 320 272C333.3 272 344 282.7 344 296zM344 384C344 397.3 333.3 408 320 408C306.7 408 296 397.3 296 384C296 370.7 306.7 360 320 360C333.3 360 344 370.7 344 384zM432 296C432 309.3 421.3 320 408 320C394.7 320 384 309.3 384 296C384 282.7 394.7 272 408 272C421.3 272 432 282.7 432 296zM432 384C432 397.3 421.3 408 408 408C394.7 408 384 397.3 384 384C384 370.7 394.7 360 408 360C421.3 360 432 370.7 432 384zM384 472C384 458.7 394.7 448 408 448C421.3 448 432 458.7 432 472C432 485.3 421.3 496 408 496C394.7 496 384 485.3 384 472z"/><path d="M464 240L464 512C464 520.8 456.8 528 448 528L192 528C183.2 528 176 520.8 176 512L176 240L464 240zM464 192L176 192L176 128C176 119.2 183.2 112 192 112L448 112C456.8 112 464 119.2 464 128L464 192zM512 192L512 128C512 92.7 483.3 64 448 64L192 64C156.7 64 128 92.7 128 128L128 512C128 547.3 156.7 576 192 576L448 576C483.3 576 512 547.3 512 512L512 192zM208 296C208 309.3 218.7 320 232 320C245.3 320 256 309.3 256 296C256 282.7 245.3 272 232 272C218.7 272 208 282.7 208 296zM232 360C218.7 360 208 370.7 208 384C208 397.3 218.7 408 232 408C245.3 408 256 397.3 256 384C256 370.7 245.3 360 232 360zM208 472C208 485.3 218.7 496 232 496L320 496C333.3 496 344 485.3 344 472C344 458.7 333.3 448 320 448L232 448C218.7 448 208 458.7 208 472zM320 272C306.7 272 296 282.7 296 296C296 309.3 306.7 320 320 320C333.3 320 344 309.3 344 296C344 282.7 333.3 272 320 272zM296 384C296 397.3 306.7 408 320 408C333.3 408 344 397.3 344 384C344 370.7 333.3 360 320 360C306.7 360 296 370.7 296 384zM408 272C394.7 272 384 282.7 384 296C384 309.3 394.7 320 408 320C421.3 320 432 309.3 432 296C432 282.7 421.3 272 408 272zM384 384C384 397.3 394.7 408 408 408C421.3 408 432 397.3 432 384C432 370.7 421.3 360 408 360C394.7 360 384 370.7 384 384zM408 448C394.7 448 384 458.7 384 472C384 485.3 394.7 496 408 496C421.3 496 432 485.3 432 472C432 458.7 421.3 448 408 448z"/></svg>
|
||||
{:else if name === 'vlsm-calculator'}
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Pro v7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--><path opacity=".4" d="M139.2 212C132.6 223.5 136.5 238.2 148 244.8C159.5 251.4 174.2 247.5 180.8 236C187.4 224.5 183.5 209.8 172 203.2C160.5 196.6 145.8 200.5 139.2 212zM139.2 428C145.8 439.5 160.5 443.4 172 436.8C183.5 430.2 187.4 415.5 180.8 404C174.2 392.5 159.5 388.6 148 395.2C136.5 401.8 132.6 416.5 139.2 428zM296 128C296 141.3 306.7 152 320 152C333.3 152 344 141.3 344 128C344 114.7 333.3 104 320 104C306.7 104 296 114.7 296 128zM296 320C296 333.3 306.7 344 320 344C333.3 344 344 333.3 344 320C344 306.7 333.3 296 320 296C306.7 296 296 306.7 296 320zM296 512C296 525.3 306.7 536 320 536C333.3 536 344 525.3 344 512C344 498.7 333.3 488 320 488C306.7 488 296 498.7 296 512zM459.2 236C465.8 247.5 480.5 251.4 492 244.8C503.5 238.2 507.4 223.5 500.8 212C494.2 200.5 479.5 196.6 468 203.2C456.5 209.8 452.6 224.5 459.2 236zM459.2 404C452.6 415.5 456.5 430.2 468 436.8C479.5 443.4 494.2 439.5 500.8 428C507.4 416.5 503.5 401.8 492 395.2C480.5 388.6 465.8 392.5 459.2 404z"/><path d="M320 152C333.3 152 344 141.3 344 128C344 114.7 333.3 104 320 104C306.7 104 296 114.7 296 128C296 141.3 306.7 152 320 152zM384 128C384 154.9 367.5 177.9 344 187.3L344 260.6C367.5 270.1 384 293.1 384 319.9C384 323.3 383.7 326.6 383.2 329.9L441.4 364.8C445.9 361.4 450.8 358.7 455.9 356.6L455.9 283.3C450.7 281.2 445.9 278.5 441.4 275.1L412 292.7C407.3 276.9 398.7 262.8 387.3 251.6L416.7 234C412.7 208.6 424.4 182.3 447.9 168.6C478.5 150.9 517.7 161.4 535.3 192C552.9 222.6 542.5 261.8 511.9 279.4C509.3 280.9 506.6 282.2 503.9 283.3L503.9 356.6C506.6 357.7 509.3 359 511.9 360.5C542.5 378.2 553 417.3 535.3 447.9C517.6 478.5 478.5 489 447.9 471.3C424.3 457.7 412.7 431.3 416.7 405.9L358.5 371C354.1 374.3 349.2 377.1 344 379.2L344 452.5C367.5 462 384 485 384 511.8C384 547.1 355.3 575.8 320 575.8C284.7 575.8 256 547.1 256 511.8C256 484.9 272.5 461.9 296 452.5L296 379.2C272.5 369.7 256 346.7 256 319.9C256 316.5 256.3 313.2 256.8 309.9L198.6 275C194.1 278.4 189.2 281.1 184 283.2L184 356.5C189.1 358.6 194 361.3 198.5 364.7L227.9 347.1C232.6 362.9 241.2 377 252.6 388.2L223.2 406C227.2 431.4 215.6 457.8 192 471.4C161.4 489.1 122.3 478.6 104.6 448C86.9 417.4 97.4 378.3 128 360.6C130.6 359.1 133.3 357.8 136 356.7L136 283.4C133.3 282.3 130.6 281 128 279.5C97.4 261.8 86.9 222.6 104.6 192C122.3 161.4 161.4 150.9 192 168.6C215.6 182.2 227.2 208.6 223.2 234L281.4 268.9C285.8 265.6 290.7 262.8 295.9 260.7L295.9 187.4C272.4 177.9 255.9 154.9 255.9 128.1C255.9 92.8 284.6 64.1 319.9 64.1C355.2 64.1 383.9 92.8 383.9 128.1zM320 344C333.3 344 344 333.3 344 320C344 306.7 333.3 296 320 296C306.7 296 296 306.7 296 320C296 333.3 306.7 344 320 344zM492 244.8C503.5 238.2 507.4 223.5 500.8 212C494.2 200.5 479.5 196.6 468 203.2C456.5 209.8 452.6 224.5 459.2 236C465.8 247.5 480.5 251.4 492 244.8zM180.8 236C187.4 224.5 183.5 209.8 172 203.2C160.5 196.6 145.8 200.5 139.2 212C132.6 223.5 136.5 238.2 148 244.8C159.5 251.4 174.2 247.5 180.8 236zM344 512C344 498.7 333.3 488 320 488C306.7 488 296 498.7 296 512C296 525.3 306.7 536 320 536C333.3 536 344 525.3 344 512zM139.2 428C145.8 439.5 160.5 443.4 172 436.8C183.5 430.2 187.4 415.5 180.8 404C174.2 392.5 159.5 388.6 148 395.2C136.5 401.8 132.6 416.5 139.2 428zM492 395.2C480.5 388.6 465.8 392.5 459.2 404C452.6 415.5 456.5 430.2 468 436.8C479.5 443.4 494.2 439.5 500.8 428C507.4 416.5 503.5 401.8 492 395.2z"/></svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><path opacity=".4" d="M139.2 212C132.6 223.5 136.5 238.2 148 244.8C159.5 251.4 174.2 247.5 180.8 236C187.4 224.5 183.5 209.8 172 203.2C160.5 196.6 145.8 200.5 139.2 212zM139.2 428C145.8 439.5 160.5 443.4 172 436.8C183.5 430.2 187.4 415.5 180.8 404C174.2 392.5 159.5 388.6 148 395.2C136.5 401.8 132.6 416.5 139.2 428zM296 128C296 141.3 306.7 152 320 152C333.3 152 344 141.3 344 128C344 114.7 333.3 104 320 104C306.7 104 296 114.7 296 128zM296 320C296 333.3 306.7 344 320 344C333.3 344 344 333.3 344 320C344 306.7 333.3 296 320 296C306.7 296 296 306.7 296 320zM296 512C296 525.3 306.7 536 320 536C333.3 536 344 525.3 344 512C344 498.7 333.3 488 320 488C306.7 488 296 498.7 296 512zM459.2 236C465.8 247.5 480.5 251.4 492 244.8C503.5 238.2 507.4 223.5 500.8 212C494.2 200.5 479.5 196.6 468 203.2C456.5 209.8 452.6 224.5 459.2 236zM459.2 404C452.6 415.5 456.5 430.2 468 436.8C479.5 443.4 494.2 439.5 500.8 428C507.4 416.5 503.5 401.8 492 395.2C480.5 388.6 465.8 392.5 459.2 404z"/><path d="M320 152C333.3 152 344 141.3 344 128C344 114.7 333.3 104 320 104C306.7 104 296 114.7 296 128C296 141.3 306.7 152 320 152zM384 128C384 154.9 367.5 177.9 344 187.3L344 260.6C367.5 270.1 384 293.1 384 319.9C384 323.3 383.7 326.6 383.2 329.9L441.4 364.8C445.9 361.4 450.8 358.7 455.9 356.6L455.9 283.3C450.7 281.2 445.9 278.5 441.4 275.1L412 292.7C407.3 276.9 398.7 262.8 387.3 251.6L416.7 234C412.7 208.6 424.4 182.3 447.9 168.6C478.5 150.9 517.7 161.4 535.3 192C552.9 222.6 542.5 261.8 511.9 279.4C509.3 280.9 506.6 282.2 503.9 283.3L503.9 356.6C506.6 357.7 509.3 359 511.9 360.5C542.5 378.2 553 417.3 535.3 447.9C517.6 478.5 478.5 489 447.9 471.3C424.3 457.7 412.7 431.3 416.7 405.9L358.5 371C354.1 374.3 349.2 377.1 344 379.2L344 452.5C367.5 462 384 485 384 511.8C384 547.1 355.3 575.8 320 575.8C284.7 575.8 256 547.1 256 511.8C256 484.9 272.5 461.9 296 452.5L296 379.2C272.5 369.7 256 346.7 256 319.9C256 316.5 256.3 313.2 256.8 309.9L198.6 275C194.1 278.4 189.2 281.1 184 283.2L184 356.5C189.1 358.6 194 361.3 198.5 364.7L227.9 347.1C232.6 362.9 241.2 377 252.6 388.2L223.2 406C227.2 431.4 215.6 457.8 192 471.4C161.4 489.1 122.3 478.6 104.6 448C86.9 417.4 97.4 378.3 128 360.6C130.6 359.1 133.3 357.8 136 356.7L136 283.4C133.3 282.3 130.6 281 128 279.5C97.4 261.8 86.9 222.6 104.6 192C122.3 161.4 161.4 150.9 192 168.6C215.6 182.2 227.2 208.6 223.2 234L281.4 268.9C285.8 265.6 290.7 262.8 295.9 260.7L295.9 187.4C272.4 177.9 255.9 154.9 255.9 128.1C255.9 92.8 284.6 64.1 319.9 64.1C355.2 64.1 383.9 92.8 383.9 128.1zM320 344C333.3 344 344 333.3 344 320C344 306.7 333.3 296 320 296C306.7 296 296 306.7 296 320C296 333.3 306.7 344 320 344zM492 244.8C503.5 238.2 507.4 223.5 500.8 212C494.2 200.5 479.5 196.6 468 203.2C456.5 209.8 452.6 224.5 459.2 236C465.8 247.5 480.5 251.4 492 244.8zM180.8 236C187.4 224.5 183.5 209.8 172 203.2C160.5 196.6 145.8 200.5 139.2 212C132.6 223.5 136.5 238.2 148 244.8C159.5 251.4 174.2 247.5 180.8 236zM344 512C344 498.7 333.3 488 320 488C306.7 488 296 498.7 296 512C296 525.3 306.7 536 320 536C333.3 536 344 525.3 344 512zM139.2 428C145.8 439.5 160.5 443.4 172 436.8C183.5 430.2 187.4 415.5 180.8 404C174.2 392.5 159.5 388.6 148 395.2C136.5 401.8 132.6 416.5 139.2 428zM492 395.2C480.5 388.6 465.8 392.5 459.2 404C452.6 415.5 456.5 430.2 468 436.8C479.5 443.4 494.2 439.5 500.8 428C507.4 416.5 503.5 401.8 492 395.2z"/></svg>
|
||||
{:else if name === 'supernet-calculator'}
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><path opacity=".4" d="M107.2 308.1C103 315.5 103 324.6 107.2 331.9L203.4 500C207.7 507.5 215.6 512.1 224.2 512.1L415.8 512.1C424.4 512.1 432.4 507.5 436.6 500L532.8 332C537 324.6 537 315.5 532.8 308.2L436.7 140.1C432.4 132.6 424.4 128 415.8 128L224.2 128C215.6 128 207.6 132.6 203.4 140.1L107.2 308.1zM184 352C184 329.9 201.9 312 224 312L281.6 235.2C280.6 231.6 280 227.9 280 224C280 201.9 297.9 184 320 184C342.1 184 360 201.9 360 224C360 231.6 357.9 238.7 354.2 244.8L394.4 345.4C411.4 350 424 365.5 424 384C424 406.1 406.1 424 384 424C368.1 424 354.3 414.7 347.9 401.3L250.7 381.9C243.6 388.2 234.3 392.1 224 392.1C201.9 392.1 184 374.2 184 352.1zM266 335.9L345.2 351.7L313.5 272.5L266 335.9z"/><path d="M65.5 284.3C52.8 306.5 52.8 333.7 65.5 355.8L161.7 523.9C174.5 546.3 198.4 560.1 224.2 560.1L415.8 560.1C441.6 560.1 465.5 546.3 478.3 523.9L574.5 355.8C587.2 333.6 587.2 306.4 574.5 284.3L478.3 116.2C465.5 93.8 441.6 80 415.8 80L224.2 80C198.4 80 174.5 93.8 161.7 116.2L65.5 284.3zM107.2 332C103 324.6 103 315.5 107.2 308.2L203.4 140.1C207.7 132.6 215.6 128 224.2 128L415.8 128C424.4 128 432.4 132.6 436.6 140.1L532.8 308.2C537 315.6 537 324.7 532.8 332L436.7 500C432.4 507.5 424.5 512.1 415.9 512.1L224.3 512.1C215.7 512.1 207.7 507.5 203.5 500L107.2 332zM360 224C360 201.9 342.1 184 320 184C297.9 184 280 201.9 280 224C280 227.9 280.6 231.7 281.6 235.2L224 312C201.9 312 184 329.9 184 352C184 374.1 201.9 392 224 392C234.2 392 243.6 388.1 250.7 381.8L347.9 401.2C354.3 414.7 368.1 423.9 384 423.9C406.1 423.9 424 406 424 383.9C424 365.4 411.4 349.8 394.4 345.3L354.2 244.8C357.9 238.7 360 231.6 360 224zM266.1 335.9L313.6 272.5L345.3 351.7L266.1 335.9z"/></svg>
|
||||
{:else if name === 'cidr-convertor'}
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Pro v7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--><path opacity=".4" d="M86.6 384L208 262.6L208 320C208 326.4 210.5 332.5 215 337C219.5 341.5 225.6 344 232 344L320 344L320 448C320 434.7 309.3 424 296 424L232 424C218.7 424 208 434.7 208 448L208 505.4L86.6 384zM320 192C320 205.3 330.7 216 344 216L408 216C421.3 216 432 205.3 432 192L432 134.6L553.4 256L432 377.4L432 320C432 313.6 429.5 307.5 425 303C420.5 298.5 414.4 296 408 296L320 296L320 192z"/><path d="M432 134.6L432 192C432 205.3 421.3 216 408 216L344 216C330.7 216 320 205.3 320 192C320 178.7 330.7 168 344 168L384 168L384 96C384 83.1 391.8 71.4 403.8 66.4L403.8 66.4C415.8 61.4 429.5 64.2 438.7 73.3L598.7 233.3C611.2 245.8 611.2 266.1 598.7 278.6L438.7 438.6C429.5 447.8 415.8 450.5 403.8 445.5C391.8 440.5 384 428.9 384 416L384 344L232 344C225.6 344 219.5 341.5 215 337C210.5 332.5 208 326.4 208 320L208 262.6L86.6 384L208 505.4L208 448C208 434.7 218.7 424 232 424L296 424C309.3 424 320 434.7 320 448C320 461.3 309.3 472 296 472L256 472L256 544C256 556.9 248.2 568.6 236.2 573.6L236.2 573.6C224.2 578.6 210.5 575.8 201.3 566.7L41.3 406.7C28.8 394.2 28.8 373.9 41.3 361.4L201.3 201.4C210.5 192.2 224.2 189.5 236.2 194.5C248.2 199.5 256 211.1 256 224L256 296L408 296C414.4 296 420.5 298.5 425 303C429.5 307.5 432 313.6 432 320L432 377.4L553.4 256L432 134.6zM404.7 404.7L404.7 404.7zM235.3 532.7L235.3 532.7C235.3 532.7 235.3 532.7 235.3 532.7zM75.3 372.7C75.3 372.7 75.3 372.7 75.3 372.7L75.3 372.7L75.3 372.7z"/></svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><path opacity=".4" d="M86.6 384L208 262.6L208 320C208 326.4 210.5 332.5 215 337C219.5 341.5 225.6 344 232 344L320 344L320 448C320 434.7 309.3 424 296 424L232 424C218.7 424 208 434.7 208 448L208 505.4L86.6 384zM320 192C320 205.3 330.7 216 344 216L408 216C421.3 216 432 205.3 432 192L432 134.6L553.4 256L432 377.4L432 320C432 313.6 429.5 307.5 425 303C420.5 298.5 414.4 296 408 296L320 296L320 192z"/><path d="M432 134.6L432 192C432 205.3 421.3 216 408 216L344 216C330.7 216 320 205.3 320 192C320 178.7 330.7 168 344 168L384 168L384 96C384 83.1 391.8 71.4 403.8 66.4L403.8 66.4C415.8 61.4 429.5 64.2 438.7 73.3L598.7 233.3C611.2 245.8 611.2 266.1 598.7 278.6L438.7 438.6C429.5 447.8 415.8 450.5 403.8 445.5C391.8 440.5 384 428.9 384 416L384 344L232 344C225.6 344 219.5 341.5 215 337C210.5 332.5 208 326.4 208 320L208 262.6L86.6 384L208 505.4L208 448C208 434.7 218.7 424 232 424L296 424C309.3 424 320 434.7 320 448C320 461.3 309.3 472 296 472L256 472L256 544C256 556.9 248.2 568.6 236.2 573.6L236.2 573.6C224.2 578.6 210.5 575.8 201.3 566.7L41.3 406.7C28.8 394.2 28.8 373.9 41.3 361.4L201.3 201.4C210.5 192.2 224.2 189.5 236.2 194.5C248.2 199.5 256 211.1 256 224L256 296L408 296C414.4 296 420.5 298.5 425 303C429.5 307.5 432 313.6 432 320L432 377.4L553.4 256L432 134.6zM404.7 404.7L404.7 404.7zM235.3 532.7L235.3 532.7C235.3 532.7 235.3 532.7 235.3 532.7zM75.3 372.7C75.3 372.7 75.3 372.7 75.3 372.7L75.3 372.7L75.3 372.7z"/></svg>
|
||||
{:else if name === 'network-classes'}
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Pro v7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--><path opacity=".4" d="M40 368C40 381.3 50.7 392 64 392C77.3 392 88 381.3 88 368C88 354.7 77.3 344 64 344C50.7 344 40 354.7 40 368zM200 128C200 141.3 210.7 152 224 152C237.3 152 248 141.3 248 128C248 114.7 237.3 104 224 104C210.7 104 200 114.7 200 128zM240 368C240 421 283 464 336 464C389 464 432 421 432 368C432 315 389 272 336 272C283 272 240 315 240 368zM552 192C552 205.3 562.7 216 576 216C589.3 216 600 205.3 600 192C600 178.7 589.3 168 576 168C562.7 168 552 178.7 552 192zM552 512C552 525.3 562.7 536 576 536C589.3 536 600 525.3 600 512C600 498.7 589.3 488 576 488C562.7 488 552 498.7 552 512z"/><path d="M224 104C237.3 104 248 114.7 248 128C248 141.3 237.3 152 224 152C210.7 152 200 141.3 200 128C200 114.7 210.7 104 224 104zM224 192C225.1 192 226.2 192 227.3 191.9L254.2 249.5C222.9 271.2 200.5 304.9 194 344L123.4 344C113.9 320.5 90.9 304 64.1 304C28.8 304 .1 332.7 .1 368C.1 403.3 28.8 432 64.1 432C91 432 114 415.5 123.4 392L194 392C205.4 460.1 264.7 512 336 512C379.8 512 419 492.5 445.4 461.6L512.8 502C512.3 505.2 512 508.6 512 511.9C512 547.2 540.7 575.9 576 575.9C611.3 575.9 640 547.2 640 511.9C640 476.6 611.3 447.9 576 447.9C561.5 447.9 548.2 452.7 537.5 460.8L470.2 420.4C476.6 404.1 480.1 386.4 480.1 367.9C480.1 344.7 474.6 322.7 464.8 303.3L542.4 246.4C552.2 252.5 563.7 256 576.1 256C611.4 256 640.1 227.3 640.1 192C640.1 156.7 611.4 128 576.1 128C540.8 128 512.1 156.7 512.1 192C512.1 197.4 512.8 202.7 514 207.7L436.4 264.6C410.5 239.4 375.1 223.9 336.1 223.9C322.8 223.9 310 225.7 297.8 229.1L270.9 171.6C281.5 160.2 288 144.9 288 128C288 92.7 259.3 64 224 64C188.7 64 160 92.7 160 128C160 163.3 188.7 192 224 192zM576 168C589.3 168 600 178.7 600 192C600 205.3 589.3 216 576 216C562.7 216 552 205.3 552 192C552 178.7 562.7 168 576 168zM552 512C552 498.7 562.7 488 576 488C589.3 488 600 498.7 600 512C600 525.3 589.3 536 576 536C562.7 536 552 525.3 552 512zM64 344C77.3 344 88 354.7 88 368C88 381.3 77.3 392 64 392C50.7 392 40 381.3 40 368C40 354.7 50.7 344 64 344zM336 272C389 272 432 315 432 368C432 421 389 464 336 464C283 464 240 421 240 368C240 315 283 272 336 272z"/></svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><path opacity=".4" d="M40 368C40 381.3 50.7 392 64 392C77.3 392 88 381.3 88 368C88 354.7 77.3 344 64 344C50.7 344 40 354.7 40 368zM200 128C200 141.3 210.7 152 224 152C237.3 152 248 141.3 248 128C248 114.7 237.3 104 224 104C210.7 104 200 114.7 200 128zM240 368C240 421 283 464 336 464C389 464 432 421 432 368C432 315 389 272 336 272C283 272 240 315 240 368zM552 192C552 205.3 562.7 216 576 216C589.3 216 600 205.3 600 192C600 178.7 589.3 168 576 168C562.7 168 552 178.7 552 192zM552 512C552 525.3 562.7 536 576 536C589.3 536 600 525.3 600 512C600 498.7 589.3 488 576 488C562.7 488 552 498.7 552 512z"/><path d="M224 104C237.3 104 248 114.7 248 128C248 141.3 237.3 152 224 152C210.7 152 200 141.3 200 128C200 114.7 210.7 104 224 104zM224 192C225.1 192 226.2 192 227.3 191.9L254.2 249.5C222.9 271.2 200.5 304.9 194 344L123.4 344C113.9 320.5 90.9 304 64.1 304C28.8 304 .1 332.7 .1 368C.1 403.3 28.8 432 64.1 432C91 432 114 415.5 123.4 392L194 392C205.4 460.1 264.7 512 336 512C379.8 512 419 492.5 445.4 461.6L512.8 502C512.3 505.2 512 508.6 512 511.9C512 547.2 540.7 575.9 576 575.9C611.3 575.9 640 547.2 640 511.9C640 476.6 611.3 447.9 576 447.9C561.5 447.9 548.2 452.7 537.5 460.8L470.2 420.4C476.6 404.1 480.1 386.4 480.1 367.9C480.1 344.7 474.6 322.7 464.8 303.3L542.4 246.4C552.2 252.5 563.7 256 576.1 256C611.4 256 640.1 227.3 640.1 192C640.1 156.7 611.4 128 576.1 128C540.8 128 512.1 156.7 512.1 192C512.1 197.4 512.8 202.7 514 207.7L436.4 264.6C410.5 239.4 375.1 223.9 336.1 223.9C322.8 223.9 310 225.7 297.8 229.1L270.9 171.6C281.5 160.2 288 144.9 288 128C288 92.7 259.3 64 224 64C188.7 64 160 92.7 160 128C160 163.3 188.7 192 224 192zM576 168C589.3 168 600 178.7 600 192C600 205.3 589.3 216 576 216C562.7 216 552 205.3 552 192C552 178.7 562.7 168 576 168zM552 512C552 498.7 562.7 488 576 488C589.3 488 600 498.7 600 512C600 525.3 589.3 536 576 536C562.7 536 552 525.3 552 512zM64 344C77.3 344 88 354.7 88 368C88 381.3 77.3 392 64 392C50.7 392 40 381.3 40 368C40 354.7 50.7 344 64 344zM336 272C389 272 432 315 432 368C432 421 389 464 336 464C283 464 240 421 240 368C240 315 283 272 336 272z"/></svg>
|
||||
{:else if name === 'reserved-ranges'}
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Pro v7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--><path opacity=".4" d="M112 432L112 528L528 528L528 432L112 432z"/><path d="M344 64L344 192C344 205.3 333.3 216 320 216C306.7 216 296 205.3 296 192L296 64C296 50.7 306.7 40 320 40C333.3 40 344 50.7 344 64zM192 352C192 334.3 206.3 320 224 320L416 320C433.7 320 448 334.3 448 352L448 384L528 384C554.5 384 576 405.5 576 432L576 528C576 554.5 554.5 576 528 576L112 576C85.5 576 64 554.5 64 528L64 432C64 405.5 85.5 384 112 384L192 384L192 352zM528 528L528 432L112 432L112 528L528 528zM44 178.7C51.4 167.7 66.3 164.7 77.3 172L173.3 236C184.3 243.4 187.3 258.3 180 269.3C172.7 280.3 157.7 283.3 146.7 276L50.7 212C39.7 204.6 36.7 189.7 44 178.7zM562.7 172C573.7 164.6 588.6 167.6 596 178.7C603.4 189.8 600.4 204.6 589.3 212L493.3 276C482.3 283.4 467.4 280.4 460 269.3C452.6 258.2 455.6 243.4 466.7 236L562.7 172z"/></svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><path opacity=".4" d="M112 432L112 528L528 528L528 432L112 432z"/><path d="M344 64L344 192C344 205.3 333.3 216 320 216C306.7 216 296 205.3 296 192L296 64C296 50.7 306.7 40 320 40C333.3 40 344 50.7 344 64zM192 352C192 334.3 206.3 320 224 320L416 320C433.7 320 448 334.3 448 352L448 384L528 384C554.5 384 576 405.5 576 432L576 528C576 554.5 554.5 576 528 576L112 576C85.5 576 64 554.5 64 528L64 432C64 405.5 85.5 384 112 384L192 384L192 352zM528 528L528 432L112 432L112 528L528 528zM44 178.7C51.4 167.7 66.3 164.7 77.3 172L173.3 236C184.3 243.4 187.3 258.3 180 269.3C172.7 280.3 157.7 283.3 146.7 276L50.7 212C39.7 204.6 36.7 189.7 44 178.7zM562.7 172C573.7 164.6 588.6 167.6 596 178.7C603.4 189.8 600.4 204.6 589.3 212L493.3 276C482.3 283.4 467.4 280.4 460 269.3C452.6 258.2 455.6 243.4 466.7 236L562.7 172z"/></svg>
|
||||
{:else if name === 'common-subnets'}
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Pro v7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--><path opacity=".4" d="M112 144L208 144L208 240L112 240L112 144zM304 400L400 400L400 496L304 496L304 400zM432 144L528 144L528 240L432 240L432 144z"/><path d="M112 144L112 240L208 240L208 144L112 144zM64 144C64 117.5 85.5 96 112 96L208 96C234.5 96 256 117.5 256 144L256 168L384 168L384 144C384 117.5 405.5 96 432 96L528 96C554.5 96 576 117.5 576 144L576 240C576 266.5 554.5 288 528 288L432 288C405.5 288 384 266.5 384 240L384 216L256 216L256 240C256 250.4 252.7 260.1 247 268L310 352L400 352C426.5 352 448 373.5 448 400L448 496C448 522.5 426.5 544 400 544L304 544C277.5 544 256 522.5 256 496L256 400C256 389.6 259.3 379.9 265 372L202 288L112 288C85.5 288 64 266.5 64 240L64 144zM304 400L304 496L400 496L400 400L304 400zM528 144L432 144L432 240L528 240L528 144z"/></svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><path opacity=".4" d="M112 144L208 144L208 240L112 240L112 144zM304 400L400 400L400 496L304 496L304 400zM432 144L528 144L528 240L432 240L432 144z"/><path d="M112 144L112 240L208 240L208 144L112 144zM64 144C64 117.5 85.5 96 112 96L208 96C234.5 96 256 117.5 256 144L256 168L384 168L384 144C384 117.5 405.5 96 432 96L528 96C554.5 96 576 117.5 576 144L576 240C576 266.5 554.5 288 528 288L432 288C405.5 288 384 266.5 384 240L384 216L256 216L256 240C256 250.4 252.7 260.1 247 268L310 352L400 352C426.5 352 448 373.5 448 400L448 496C448 522.5 426.5 544 400 544L304 544C277.5 544 256 522.5 256 496L256 400C256 389.6 259.3 379.9 265 372L202 288L112 288C85.5 288 64 266.5 64 240L64 144zM304 400L304 496L400 496L400 400L304 400zM528 144L432 144L432 240L528 240L528 144z"/></svg>
|
||||
{:else if name === 'plus'}
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Pro v7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--><path opacity=".4" d=""/><path d="M344 88C344 74.7 333.3 64 320 64C306.7 64 296 74.7 296 88L296 296L88 296C74.7 296 64 306.7 64 320C64 333.3 74.7 344 88 344L296 344L296 552C296 565.3 306.7 576 320 576C333.3 576 344 565.3 344 552L344 344L552 344C565.3 344 576 333.3 576 320C576 306.7 565.3 296 552 296L344 296L344 88z"/></svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><path opacity=".4" d=""/><path d="M344 88C344 74.7 333.3 64 320 64C306.7 64 296 74.7 296 88L296 296L88 296C74.7 296 64 306.7 64 320C64 333.3 74.7 344 88 344L296 344L296 552C296 565.3 306.7 576 320 576C333.3 576 344 565.3 344 552L344 344L552 344C565.3 344 576 333.3 576 320C576 306.7 565.3 296 552 296L344 296L344 88z"/></svg>
|
||||
{:else if name === 'trash'}
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Pro v7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--><path opacity=".4" d="M172.9 208L195.5 513.2C196.1 521.6 203.1 528 211.5 528L428.6 528C437 528 443.9 521.5 444.6 513.2L467.1 208L172.9 208z"/><path d="M232.2 68.8C236.9 56.3 248.8 48 262.2 48L377.8 48C391.1 48 403.1 56.3 407.8 68.8L424 112L520 112C533.3 112 544 122.7 544 136C544 149.3 533.3 160 520 160L120 160C106.7 160 96 149.3 96 136C96 122.7 106.7 112 120 112L216 112L232.2 68.8zM147.6 516.8L124.7 208L172.9 208L195.5 513.2C196.1 521.6 203.1 528 211.5 528L428.6 528C437 528 443.9 521.5 444.6 513.2L467.2 208L515.3 208L492.4 516.7C489.9 550.1 462.1 576 428.6 576L211.5 576C178 576 150.2 550.1 147.7 516.7z"/></svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><path opacity=".4" d="M172.9 208L195.5 513.2C196.1 521.6 203.1 528 211.5 528L428.6 528C437 528 443.9 521.5 444.6 513.2L467.1 208L172.9 208z"/><path d="M232.2 68.8C236.9 56.3 248.8 48 262.2 48L377.8 48C391.1 48 403.1 56.3 407.8 68.8L424 112L520 112C533.3 112 544 122.7 544 136C544 149.3 533.3 160 520 160L120 160C106.7 160 96 149.3 96 136C96 122.7 106.7 112 120 112L216 112L232.2 68.8zM147.6 516.8L124.7 208L172.9 208L195.5 513.2C196.1 521.6 203.1 528 211.5 528L428.6 528C437 528 443.9 521.5 444.6 513.2L467.2 208L515.3 208L492.4 516.7C489.9 550.1 462.1 576 428.6 576L211.5 576C178 576 150.2 550.1 147.7 516.7z"/></svg>
|
||||
{:else if name === 'chevron-up'}
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Pro v7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--><path opacity=".4" d=""/><path d="M303.5 167C312.9 157.6 328.1 157.6 337.4 167L537.4 367C546.8 376.4 546.8 391.6 537.4 400.9C528 410.2 512.8 410.3 503.5 400.9L320.5 217.9L137.5 400.9C128.1 410.3 112.9 410.3 103.6 400.9C94.3 391.5 94.2 376.3 103.6 367L303.6 167z"/></svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><path opacity=".4" d=""/><path d="M303.5 167C312.9 157.6 328.1 157.6 337.4 167L537.4 367C546.8 376.4 546.8 391.6 537.4 400.9C528 410.2 512.8 410.3 503.5 400.9L320.5 217.9L137.5 400.9C128.1 410.3 112.9 410.3 103.6 400.9C94.3 391.5 94.2 376.3 103.6 367L303.6 167z"/></svg>
|
||||
{:else if name === 'chevron-down'}
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Pro v7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--><path opacity=".4" d=""/><path d="M303.5 473C312.9 482.4 328.1 482.4 337.4 473L537.4 273C546.8 263.6 546.8 248.4 537.4 239.1C528 229.8 512.8 229.7 503.5 239.1L320.5 422.1L137.5 239.1C128.1 229.7 112.9 229.7 103.6 239.1C94.3 248.5 94.2 263.7 103.6 273L303.6 473z"/></svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><path opacity=".4" d=""/><path d="M303.5 473C312.9 482.4 328.1 482.4 337.4 473L537.4 273C546.8 263.6 546.8 248.4 537.4 239.1C528 229.8 512.8 229.7 503.5 239.1L320.5 422.1L137.5 239.1C128.1 229.7 112.9 229.7 103.6 239.1C94.3 248.5 94.2 263.7 103.6 273L303.6 473z"/></svg>
|
||||
{:else if name === 'copy'}
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Pro v7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--><path opacity=".4" d="M272 128L272 384C272 392.8 279.2 400 288 400L480 400C488.8 400 496 392.8 496 384L496 186.5C496 182.3 494.3 178.2 491.3 175.2L432.8 116.7C429.8 113.7 425.7 112 421.5 112L288 112C279.2 112 272 119.2 272 128z"/><path d="M480 400L288 400C279.2 400 272 392.8 272 384L272 128C272 119.2 279.2 112 288 112L421.5 112C425.7 112 429.8 113.7 432.8 116.7L491.3 175.2C494.3 178.2 496 182.3 496 186.5L496 384C496 392.8 488.8 400 480 400zM288 448L480 448C515.3 448 544 419.3 544 384L544 186.5C544 169.5 537.3 153.2 525.3 141.2L466.7 82.7C454.7 70.7 438.5 64 421.5 64L288 64C252.7 64 224 92.7 224 128L224 384C224 419.3 252.7 448 288 448zM160 192C124.7 192 96 220.7 96 256L96 512C96 547.3 124.7 576 160 576L352 576C387.3 576 416 547.3 416 512L416 496L368 496L368 512C368 520.8 360.8 528 352 528L160 528C151.2 528 144 520.8 144 512L144 256C144 247.2 151.2 240 160 240L176 240L176 192L160 192z"/></svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><path opacity=".4" d="M272 128L272 384C272 392.8 279.2 400 288 400L480 400C488.8 400 496 392.8 496 384L496 186.5C496 182.3 494.3 178.2 491.3 175.2L432.8 116.7C429.8 113.7 425.7 112 421.5 112L288 112C279.2 112 272 119.2 272 128z"/><path d="M480 400L288 400C279.2 400 272 392.8 272 384L272 128C272 119.2 279.2 112 288 112L421.5 112C425.7 112 429.8 113.7 432.8 116.7L491.3 175.2C494.3 178.2 496 182.3 496 186.5L496 384C496 392.8 488.8 400 480 400zM288 448L480 448C515.3 448 544 419.3 544 384L544 186.5C544 169.5 537.3 153.2 525.3 141.2L466.7 82.7C454.7 70.7 438.5 64 421.5 64L288 64C252.7 64 224 92.7 224 128L224 384C224 419.3 252.7 448 288 448zM160 192C124.7 192 96 220.7 96 256L96 512C96 547.3 124.7 576 160 576L352 576C387.3 576 416 547.3 416 512L416 496L368 496L368 512C368 520.8 360.8 528 352 528L160 528C151.2 528 144 520.8 144 512L144 256C144 247.2 151.2 240 160 240L176 240L176 192L160 192z"/></svg>
|
||||
{:else if name === 'tick'}
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Pro v7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--><path opacity=".4" d=""/><path d="M534 132.5C544.8 140.2 547.2 155.2 539.5 166L275.5 534C271.4 539.7 265 543.4 258 543.9C251 544.4 244 542 239 537L103 401C93.6 391.6 93.6 376.4 103 367.1C112.4 357.8 127.6 357.7 136.9 367.1L253 483L500.5 138C508.2 127.2 523.2 124.8 534 132.5z"/></svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><path opacity=".4" d=""/><path d="M534 132.5C544.8 140.2 547.2 155.2 539.5 166L275.5 534C271.4 539.7 265 543.4 258 543.9C251 544.4 244 542 239 537L103 401C93.6 391.6 93.6 376.4 103 367.1C112.4 357.8 127.6 357.7 136.9 367.1L253 483L500.5 138C508.2 127.2 523.2 124.8 534 132.5z"/></svg>
|
||||
{:else if name === 'lightbulb'}
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Pro v7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--><path opacity=".4" d="M176 256C176 294.4 191 329.2 215.5 355.1C236.8 377.5 260.4 409.1 268.8 448L371.2 448C379.6 409 403.2 377.5 424.5 355.1C449 329.2 464 294.4 464 256C464 176.5 399.5 112 320 112C240.5 112 176 176.5 176 256zM224 248C224 199.4 263.4 160 312 160C325.3 160 336 170.7 336 184C336 197.3 325.3 208 312 208C289.9 208 272 225.9 272 248C272 261.3 261.3 272 248 272C234.7 272 224 261.3 224 248z"/><path d="M424.5 355.1C449 329.2 464 294.4 464 256C464 176.5 399.5 112 320 112C240.5 112 176 176.5 176 256C176 294.4 191 329.2 215.5 355.1C236.8 377.5 260.4 409.1 268.8 448L371.2 448C379.6 409 403.2 377.5 424.5 355.1zM459.3 388.1C435.7 413 416 443.4 416 477.7L416 496C416 540.2 380.2 576 336 576L304 576C259.8 576 224 540.2 224 496L224 477.7C224 443.4 204.3 413 180.7 388.1C148 353.7 128 307.2 128 256C128 150 214 64 320 64C426 64 512 150 512 256C512 307.2 492 353.7 459.3 388.1zM272 248C272 261.3 261.3 272 248 272C234.7 272 224 261.3 224 248C224 199.4 263.4 160 312 160C325.3 160 336 170.7 336 184C336 197.3 325.3 208 312 208C289.9 208 272 225.9 272 248z"/></svg>
|
||||
{:else if name === 'contiguous'}
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Pro v7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--><path opacity=".4" d="M112 320C112 434.9 205.1 528 320 528C434.9 528 528 434.9 528 320C528 205.1 434.9 112 320 112C205.1 112 112 205.1 112 320zM172 272C172 234.4 202.4 204 240 204C277.6 204 308 234.4 308 272L308 280C308 291 299 300 288 300C277 300 268 291 268 280L268 272C268 256.5 255.5 244 240 244C224.5 244 212 256.5 212 272L212 280C212 291 203 300 192 300C181 300 172 291 172 280L172 272zM206.7 416.6C197.5 407 197.8 391.8 207.4 382.7C217 373.6 232.2 373.8 241.3 383.4C256.3 399 282.4 416 320 416C357.6 416 383.7 399 398.7 383.4C407.9 373.8 423.1 373.5 432.6 382.7C442.1 391.9 442.5 407.1 433.3 416.6C411.2 439.6 373.3 464 320 464C266.7 464 228.8 439.6 206.7 416.6zM332 272C332 234.4 362.4 204 400 204C437.6 204 468 234.4 468 272L468 280C468 291 459 300 448 300C437 300 428 291 428 280L428 272C428 256.5 415.5 244 400 244C384.5 244 372 256.5 372 272L372 280C372 291 363 300 352 300C341 300 332 291 332 280L332 272z"/><path d="M528 320C528 205.1 434.9 112 320 112C205.1 112 112 205.1 112 320C112 434.9 205.1 528 320 528C434.9 528 528 434.9 528 320zM64 320C64 178.6 178.6 64 320 64C461.4 64 576 178.6 576 320C576 461.4 461.4 576 320 576C178.6 576 64 461.4 64 320zM241.3 383.4C256.3 399 282.4 416 320 416C357.6 416 383.7 399 398.7 383.4C407.9 373.8 423.1 373.5 432.6 382.7C442.1 391.9 442.5 407.1 433.3 416.6C411.2 439.6 373.3 464 320 464C266.7 464 228.8 439.6 206.7 416.6C197.5 407 197.8 391.8 207.4 382.7C217 373.6 232.2 373.8 241.3 383.4zM240 244C224.5 244 212 256.5 212 272L212 280C212 291 203 300 192 300C181 300 172 291 172 280L172 272C172 234.4 202.4 204 240 204C277.6 204 308 234.4 308 272L308 280C308 291 299 300 288 300C277 300 268 291 268 280L268 272C268 256.5 255.5 244 240 244zM372 272L372 280C372 291 363 300 352 300C341 300 332 291 332 280L332 272C332 234.4 362.4 204 400 204C437.6 204 468 234.4 468 272L468 280C468 291 459 300 448 300C437 300 428 291 428 280L428 272C428 256.5 415.5 244 400 244C384.5 244 372 256.5 372 272z"/></svg>
|
||||
{:else if name === 'scattered'}
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Pro v7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--><path opacity=".4" d="M112 320C112 434.9 205.1 528 320 528C434.9 528 528 434.9 528 320C528 205.1 434.9 112 320 112C205.1 112 112 205.1 112 320zM173.3 255C165 244.6 166.7 229.5 177 221.3L257 157.3C267.4 149 282.5 150.7 290.7 161C298.9 171.3 297.3 186.5 287 194.7L207 258.7C196.6 267 181.5 265.3 173.3 255zM184.8 317.8C181.6 304.9 189.4 291.9 202.3 288.7L266.3 272.7C279.2 269.5 292.2 277.3 295.4 290.2C298.6 303.1 290.8 316.1 277.9 319.3L213.9 335.3C201 338.5 188 330.7 184.8 317.8zM191 383C200.4 373.6 215.6 373.6 224.9 383L229.7 387.8C238.7 396.8 252.4 399 263.7 393.3C289.9 380.2 321.3 383 344.8 400.6L372.7 421.6C374.8 423.2 377.4 424 380 424C384 424 387.8 422 390 418.7L412.1 386.4C419.6 375.5 434.5 372.7 445.5 380.2C456.5 387.7 459.2 402.6 451.7 413.6L429.6 445.9C418.4 462.3 399.8 472.1 380 472.1C367 472.1 354.3 467.9 343.9 460.1L316 439C307.1 432.3 295.1 431.2 285.2 436.2C255.4 451.1 219.4 445.3 195.8 421.7L191 417C181.6 407.6 181.6 392.4 191 383.1zM352 272C352 236.7 373.5 208 400 208C426.5 208 448 236.7 448 272C448 307.3 426.5 336 400 336C373.5 336 352 307.3 352 272z"/><path d="M320 112C434.9 112 528 205.1 528 320C528 434.9 434.9 528 320 528C205.1 528 112 434.9 112 320C112 205.1 205.1 112 320 112zM320 576C461.4 576 576 461.4 576 320C576 178.6 461.4 64 320 64C178.6 64 64 178.6 64 320C64 461.4 178.6 576 320 576zM448 272C448 236.7 426.5 208 400 208C373.5 208 352 236.7 352 272C352 307.3 373.5 336 400 336C426.5 336 448 307.3 448 272zM277.8 319.3C290.7 316.1 298.5 303.1 295.3 290.2C292.1 277.3 279.1 269.5 266.2 272.7L202.2 288.7C189.3 291.9 181.5 304.9 184.7 317.8C187.9 330.7 200.9 338.5 213.8 335.3L277.8 319.3zM290.7 161C282.4 150.6 267.3 149 257 157.3L177 221.3C166.6 229.6 165 244.7 173.3 255C181.6 265.3 196.7 267 207 258.7L287 194.7C297.4 186.4 299 171.3 290.7 161zM451.8 413.6C459.3 402.7 456.5 387.7 445.6 380.2C434.7 372.7 419.7 375.5 412.2 386.4L390.1 418.7C387.8 422 384.1 424 380.1 424C377.5 424 374.9 423.1 372.8 421.6L344.9 400.6C321.4 383 290 380.2 263.8 393.3C252.5 399 238.8 396.7 229.8 387.8L225 383C215.6 373.6 200.4 373.6 191.1 383C181.8 392.4 181.7 407.6 191.1 416.9L195.9 421.7C219.5 445.3 255.5 451.1 285.3 436.2C295.3 431.2 307.2 432.3 316.1 439L344 460C354.4 467.8 367.1 472 380.1 472C399.9 472 418.5 462.2 429.7 445.8L451.8 413.5z"/></svg>
|
||||
{:else if name === 'help'}
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Pro v7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--><path opacity=".4" d="M112 320C112 434.9 205.1 528 320 528C434.9 528 528 434.9 528 320C528 205.1 434.9 112 320 112C205.1 112 112 205.1 112 320zM240 272C240 227.8 275.8 192 320 192C364.2 192 400 227.8 400 272C400 319.2 364 339.2 344 346.5L344 350.3C344 363.6 333.3 374.3 320 374.3C306.7 374.3 296 363.6 296 350.3L296 342.2C296 321.7 310.8 307 326.1 302C332.5 299.9 339.3 296.5 344.3 291.7C348.6 287.5 352 281.7 352 272.1C352 254.4 337.7 240.1 320 240.1C302.3 240.1 288 254.4 288 272.1C288 285.4 277.3 296.1 264 296.1C250.7 296.1 240 285.4 240 272.1zM352 432C352 449.7 337.7 464 320 464C302.3 464 288 449.7 288 432C288 414.3 302.3 400 320 400C337.7 400 352 414.3 352 432z"/><path d="M528 320C528 205.1 434.9 112 320 112C205.1 112 112 205.1 112 320C112 434.9 205.1 528 320 528C434.9 528 528 434.9 528 320zM64 320C64 178.6 178.6 64 320 64C461.4 64 576 178.6 576 320C576 461.4 461.4 576 320 576C178.6 576 64 461.4 64 320zM320 240C302.3 240 288 254.3 288 272C288 285.3 277.3 296 264 296C250.7 296 240 285.3 240 272C240 227.8 275.8 192 320 192C364.2 192 400 227.8 400 272C400 319.2 364 339.2 344 346.5L344 350.3C344 363.6 333.3 374.3 320 374.3C306.7 374.3 296 363.6 296 350.3L296 342.2C296 321.7 310.8 307 326.1 302C332.5 299.9 339.3 296.5 344.3 291.7C348.6 287.5 352 281.7 352 272.1C352 254.4 337.7 240.1 320 240.1zM288 432C288 414.3 302.3 400 320 400C337.7 400 352 414.3 352 432C352 449.7 337.7 464 320 464C302.3 464 288 449.7 288 432z"/></svg>
|
||||
{:else if name === 'check-circle'}
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Pro v7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--><path opacity=".4" d="M112 320C112 434.9 205.1 528 320 528C434.9 528 528 434.9 528 320C528 205.1 434.9 112 320 112C205.1 112 112 205.1 112 320zM236.8 342.4C228.8 331.8 231 316.8 241.6 308.8C252.2 300.8 267.2 303 275.2 313.6L302.2 349.6L363.6 251.3C370.6 240.1 385.4 236.6 396.7 243.7C408 250.8 411.4 265.5 404.3 276.8L324.3 404.8C320.1 411.5 312.9 415.7 305 416.1C297.1 416.5 289.5 412.9 284.8 406.5L236.8 342.5z"/><path d="M320 112C434.9 112 528 205.1 528 320C528 434.9 434.9 528 320 528C205.1 528 112 434.9 112 320C112 205.1 205.1 112 320 112zM320 576C461.4 576 576 461.4 576 320C576 178.6 461.4 64 320 64C178.6 64 64 178.6 64 320C64 461.4 178.6 576 320 576zM404.4 276.7C411.4 265.5 408 250.7 396.8 243.6C385.6 236.5 370.8 240 363.7 251.2L302.3 349.5L275.3 313.5C267.3 302.9 252.3 300.7 241.7 308.7C231.1 316.7 228.9 331.7 236.9 342.3L284.9 406.3C289.6 412.6 297.2 416.2 305.1 415.9C313 415.6 320.2 411.4 324.4 404.6L404.4 276.6z"/></svg>
|
||||
{:else if name === 'alert-triangle'}
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Pro v7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--><path opacity=".4" d="M117.4 496L320 120.8L522.6 496L117.4 496zM293.3 448C292.7 457.9 297.6 467.3 306.1 472.5C314.6 477.6 325.3 477.6 333.8 472.5C342.3 467.3 347.2 457.9 346.6 448C347.2 438.1 342.3 428.7 333.8 423.5C325.3 418.4 314.6 418.4 306.1 423.5C297.6 428.7 292.7 438.1 293.3 448zM296 256L296 368C296 381.3 306.7 392 320 392C333.3 392 344 381.3 344 368L344 256C344 242.7 333.3 232 320 232C306.7 232 296 242.7 296 256z"/><path d="M117.4 496L320 120.8L522.6 496L117.4 496zM355.2 85C348.2 72.1 334.7 64 320 64C305.3 64 291.8 72.1 284.8 85L68.8 485C62.1 497.4 62.4 512.4 69.6 524.5C76.8 536.6 89.9 544 104 544L536 544C550.1 544 563.1 536.6 570.4 524.5C577.7 512.4 577.9 497.4 571.2 485L355.2 85zM320 232C306.7 232 296 242.7 296 256L296 368C296 381.3 306.7 392 320 392C333.3 392 344 381.3 344 368L344 256C344 242.7 333.3 232 320 232zM346.7 448C347.3 438.1 342.4 428.7 333.9 423.5C325.4 418.4 314.7 418.4 306.2 423.5C297.7 428.7 292.8 438.1 293.4 448C292.8 457.9 297.7 467.3 306.2 472.5C314.7 477.6 325.4 477.6 333.9 472.5C342.4 467.3 347.3 457.9 346.7 448z"/></svg>
|
||||
{:else if name === 'arrow-down'}
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Pro v7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--><path opacity=".4" d="M112 320C112 434.9 205.1 528 320 528C434.9 528 528 434.9 528 320C528 205.1 434.9 112 320 112C205.1 112 112 205.1 112 320zM231 311C240.4 301.6 255.6 301.6 264.9 311L295.9 342L295.9 239.9C295.9 226.6 306.6 215.9 319.9 215.9C333.2 215.9 343.9 226.6 343.9 239.9L343.9 342L374.9 311C384.3 301.6 399.5 301.6 408.8 311C418.1 320.4 418.2 335.6 408.8 344.9L336.8 416.9C327.4 426.3 312.2 426.3 302.9 416.9L230.9 344.9C221.5 335.5 221.5 320.3 230.9 311z"/><path d="M320 112C434.9 112 528 205.1 528 320C528 434.9 434.9 528 320 528C205.1 528 112 434.9 112 320C112 205.1 205.1 112 320 112zM320 576C461.4 576 576 461.4 576 320C576 178.6 461.4 64 320 64C178.6 64 64 178.6 64 320C64 461.4 178.6 576 320 576zM303 417C312.4 426.4 327.6 426.4 336.9 417L408.9 345C418.3 335.6 418.3 320.4 408.9 311.1C399.5 301.8 384.3 301.7 375 311.1L344 342.1L344 240C344 226.7 333.3 216 320 216C306.7 216 296 226.7 296 240L296 342.1L265 311.1C255.6 301.7 240.4 301.7 231.1 311.1C221.8 320.5 221.7 335.7 231.1 345L303.1 417z"/></svg>
|
||||
{:else if name === 'grid'}
|
||||
<svg fill="currentColor" viewBox="0 0 24 24">
|
||||
<path d="M3 3h8v8H3V3zm10 0h8v8h-8V3zM3 13h8v8H3v-8zm10 0h8v8h-8v-8z"/>
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -16,7 +16,7 @@ export const STANDALONE_PAGES: NavItem[] = [];
|
||||
export const TOP_NAV: NavItem[] = [
|
||||
{ href: '/subnetting', label: 'Subnetting' },
|
||||
{ href: '/cidr-convertor', label: 'CIDR Convert' },
|
||||
{ href: '/ip-address-convertor', label: 'IP Convert' },
|
||||
{ href: '/ip-address-convertor', label: 'IP Tools' },
|
||||
{ href: '/ip-reference', label: 'Reference' }
|
||||
];
|
||||
|
||||
@@ -34,6 +34,12 @@ export const SUB_NAV: Record<string, NavItem[] | NavGroup[]> = {
|
||||
label: 'VLSM Calculator',
|
||||
description: 'Variable Length Subnet Mask calculator to break networks into multiple smaller subnets with optimal allocation',
|
||||
icon: 'vlsm-calculator'
|
||||
},
|
||||
{
|
||||
href: '/subnetting/supernet-calculator',
|
||||
label: 'Supernet Calculator',
|
||||
description: 'Aggregate multiple networks into supernets for route summarization and efficient routing table management',
|
||||
icon: 'supernet-calculator'
|
||||
}
|
||||
],
|
||||
'/cidr-convertor': [
|
||||
|
||||
@@ -0,0 +1,363 @@
|
||||
/* Supernet (Route Aggregation) Calculation Utilities */
|
||||
|
||||
export interface NetworkInput {
|
||||
id: string;
|
||||
network: string;
|
||||
cidr: number;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
export interface SupernetResult {
|
||||
success: boolean;
|
||||
supernet?: {
|
||||
network: string;
|
||||
cidr: number;
|
||||
subnetMask: string;
|
||||
wildcardMask: string;
|
||||
binaryMask: string;
|
||||
totalHosts: number;
|
||||
addressRange: {
|
||||
first: string;
|
||||
last: string;
|
||||
};
|
||||
};
|
||||
inputNetworks: NetworkInput[];
|
||||
aggregatedNetworks?: string[];
|
||||
savingsAnalysis?: {
|
||||
originalRoutes: number;
|
||||
aggregatedRoutes: number;
|
||||
routeReduction: number;
|
||||
reductionPercentage: number;
|
||||
};
|
||||
error?: string;
|
||||
}
|
||||
|
||||
export interface ValidationResult {
|
||||
valid: boolean;
|
||||
error?: string;
|
||||
}
|
||||
|
||||
/* Convert IP address to 32-bit integer */
|
||||
function ipToInt(ip: string): number {
|
||||
const parts = ip.split('.').map(Number);
|
||||
return (parts[0] << 24) | (parts[1] << 16) | (parts[2] << 8) | parts[3];
|
||||
}
|
||||
|
||||
/* Convert 32-bit integer to IP address */
|
||||
function intToIp(int: number): string {
|
||||
return [
|
||||
(int >>> 24) & 0xFF,
|
||||
(int >>> 16) & 0xFF,
|
||||
(int >>> 8) & 0xFF,
|
||||
int & 0xFF
|
||||
].join('.');
|
||||
}
|
||||
|
||||
/* Calculate subnet mask from CIDR */
|
||||
function cidrToSubnetMask(cidr: number): string {
|
||||
const mask = 0xFFFFFFFF << (32 - cidr);
|
||||
return intToIp(mask >>> 0);
|
||||
}
|
||||
|
||||
/* Calculate wildcard mask from CIDR */
|
||||
function cidrToWildcardMask(cidr: number): string {
|
||||
const wildcardInt = (1 << (32 - cidr)) - 1;
|
||||
return intToIp(wildcardInt);
|
||||
}
|
||||
|
||||
/* Convert subnet mask to binary representation */
|
||||
function subnetMaskToBinary(mask: string): string {
|
||||
return mask.split('.').map(octet => {
|
||||
return parseInt(octet).toString(2).padStart(8, '0');
|
||||
}).join('.');
|
||||
}
|
||||
|
||||
/* Calculate the number of hosts in a network */
|
||||
function calculateHosts(cidr: number): number {
|
||||
return Math.pow(2, 32 - cidr) - 2; // Subtract network and broadcast
|
||||
}
|
||||
|
||||
/* Validate IP address format */
|
||||
function isValidIP(ip: string): boolean {
|
||||
const parts = ip.split('.');
|
||||
if (parts.length !== 4) return false;
|
||||
|
||||
return parts.every(part => {
|
||||
const num = parseInt(part);
|
||||
return !isNaN(num) && num >= 0 && num <= 255;
|
||||
});
|
||||
}
|
||||
|
||||
/* Validate CIDR notation */
|
||||
function isValidCIDR(cidr: number): boolean {
|
||||
return cidr >= 1 && cidr <= 30;
|
||||
}
|
||||
|
||||
/* Calculate network address from IP and CIDR */
|
||||
function getNetworkAddress(ip: string, cidr: number): string {
|
||||
const ipInt = ipToInt(ip);
|
||||
const mask = 0xFFFFFFFF << (32 - cidr);
|
||||
const networkInt = ipInt & (mask >>> 0);
|
||||
return intToIp(networkInt);
|
||||
}
|
||||
|
||||
/* Check if networks are contiguous and can be aggregated */
|
||||
function areNetworksContiguous(networks: NetworkInput[]): boolean {
|
||||
if (networks.length < 2) return true;
|
||||
|
||||
// Sort networks by their network address
|
||||
const sortedNetworks = [...networks].sort((a, b) => {
|
||||
const networkA = getNetworkAddress(a.network, a.cidr);
|
||||
const networkB = getNetworkAddress(b.network, b.cidr);
|
||||
return ipToInt(networkA) - ipToInt(networkB);
|
||||
});
|
||||
|
||||
// Check if networks are adjacent and same size
|
||||
for (let i = 0; i < sortedNetworks.length - 1; i++) {
|
||||
const currentNet = sortedNetworks[i];
|
||||
const nextNet = sortedNetworks[i + 1];
|
||||
|
||||
// Networks must have same CIDR for simple aggregation
|
||||
if (currentNet.cidr !== nextNet.cidr) continue;
|
||||
|
||||
const currentNetworkInt = ipToInt(getNetworkAddress(currentNet.network, currentNet.cidr));
|
||||
const nextNetworkInt = ipToInt(getNetworkAddress(nextNet.network, nextNet.cidr));
|
||||
const networkSize = Math.pow(2, 32 - currentNet.cidr);
|
||||
|
||||
// Check if networks are adjacent
|
||||
if (nextNetworkInt !== currentNetworkInt + networkSize) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/* Find the supernet that encompasses all input networks */
|
||||
function findSupernet(networks: NetworkInput[]): { network: string; cidr: number } | null {
|
||||
if (networks.length === 0) return null;
|
||||
|
||||
// Get all network addresses
|
||||
const networkAddresses = networks.map(net => {
|
||||
const networkAddr = getNetworkAddress(net.network, net.cidr);
|
||||
return ipToInt(networkAddr);
|
||||
});
|
||||
|
||||
const minAddress = Math.min(...networkAddresses);
|
||||
const maxAddress = Math.max(...networkAddresses.map((addr, idx) => {
|
||||
const cidr = networks[idx].cidr;
|
||||
const networkSize = Math.pow(2, 32 - cidr);
|
||||
return addr + networkSize - 1;
|
||||
}));
|
||||
|
||||
// Find the smallest CIDR that can contain all networks
|
||||
let supernetCidr = 32;
|
||||
for (let cidr = 1; cidr <= 30; cidr++) {
|
||||
const mask = 0xFFFFFFFF << (32 - cidr);
|
||||
const supernetStart = minAddress & (mask >>> 0);
|
||||
const supernetEnd = supernetStart + Math.pow(2, 32 - cidr) - 1;
|
||||
|
||||
if (supernetStart <= minAddress && supernetEnd >= maxAddress) {
|
||||
supernetCidr = cidr;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (supernetCidr === 32) return null;
|
||||
|
||||
const supernetNetwork = intToIp(minAddress & (0xFFFFFFFF << (32 - supernetCidr)) >>> 0);
|
||||
return { network: supernetNetwork, cidr: supernetCidr };
|
||||
}
|
||||
|
||||
/* Validate network input */
|
||||
export function validateNetworkInput(input: NetworkInput): ValidationResult {
|
||||
if (!input.network.trim()) {
|
||||
return { valid: false, error: 'Network address is required' };
|
||||
}
|
||||
|
||||
if (!isValidIP(input.network)) {
|
||||
return { valid: false, error: 'Invalid IP address format' };
|
||||
}
|
||||
|
||||
if (!isValidCIDR(input.cidr)) {
|
||||
return { valid: false, error: 'CIDR must be between /1 and /30' };
|
||||
}
|
||||
|
||||
// Verify the IP is actually a network address
|
||||
const networkAddr = getNetworkAddress(input.network, input.cidr);
|
||||
if (networkAddr !== input.network) {
|
||||
return {
|
||||
valid: false,
|
||||
error: `IP address should be ${networkAddr}/${input.cidr} (network address)`
|
||||
};
|
||||
}
|
||||
|
||||
return { valid: true };
|
||||
}
|
||||
|
||||
/* Calculate supernet from multiple networks */
|
||||
export function calculateSupernet(networks: NetworkInput[]): SupernetResult {
|
||||
try {
|
||||
// Input validation
|
||||
if (networks.length === 0) {
|
||||
return {
|
||||
success: false,
|
||||
inputNetworks: networks,
|
||||
error: 'At least one network is required'
|
||||
};
|
||||
}
|
||||
|
||||
// Validate all networks
|
||||
for (const network of networks) {
|
||||
const validation = validateNetworkInput(network);
|
||||
if (!validation.valid) {
|
||||
return {
|
||||
success: false,
|
||||
inputNetworks: networks,
|
||||
error: `${network.network}/${network.cidr}: ${validation.error}`
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
// Check for duplicate networks
|
||||
const networkStrings = networks.map(n => `${n.network}/${n.cidr}`);
|
||||
const uniqueNetworks = new Set(networkStrings);
|
||||
if (networkStrings.length !== uniqueNetworks.size) {
|
||||
return {
|
||||
success: false,
|
||||
inputNetworks: networks,
|
||||
error: 'Duplicate networks are not allowed'
|
||||
};
|
||||
}
|
||||
|
||||
// Find the supernet
|
||||
const supernet = findSupernet(networks);
|
||||
if (!supernet) {
|
||||
return {
|
||||
success: false,
|
||||
inputNetworks: networks,
|
||||
error: 'Unable to calculate supernet for the given networks'
|
||||
};
|
||||
}
|
||||
|
||||
// Calculate supernet details
|
||||
const subnetMask = cidrToSubnetMask(supernet.cidr);
|
||||
const wildcardMask = cidrToWildcardMask(supernet.cidr);
|
||||
const binaryMask = subnetMaskToBinary(subnetMask);
|
||||
const totalHosts = calculateHosts(supernet.cidr);
|
||||
|
||||
const supernetInt = ipToInt(supernet.network);
|
||||
const supernetSize = Math.pow(2, 32 - supernet.cidr);
|
||||
const firstAddress = intToIp(supernetInt + 1);
|
||||
const lastAddress = intToIp(supernetInt + supernetSize - 2);
|
||||
|
||||
// Create aggregated network list
|
||||
const aggregatedNetworks = [`${supernet.network}/${supernet.cidr}`];
|
||||
|
||||
// Calculate savings analysis
|
||||
const originalRoutes = networks.length;
|
||||
const aggregatedRoutes = aggregatedNetworks.length;
|
||||
const routeReduction = originalRoutes - aggregatedRoutes;
|
||||
const reductionPercentage = ((routeReduction / originalRoutes) * 100);
|
||||
|
||||
return {
|
||||
success: true,
|
||||
supernet: {
|
||||
network: supernet.network,
|
||||
cidr: supernet.cidr,
|
||||
subnetMask,
|
||||
wildcardMask,
|
||||
binaryMask,
|
||||
totalHosts,
|
||||
addressRange: {
|
||||
first: firstAddress,
|
||||
last: lastAddress
|
||||
}
|
||||
},
|
||||
inputNetworks: networks,
|
||||
aggregatedNetworks,
|
||||
savingsAnalysis: {
|
||||
originalRoutes,
|
||||
aggregatedRoutes,
|
||||
routeReduction,
|
||||
reductionPercentage
|
||||
}
|
||||
};
|
||||
|
||||
} catch (error) {
|
||||
return {
|
||||
success: false,
|
||||
inputNetworks: networks,
|
||||
error: error instanceof Error ? error.message : 'Unknown error occurred'
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
/* Generate unique ID for network inputs */
|
||||
export function generateNetworkId(): string {
|
||||
return 'network_' + Math.random().toString(36).substr(2, 9);
|
||||
}
|
||||
|
||||
/* Check if networks can be optimally aggregated */
|
||||
export function analyzeAggregation(networks: NetworkInput[]): {
|
||||
canAggregate: boolean;
|
||||
efficiency: number;
|
||||
recommendations: string[];
|
||||
} {
|
||||
const recommendations: string[] = [];
|
||||
|
||||
if (networks.length < 2) {
|
||||
return {
|
||||
canAggregate: false,
|
||||
efficiency: 0,
|
||||
recommendations: ['Add more networks to perform aggregation']
|
||||
};
|
||||
}
|
||||
|
||||
// Check for same-sized contiguous networks
|
||||
const byCidr = networks.reduce((acc, net) => {
|
||||
if (!acc[net.cidr]) acc[net.cidr] = [];
|
||||
acc[net.cidr].push(net);
|
||||
return acc;
|
||||
}, {} as Record<number, NetworkInput[]>);
|
||||
|
||||
let canAggregate = false;
|
||||
let totalEfficiency = 0;
|
||||
|
||||
Object.entries(byCidr).forEach(([cidr, nets]) => {
|
||||
if (nets.length >= 2) {
|
||||
const sorted = nets.sort((a, b) =>
|
||||
ipToInt(getNetworkAddress(a.network, a.cidr)) -
|
||||
ipToInt(getNetworkAddress(b.network, b.cidr))
|
||||
);
|
||||
|
||||
let contiguousGroups = 0;
|
||||
for (let i = 0; i < sorted.length - 1; i++) {
|
||||
const current = ipToInt(getNetworkAddress(sorted[i].network, sorted[i].cidr));
|
||||
const next = ipToInt(getNetworkAddress(sorted[i + 1].network, sorted[i + 1].cidr));
|
||||
const networkSize = Math.pow(2, 32 - parseInt(cidr));
|
||||
|
||||
if (next === current + networkSize) {
|
||||
contiguousGroups++;
|
||||
canAggregate = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (contiguousGroups > 0) {
|
||||
totalEfficiency += (contiguousGroups / nets.length) * 100;
|
||||
recommendations.push(`${contiguousGroups} pairs of /${cidr} networks can be aggregated`);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
if (!canAggregate) {
|
||||
recommendations.push('Networks are not contiguous - consider reordering IP allocations');
|
||||
recommendations.push('Different sized networks may still benefit from supernetting');
|
||||
}
|
||||
|
||||
return {
|
||||
canAggregate,
|
||||
efficiency: Math.min(totalEfficiency / Object.keys(byCidr).length, 100),
|
||||
recommendations
|
||||
};
|
||||
}
|
||||
@@ -8,11 +8,11 @@
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
<title>Subnetting Tools - Subnet & VLSM Calculators | {site.name}</title>
|
||||
<meta name="description" content="Comprehensive subnetting tools including subnet calculator and VLSM calculator for network planning and IP address allocation." />
|
||||
<meta name="keywords" content="{site.keywords}, subnetting, subnet calculator, VLSM, variable length subnet mask, network planning" />
|
||||
<meta property="og:title" content="Subnetting Tools - Subnet & VLSM Calculators" />
|
||||
<meta property="og:description" content="Comprehensive subnetting tools including subnet calculator and VLSM calculator for network planning and IP address allocation." />
|
||||
<title>Subnetting Tools - Subnet, VLSM & Supernet Calculators | {site.name}</title>
|
||||
<meta name="description" content="Comprehensive subnetting and supernetting tools including subnet calculator, VLSM calculator, and supernet calculator for network planning, IP allocation, and route aggregation." />
|
||||
<meta name="keywords" content="{site.keywords}, subnetting, subnet calculator, VLSM, supernet, supernetting, route aggregation, network planning" />
|
||||
<meta property="og:title" content="Subnetting Tools - Subnet, VLSM & Supernet Calculators" />
|
||||
<meta property="og:description" content="Comprehensive subnetting and supernetting tools including subnet calculator, VLSM calculator, and supernet calculator for network planning, IP allocation, and route aggregation." />
|
||||
<meta property="og:url" content="{site.url}/subnetting" />
|
||||
</svelte:head>
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
<h1>Subnetting Tools</h1>
|
||||
<p class="page-description">
|
||||
Comprehensive tools for subnet planning, network design, and IP address allocation.
|
||||
Calculate traditional subnets or use VLSM for optimal address space utilization.
|
||||
Calculate traditional subnets, use VLSM for optimal address space utilization, or aggregate networks with supernetting.
|
||||
</p>
|
||||
</header>
|
||||
|
||||
|
||||
@@ -0,0 +1,197 @@
|
||||
<script lang="ts">
|
||||
import SupernetCalculator from '$lib/components/SupernetCalculator.svelte';
|
||||
import { site } from '$lib/constants/site';
|
||||
import '$lib/../styles/pages.scss';
|
||||
import Icon from '$lib/components/Icon.svelte';
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
<title>Supernet Calculator - Route Aggregation & Summarization Tool | {site.name}</title>
|
||||
<meta name="description" content="Calculate supernets and aggregate multiple networks into summary routes. Optimize routing tables with CIDR route summarization and supernetting." />
|
||||
<meta name="keywords" content="{site.keywords}, supernet, route aggregation, route summarization, CIDR supernetting, routing table optimization" />
|
||||
<meta property="og:title" content="Supernet Calculator - Route Aggregation & Summarization Tool" />
|
||||
<meta property="og:description" content="Calculate supernets and aggregate multiple networks into summary routes. Optimize routing tables with CIDR route summarization and supernetting." />
|
||||
<meta property="og:url" content="{site.url}/subnetting/supernet-calculator" />
|
||||
</svelte:head>
|
||||
|
||||
<div class="page-container">
|
||||
|
||||
<SupernetCalculator />
|
||||
|
||||
<section class="explainer-section">
|
||||
<h3>About Supernetting</h3>
|
||||
<p>
|
||||
<strong>Supernetting</strong> (also called route aggregation or CIDR block aggregation) is the process of
|
||||
combining multiple smaller networks into a single larger network. This technique is essential for:
|
||||
</p>
|
||||
|
||||
<div class="benefits-grid">
|
||||
<div class="benefit-item">
|
||||
<h4>Reduced Routing Tables</h4>
|
||||
<p>Fewer routes mean faster lookups and reduced memory usage in routers</p>
|
||||
</div>
|
||||
<div class="benefit-item">
|
||||
<h4>Improved Scalability</h4>
|
||||
<p>Internet routing scales better with aggregated routes instead of individual subnets</p>
|
||||
</div>
|
||||
<div class="benefit-item">
|
||||
<h4>Better Performance</h4>
|
||||
<p>Reduced route advertisements and faster convergence in routing protocols</p>
|
||||
</div>
|
||||
<div class="benefit-item">
|
||||
<h4>Easier Management</h4>
|
||||
<p>Simplified network policies and access control lists</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="use-cases-section">
|
||||
<h4>When to Use Supernetting</h4>
|
||||
<div class="use-cases-grid">
|
||||
<div class="use-case-item">
|
||||
<h5>ISP Route Aggregation</h5>
|
||||
<p>Combining customer routes for BGP advertisements</p>
|
||||
</div>
|
||||
<div class="use-case-item">
|
||||
<h5>Enterprise Networks</h5>
|
||||
<p>Summarizing branch office networks at headquarters</p>
|
||||
</div>
|
||||
<div class="use-case-item">
|
||||
<h5>Data Centers</h5>
|
||||
<p>Aggregating server farm subnets for external advertisement</p>
|
||||
</div>
|
||||
<div class="use-case-item">
|
||||
<h5>Network Redesign</h5>
|
||||
<p>Optimizing existing IP allocations for better summarization</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="info-box">
|
||||
<h4>
|
||||
<Icon name="lightbulb" size="sm" />
|
||||
Pro Tip
|
||||
</h4>
|
||||
<p>
|
||||
For optimal supernetting, design your IP allocation strategy from the beginning.
|
||||
Contiguous, power-of-2 sized networks aggregate much more efficiently than scattered allocations.
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.explainer-section {
|
||||
margin-top: var(--spacing-xl);
|
||||
padding: var(--spacing-lg);
|
||||
background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
|
||||
border-radius: var(--radius-lg);
|
||||
border: 1px solid var(--border-secondary);
|
||||
|
||||
h3 {
|
||||
color: var(--text-primary);
|
||||
margin-bottom: var(--spacing-md);
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
padding: var(--spacing-md);
|
||||
}
|
||||
}
|
||||
|
||||
.benefits-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
||||
gap: var(--spacing-md);
|
||||
margin: var(--spacing-lg) 0;
|
||||
}
|
||||
|
||||
.benefit-item {
|
||||
padding: var(--spacing-md);
|
||||
background-color: var(--bg-secondary);
|
||||
border-radius: var(--radius-md);
|
||||
border: 1px solid var(--border-primary);
|
||||
|
||||
h4 {
|
||||
color: var(--color-primary);
|
||||
margin-bottom: var(--spacing-sm);
|
||||
font-size: var(--font-size-md);
|
||||
}
|
||||
|
||||
p {
|
||||
color: var(--text-secondary);
|
||||
font-size: var(--font-size-sm);
|
||||
line-height: 1.5;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.use-cases-section {
|
||||
margin: var(--spacing-lg) 0;
|
||||
|
||||
h4 {
|
||||
color: var(--text-primary);
|
||||
margin-bottom: var(--spacing-md);
|
||||
font-size: var(--font-size-lg);
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
|
||||
.use-cases-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
||||
gap: var(--spacing-md);
|
||||
}
|
||||
|
||||
.use-case-item {
|
||||
padding: var(--spacing-md);
|
||||
background-color: var(--bg-secondary);
|
||||
border-radius: var(--radius-md);
|
||||
border: 1px solid var(--border-primary);
|
||||
|
||||
h5 {
|
||||
color: var(--color-primary);
|
||||
margin-bottom: var(--spacing-sm);
|
||||
font-size: var(--font-size-md);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
p {
|
||||
color: var(--text-secondary);
|
||||
font-size: var(--font-size-sm);
|
||||
line-height: 1.5;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.info-box {
|
||||
margin-top: var(--spacing-lg);
|
||||
padding: var(--spacing-md);
|
||||
background: linear-gradient(135deg, rgba(9, 105, 218, 0.1), rgba(31, 111, 235, 0.05));
|
||||
border: 1px solid var(--color-info);
|
||||
border-radius: var(--radius-md);
|
||||
|
||||
h4 {
|
||||
color: var(--color-info);
|
||||
margin-bottom: var(--spacing-sm);
|
||||
font-size: var(--font-size-md);
|
||||
font-weight: 600;
|
||||
:global(.icon) {
|
||||
width: 1.6em;
|
||||
height: 1.8em;
|
||||
}
|
||||
}
|
||||
|
||||
p {
|
||||
color: var(--text-primary);
|
||||
font-size: var(--font-size-sm);
|
||||
line-height: 1.6;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.benefits-grid,
|
||||
.use-cases-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user