Skip to content

Commit

Permalink
feat: Configure WAN to use PPPoE instead of DHCP
Browse files Browse the repository at this point in the history
  • Loading branch information
mircea-pavel-anton committed Dec 27, 2024
1 parent a91e5f0 commit b66ac73
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions terraform/mikrotik/network_wan.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,21 @@ resource "routeros_interface_bridge" "wan" {
## ================================================================================================
## Bridge Ports
## ================================================================================================

resource "routeros_interface_bridge_port" "wan_uplink" {
bridge = routeros_interface_bridge.wan.name
interface = routeros_interface_ethernet.wan.name
comment = routeros_interface_ethernet.wan.comment
pvid = "1"
}


## ================================================================================================
## DHCP Client Config
## PPPoE Client Config
## ================================================================================================
resource "routeros_ip_dhcp_client" "wan" {
interface = routeros_interface_bridge.wan.name
comment = "WAN DHCP Client"
resource "routeros_interface_pppoe_client" "wan" {
disabled = false
interface = routeros_interface_ethernet.wan.name
name = "PPPoE Digi"
user = var.pppoe_client_user
password = var.pppoe_client_pass
}

0 comments on commit b66ac73

Please sign in to comment.