Skip to content

Commit 2c6602e

Browse files
committed
Fix DHCP client setup in two posts
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
1 parent d3e1f01 commit 2c6602e

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

_posts/2024-03-12-firewall-container.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Firewall Container
33
author: troglobit
44
date: 2024-03-12 08:08:41 +0100
5-
last_modified_at: 2025-10-29 22:10:00 +0100
5+
last_modified_at: 2026-02-27 12:00:00 +0100
66
categories: [showcase]
77
tags: [container, containers, networking, firewall, docker, podman]
88
---
@@ -62,7 +62,9 @@ in a LAN configuration.
6262

6363
```console
6464
admin@infix:/> configure
65-
admin@infix:/config/> set dhcp-client client-if eth0
65+
admin@infix:/config/> edit interface eth0
66+
admin@infix:/config/interface/eth0/> set ipv4 dhcp
67+
admin@infix:/config/interface/eth0/> end
6668
admin@infix:/config/> edit interface br0
6769
admin@infix:/config/interface/br0/> set ipv4 address 192.168.0.1 prefix-length 24
6870
admin@infix:/config/interface/br0/> end

_posts/2024-07-25-bridge-networking.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: Basic Bridge Networking
33
author: troglobit
44
date: 2024-07-25 08:23:00 +0100
5+
last_modified_at: 2026-02-27 12:00:00 +0100
56
categories: [examples]
67
tags: [cli, networking, bridge]
78
pin: false
@@ -65,8 +66,9 @@ interfaces {
6566
Now we enable a DHCP client on `br0` and activate the changes.
6667

6768
```console
68-
admin@example:/config/> set dhcp-client client-if br0
69-
admin@example:/config/> leave
69+
admin@example:/config/> edit interface br0
70+
admin@example:/config/interface/br0/> set ipv4 dhcp
71+
admin@example:/config/interface/br0/> leave
7072
admin@example:/>
7173
```
7274

0 commit comments

Comments
 (0)