MikrotikRscBuilder
Render a RouterOS .rsc config for hAP-class devices: ether1=WAN (dhcp-client), ether2-5+wifi1+wifi2 bridged as LAN with static 10.0.0.1/24 + dhcp-server, NAT out WAN.
public static class MikrotikRscBuilder
1. Fields
1.1. DhcpPoolRange
public const string DhcpPoolRange
1.2. LanCidr
public const string LanCidr
1.3. LanGateway
public const string LanGateway
1.4. LanNetwork
public const string LanNetwork
1.5. WanVlanId
VLAN tag carried over the WAN port behind an XGS-PON modem. WAN dhcp-client runs on both untagged ether1 AND ether1.vlan{WanVlanId} so the box works plugged into a plain DHCP net OR behind the modem - only one ever gets a lease (same physical wire), so no default-route fight.
public const string WanVlanId
2. Methods
2.1. Build(string, string, string, string)
public static string Build(string ssid, string wifiPassword, string hostname, string adminPassword)
| Name | Type | Description |
|---|---|---|
ssid |
string |
|
wifiPassword |
string |
|
hostname |
string |
|
adminPassword |
string |
Returns: string