mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-06-07 17:07:58 +08:00
IP routing
This commit is contained in:
parent
600aa38aa8
commit
80f7dc5b71
@ -23,6 +23,7 @@ set -Eeuo pipefail
|
||||
configureDHCP() {
|
||||
|
||||
VM_NET_VLAN="${VM_NET_TAP}_vlan"
|
||||
GATEWAY=$(ip r | grep default | awk '{print $3}')
|
||||
NETWORK=$(ip -o route | grep "${VM_NET_DEV}" | grep -v default | awk '{print $1}')
|
||||
IP=$(ip address show dev "${VM_NET_DEV}" | grep inet | awk '/inet / { print $2 }' | cut -f1 -d/)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user