From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 0635377ED7 for ; Mon, 25 Oct 2021 16:01:38 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id D7E2C23E21 for ; Mon, 25 Oct 2021 16:01:37 +0200 (CEST) Received: from mail-qk1-x72c.google.com (mail-qk1-x72c.google.com [IPv6:2607:f8b0:4864:20::72c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id AC7A423E12 for ; Mon, 25 Oct 2021 16:01:36 +0200 (CEST) Received: by mail-qk1-x72c.google.com with SMTP id x123so11812632qke.7 for ; Mon, 25 Oct 2021 07:01:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=BViagsRkQS0E/mjLAk7XBmSwoSK3l5ts78jZ9YTl/18=; b=f0PbLJJg4ANW02MJDAOzy6xXbv3KZBg5OxfV9ZbFDxmJTUy3e7r2b3jsyBRaMEyC8Y jIrGiCZ42YX5TD0IAqzvUKNOC4NsqOMJxe1S8a1ua0zl1ppFGw27e73CreDOqO23H8o4 ecAr+nxXJj+VR4zWm2QkE4PlSga4gbHBF1WzQJbQBgvbc3srBvLzv7ToczcTVqRJFPNU Gr0yeNwqkwRmBOga5S8t2rU2RRMUQohb6a085aySJ5Ef3IWXTsGw8Ct8wHhm2fd2yO+4 9ZWtAwtk8OHxaip9Ih23dRkJf9aecSjEaqfWfR0z1zXzB7QVyWILuar6EWF7z+rIFL4K ujhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=BViagsRkQS0E/mjLAk7XBmSwoSK3l5ts78jZ9YTl/18=; b=kYD9CYrisI0MpfugtQ0xX/0PLhZDynVwzrB44hAWlAq/+9xixYJBq3+GWyDum43P77 FZgUubsGFdszo27ptNQWRKv/+FWac25vv1tk6mj3SZyJV0e6//ww5lRL5V92tT0iC6IX FR3iJvwDBnBCjLsITudr3cbHEevgSWCBGfvSAytJRQDW3PGul8t6MA1vhl8wxxouP3UY ZjEeYwDucnSibV85CkLX58D3mcuO1ovOnXTb+Iyk1P1eaMFnt7niLDJ2aqGKb+yif3xQ S2dRtGuo0yJJfLFFfj9tN0aMlmadNqQP8y/88oNNQyeDPEkjf+5E1MDP0KV7KQDjqXIS czuw== X-Gm-Message-State: AOAM533SzXwT7zNaKKejQRtXmnlpoN/SB4/TdgxZ6gikC007kM2CKPLP XW4tzMJZp+CV2L+lZ+FAJC/XoNHgmGC/Ig== X-Google-Smtp-Source: ABdhPJxmf3/Gsafzf/EPr5ZaZC45OXt8d3tXTD6BDLBLV/oTSqa/yztp2u9kIy2exIgngXHDUZcyCQ== X-Received: by 2002:a37:9e43:: with SMTP id h64mr13684553qke.119.1635170488311; Mon, 25 Oct 2021 07:01:28 -0700 (PDT) Received: from ?IPv6:2603:6080:e30a:ca:c618:7c28:e79e:fd00? (2603-6080-e30a-00ca-c618-7c28-e79e-fd00.res6.spectrum.com. [2603:6080:e30a:ca:c618:7c28:e79e:fd00]) by smtp.gmail.com with ESMTPSA id f10sm467734qkp.135.2021.10.25.07.01.27 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Oct 2021 07:01:27 -0700 (PDT) To: Proxmox VE user list From: Wendell Hatcher Message-ID: <61b71659-eb46-25e5-cc40-435f530e13c9@gmail.com> Date: Mon, 25 Oct 2021 10:01:26 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-SPAM-LEVEL: Spam detection results: 0 BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain FREEMAIL_ENVFROM_END_DIGIT 0.25 Envelope-from freemail username ends in digit FREEMAIL_FROM 0.001 Sender email is commonly abused enduser mail provider RCVD_IN_DNSWL_NONE -0.0001 Sender listed at https://www.dnswl.org/, no trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [PVE-User] Additional ip added to my interfaces file persist on network with a new dev X-BeenThere: pve-user@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE user list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Oct 2021 14:01:38 -0000 Hello, I am trying to add my second ip to my network and have updated my network interfaces file but additional ip per the > > documentation isn't being seen on dev eno1:1 > > > > https://docs.hetzner.com/robot/dedicated-server/ip/additional-ip-adresses/ ip address add 5.9.122.67 dev eno1:1 ip route add 5.9.122.67 dev eno1:1 # route -n > > Kernel IP routing table > > Destination Gateway Genmask Flags Metric Ref Use Iface > > 0.0.0.0 5.9.122.97 0.0.0.0 UG 0 0 0 eno1 > > 5.9.122.67 0.0.0.0 255.255.255.255 UH 0 0 0 eno1 > > 5.9.122.96 5.9.122.97 255.255.255.224 UG 0 0 0 eno1 > > 5.9.122.96 0.0.0.0 255.255.255.224 U 0 0 0 eno1 > > 10.10.10.0 0.0.0.0 255.255.255.0 U 0 0 0 vmbr0 > > 172.10.10.0 0.0.0.0 255.255.255.0 U 0 0 0 vmbr1 I can see the route added and then I can ping it internally but when i do a network restart or reboot the server on the service the ip disappears and is nolong able to ping. I have the ip in my static interface file but it wont persist. What am I doing wrong? interface file: source /etc/network/interfaces.d/* auto lo iface lo inet loopback iface lo inet6 loopback auto eno1 iface eno1 inet static address 5.9.122.105/27 gateway 5.9.122.97 up route add -net 5.9.122.96 netmask 255.255.255.224 gw 5.9.122.97 dev eno1 post-up echo 1 > /proc/sys/net/ipv4/ip_forward post-up echo 1 > /proc/sys/net/ipv4/conf/eno1/proxy_arp iface eno1 inet6 static address 2a01:4f8:162:726c::2/64 gateway fe80::1 auto eno1:1 iface eno1:1 inet static allow-hotplug eno1:1 address 5.9.122.67/32 gateway 5.9.122.65 up route add -net 5.9.122.64 netmask 255.255.255.224 gw 5.9.122.65 dev eno1:1 auto vmbr0 iface vmbr0 inet static address 10.10.10.1/24 bridge-ports none bridge-stp off bridge-fd 0 bridge-vlan-aware yes bridge-vids 2-4094 hwaddress 00:50:56:00:88:1E # MAC address of the NIC, required since Proxmox 7.0 post-up echo 1 > /proc/sys/net/ipv4/ip_forward post-up iptables -t nat -A POSTROUTING -s '10.10.10.0/24' -o eno1 -j MASQUERADE post-down iptables -t nat -D POSTROUTING -s '10.10.10.0/24' -o eno1 -j MASQUERADE post-up iptables -t nat -A PREROUTING -i eno1 -p tcp --dport 8080 -j DNAT --to 10.10.10.4:8080 post-down iptables -t nat -D PREROUTING -i eno1 -p tcp --dport 8080 -j DNAT --to 10.10.10.4:8080 post-up iptables -t nat -A PREROUTING -i eno1 -p tcp --dport 8080 -j DNAT --to 10.10.10.5:8080 post-down iptables -t nat -D PREROUTING -i eno1 -p tcp --dport 8080 -j DNAT --to 10.10.10.5:8080 post-up iptables -t nat -A PREROUTING -i eno1 -p tcp --dport 8443 -j DNAT --to 10.10.10.9:8443 post-down iptables -t nat -D PREROUTING -i eno1 -p tcp --dport 8443 -j DNAT --to 10.10.10.9:8443 auto vmbr1 iface vmbr1 inet static address 172.10.10.1/24 bridge-ports none bridge-stp off bridge-fd 0 bridge-vlan-aware yes bridge-vids 2-4094 post-up echo 1 > /proc/sys/net/ipv4/ip_forward post-up iptables -t nat -A POSTROUTING -s '172.10.10.0/24' -o eno1 -j MASQUERADE post-down iptables -t nat -D POSTROUTING -s '172.10.10.0/24' -o eno1 -j MASQUERADE post-up iptables -t raw -I PREROUTING -i fwbr+ -j CT --zone 1 post-down iptables -t raw -D PREROUTING -i fwbr+ -j CT --zone 1