update router confi

This commit is contained in:
jopejoe1 2024-05-01 10:54:20 +02:00
parent 0e56405038
commit 827e859277

View file

@ -5,127 +5,104 @@
comment = "defconf"; comment = "defconf";
name = "bridge"; name = "bridge";
} }
{ name = "wifi"; }
]; ];
"/interface list" = [ "/interface list" = [
{ { name = "WAN"; }
comment = "defconf"; { name = "LAN"; }
name = "WAN";
}
{
comment = "defconf";
name = "LAN";
}
];
"/interface wireless security-profiles" = [
{
find.default = "yes";
supplicant-identity = "MikroTik";
}
]; ];
"/ip pool" = [ "/ip pool" = [
{ {
name = "default-dhcp"; name = "wired-pool";
ranges = "192.168.88.10-192.168.88.254"; ranges = "10.10.10.10-10.10.10.254";
}
{
name = "wifi-pool";
ranges = "10.10.11.10-10.10.11.254";
} }
]; ];
"/ip dhcp-server" = [ "/ip dhcp-server" = [
{ {
address-pool = "default-dhcp"; address-pool = "wired-pool";
disabled = "no"; disabled = "no";
interface = "bridge"; interface = "bridge";
name = "defconf"; name = "wired-dhcp";
}
{
address-pool = "wifi-pool";
disabled = "no";
interface = "wifi";
name = "wifi-dhcp";
} }
]; ];
"/interface bridge port" = [ "/interface bridge port" = [
{ {
bridge = "bridge"; bridge = "bridge";
comment = "defconf";
interface = "ether2"; interface = "ether2";
} }
{ {
bridge = "bridge"; bridge = "bridge";
comment = "defconf";
interface = "ether3"; interface = "ether3";
} }
{ {
bridge = "bridge"; bridge = "bridge";
comment = "defconf";
interface = "ether4"; interface = "ether4";
} }
{ {
bridge = "bridge"; bridge = "wifi";
comment = "defconf";
interface = "ether5"; interface = "ether5";
} }
{
bridge = "bridge";
interface = "sfp1";
}
]; ];
"/ip neighbor discovery-settings" = { "/ip neighbor discovery-settings" = {
discover-interface-list = "LAN"; discover-interface-list = "LAN";
}; };
"/interface ethernet switch vlan" = [
{
"independent-learning" = "no";
ports = "ether2,ether3";
switch = "switch1";
"vlan-id" = "20";
}
{
"independent-learning" = "no";
ports = "ether4";
switch = "switch1";
"vlan-id" = "30";
}
{
"independent-learning" = "no";
ports = "ether5";
switch = "switch1";
"vlan-id" = "40";
}
];
"/interface list member" = [ "/interface list member" = [
{ {
comment = "defconf";
interface = "bridge"; interface = "bridge";
list = "LAN"; list = "LAN";
} }
{ {
comment = "defconf";
interface = "ether1"; interface = "ether1";
list = "WAN"; list = "WAN";
} }
]; ];
"/ip address" = [ "/ip address" = [
{ {
address = "192.168.88.1/24"; address = "10.10.10.1/24";
comment = "defconf";
interface = "bridge"; interface = "bridge";
network = "192.168.88.0"; network = "10.10.10.0";
}
{
address = "10.10.11.1/24";
interface = "wifi";
network = "10.10.11.0";
} }
]; ];
"/ip dhcp-client" = [ "/ip dhcp-client" = [
{ {
comment = "defconf";
"dhcp-options" = "hostname,clientid";
disabled = "no"; disabled = "no";
interface = "ether1"; interface = "ether1";
} }
]; ];
"/ip dhcp-server lease" = [
{
address = "192.168.88.253";
"allow-dual-stack-queue" = "no";
"mac-address" = "D8:3A:DD:28:1D:3B";
}
];
"/ip dhcp-server network" = [ "/ip dhcp-server network" = [
{ {
address = "192.168.88.0/24"; address = "10.10.10.0/24";
comment = "defconf"; gateway = "10.10.10.1";
gateway = "192.168.88.1"; netmask = "24";
}
{
address = "10.10.11.0/24";
gateway = "10.10.11.1";
netmask = "24";
} }
]; ];
"/ip dns" = { "/ip dns" = {
"allow-remote-requests" = "yes"; "allow-remote-requests" = "yes";
servers = "192.168.88.253"; servers = "1.1.1.1,1.0.0.1";
}; };
"/ip dns static" = [ "/ip dns static" = [
{ {