ref: bd31e7c59f1fa7ff92ac8c3c1c2f874ba1fe832b cisco/deploy/network/network_up_pi.sh -rwxr-xr-x 182 bytes View raw
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env bash

# Create bridge interface
ip link add br0 type bridge

ip link set eth0 down
ip addr flush eth0
ip link set eth0 master br0

ip link set dev br0 up
dhclient br0