Skip to content

Commit 451ce72

Browse files
Duncaenclassabbyamp
authored andcommitted
network: add bridge interfaces section
1 parent 96a9ae1 commit 451ce72

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/config/network/index.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,18 @@ ip addr add 192.168.1.2/24 brd + dev eth0
2323
ip route add default via 192.168.1.1
2424
```
2525

26+
## Bridge Interfaces
27+
28+
To configure bridge interfaces at boot, the `/etc/rc.local` file can be used to
29+
run [ip(8)](https://man.voidlinux.org/ip.8) commands to add the bridge `br0` and
30+
set it as the master for the `eth0` interface as example:
31+
32+
```
33+
ip link add name br0 type bridge
34+
ip link set eth0 master br0
35+
ip link set eth0 up
36+
```
37+
2638
## dhcpcd
2739

2840
To run [dhcpcd(8)](https://man.voidlinux.org/dhcpcd.8) on all interfaces, enable

0 commit comments

Comments
 (0)