From 3533c1d590d23ce84f206b4bb026b3907166eccb Mon Sep 17 00:00:00 2001 From: spiritLHLS <103393591+spiritLHLS@users.noreply.github.com> Date: Fri, 24 Feb 2023 09:59:12 +0800 Subject: [PATCH] Update network.sh --- network.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/network.sh b/network.sh index fb94508..e1f04b0 100644 --- a/network.sh +++ b/network.sh @@ -5,7 +5,7 @@ interface=$(lshw -C network | awk '/logical name:/{print $3}' | head -1) ip=$(ip addr show $interface | awk '/inet /{print $2}' | head -1) netmask=$(ifconfig $interface | awk '/netmask/{print $4}' | head -1) gateway=$(ip route | awk '/default/ {print $3}') -cat << EOF | sudo tee /etc/network/interfaces.d/vmbr0 +cat << EOF | sudo tee /etc/network/interfaces.d/vmbr0.conf auto vmbr0 iface vmbr0 inet static address $ip @@ -16,7 +16,7 @@ iface vmbr0 inet static bridge_fd 0 EOF -cat << EOF | sudo tee /etc/network/interfaces.d/vmbr1 +cat << EOF | sudo tee /etc/network/interfaces.d/vmbr1.conf auto vmbr1 iface vmbr1 inet static address 172.16.1.1