OnlyCSharp Network Manager

The network-interface ledger and live CIDR/subnet arithmetic behind the OnlyCSharp Relay network manager (1.6). Three interfaces — loopback, wired, wireless — each with its MAC, address, subnet, gateway and resolvers. Every network address, broadcast address, netmask and host count below is computed live at build time by pure integer bit math. Authored as .razor; rendered to static HTML.

Interfaces

InterfaceStateMACIPv4CIDRGatewayDNS
loUP00:00:00:00:00:00127.0.0.1127.0.0.0/8--
eth0UP52:54:00:12:34:56192.168.1.50192.168.1.0/24192.168.1.11.1.1.1, 8.8.8.8
wlan0DOWNa4:c3:f0:1b:2c:3d10.0.5.710.0.0.0/810.0.0.110.0.0.1

Subnet / CIDR breakdown

Derived from each interface's CIDR by masking the address against the prefix — the same arithmetic the router's Routing.Prefix codec performs.

CIDRPrefixNetmaskNetworkBroadcastUsable hosts
127.0.0.0/8/8255.0.0.0127.0.0.0127.255.255.25516,777,214
192.168.1.0/24/24255.255.255.0192.168.1.0192.168.1.255254
10.0.0.0/8/8255.0.0.010.0.0.010.255.255.25516,777,214

Membership check

AddressBlockInside?
10.0.5.710.0.0.0/8yes
192.168.1.50192.168.1.0/24yes
10.0.5.7192.168.1.0/24no