I have a similar problem in the discussion. https://forum.proxmox.com/threads/6...e-to-find-local-address-within-network.22448/
Once I used to adjust the systemd-network.
Configuration files are stored here /etc/systemd/network/*.network
The structure they are.
Code:
root@pve152:~# pveceph init --network 172.17.35.0/24
root@pve152:~# pveceph createmon
unable to find local address within network '172.17.35.0/24'
Code:
root@pve152:~# ifconfig
eth0 Link encap:Ethernet HWaddr 26:9d:d8:2f:bc:6f
inet addr:192.168.0.152 Bcast:192.168.1.255 Mask:255.255.254.0
inet6 addr: fe80::249d:d8ff:fe2f:bc6f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:94864 errors:0 dropped:8 overruns:0 frame:0
TX packets:55125 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:49357059 (47.0 MiB) TX bytes:15398305 (14.6 MiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:3430 errors:0 dropped:0 overruns:0 frame:0
TX packets:3430 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1116959 (1.0 MiB) TX bytes:1116959 (1.0 MiB)
mesh0 Link encap:Ethernet HWaddr 56:32:c2:f8:e5:bc
inet addr:172.17.35.152 Bcast:172.17.35.255 Mask:255.255.255.0
inet6 addr: fe80::5432:c2ff:fef8:e5bc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:42463 errors:0 dropped:3 overruns:0 frame:0
TX packets:42837 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:9850713 (9.3 MiB) TX bytes:15932418 (15.1 MiB)
Code:
root@pve152:~# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# I removed the comments it is irrelevant
auto lo
iface lo inet loopback
iface eth0 inet manual
auto vmbr0
iface vmbr0 inet static
address 192.168.204.16
netmask 255.255.255.0
gateway 192.168.204.4
bridge_ports eth0
bridge_stp off
bridge_fd 0
Code:
root@pve152:~# ls -la /etc/network/interfaces.d/
total 8
drwxr-xr-x 2 root root 4096 Mar 13 2015 .
drwxr-xr-x 7 root root 4096 Jan 29 16:15 ..
Once I used to adjust the systemd-network.
Configuration files are stored here /etc/systemd/network/*.network
The structure they are.
# Ansible managed: modified on 2016-01-29 17:12:05
[Match]
Name = mesh0
[Network]
Address = 172.17.35.152 / 24
Last edited: