mirror of
https://github.com/oneclickvirt/pve.git
synced 2024-11-11 09:54:57 +08:00
Update network.sh
This commit is contained in:
parent
c402648e62
commit
8b8b66bdec
1 changed files with 1 additions and 2 deletions
|
@ -4,10 +4,9 @@
|
|||
# 设置虚拟网桥名称
|
||||
BRIDGE_NAME="vmbr0"
|
||||
|
||||
# 获取本地IPv4地址和子网掩码
|
||||
# 获取本地IPv4地址 子网掩码 网关地址
|
||||
IP_ADDR=$(ip route get 8.8.8.8 | head -1 | awk '{print $7}')
|
||||
SUBNET_MASK="255.255.255.0"
|
||||
# 获取网关地址
|
||||
GATEWAY=$(ip route | awk '/default/ {print $3}')
|
||||
|
||||
# 创建虚拟网桥
|
||||
|
|
Loading…
Reference in a new issue