mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-21 21:19:35 +00:00
Update using_ubuntu_as_sos.rst
This commit is contained in:
parent
06b2ab55e3
commit
1afb0f13c4
@ -355,15 +355,15 @@ script example shows how to set this up (verified in Ubuntu 16.04 and 18.04 as t
|
|||||||
|
|
||||||
# if bridge not existed
|
# if bridge not existed
|
||||||
if [ "$br"x != "acrn-br0"x ]; then
|
if [ "$br"x != "acrn-br0"x ]; then
|
||||||
# setup bridge for uos network
|
# setup bridge for uos network
|
||||||
brctl addbr acrn-br0
|
brctl addbr acrn-br0
|
||||||
brctl addif acrn-br0 enp3s0
|
brctl addif acrn-br0 enp3s0
|
||||||
ifconfig enp3s0 0
|
ifconfig enp3s0 0
|
||||||
dhclient acrn-br0
|
dhclient acrn-br0
|
||||||
# add existing tap devices under the bridge
|
# add existing tap devices under the bridge
|
||||||
for tap in $taps; do
|
for tap in $taps; do
|
||||||
ip tuntap add dev acrn_$tap mode tap
|
ip tuntap add dev acrn_$tap mode tap
|
||||||
brctl addif acrn-br0 $tap
|
brctl addif acrn-br0 $tap
|
||||||
ip link set dev $tap down
|
ip link set dev $tap down
|
||||||
ip link set dev $tap up
|
ip link set dev $tap up
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user