qsandbox/network.sh

5 lines
150 B
Bash
Raw Normal View History

2021-11-17 09:14:41 +01:00
ip address add 10.0.2.15/24 broadcast + dev ens3
ip link set dev ens3 up
ip route add 10.0.2.0/24 dev ens3
ip route add default via 10.0.2.2 dev ens3