Sziasztok
Van egy debian szerver rajta egy ispconfig. Ha az ispconfigban hozzáadok a szerverhez virtual hostokat, akkor valamiért leáll a networking service. Ha kitörlöm a /etc/network/interfaces fájlból a virtuálhostokat, akkor nincs semmi gond. Mi okozhatja a problémát? Mindegyik ip címen egy weboldal üzemelne.
A systemctl status networking.service kimenete:
× networking.service - Raise network interfaces
Loaded: loaded (/lib/systemd/system/networking.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Wed 2023-10-25 11:56:05 CEST; 10min ago
Docs: man:interfaces(5)
Process: 563 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=1/FAILURE)
Process: 660 ExecStopPost=/usr/bin/touch /run/network/restart-hotplug (code=exited, status=0/SUCCESS)
Main PID: 563 (code=exited, status=1/FAILURE)
CPU: 277ms
okt 25 11:56:05 hermes ifup[563]: ifup: failed to bring up eth0:0
okt 25 11:56:05 hermes ifup[629]: RTNETLINK answers: File exists
okt 25 11:56:05 hermes ifup[563]: ifup: failed to bring up eth0:1
okt 25 11:56:05 hermes ifup[638]: RTNETLINK answers: File exists
okt 25 11:56:05 hermes ifup[563]: ifup: failed to bring up eth0:2
okt 25 11:56:05 hermes ifup[647]: RTNETLINK answers: File exists
okt 25 11:56:05 hermes ifup[563]: ifup: failed to bring up eth0:3
okt 25 11:56:05 hermes systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
okt 25 11:56:05 hermes systemd[1]: networking.service: Failed with result 'exit-code'.
okt 25 11:56:05 hermes systemd[1]: Failed to start networking.service - Raise network interfaces.
Az interfaces tartalma:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 172.16.2.1
netmask 255.255.0.0
network 172.16.0.0
broadcast 172.16.255.255
gateway 172.16.255.254
auto eth0:0
iface eth0:0 inet static
address 172.16.2.2
netmask 255.255.0.0
network 172.16.0.0
broadcast 172.16.255.255
gateway 172.16.255.254
auto eth0:1
iface eth0:1 inet static
address 172.16.2.3
netmask 255.255.0.0
network 172.16.0.0
broadcast 172.16.255.255
gateway 172.16.255.254
auto eth0:2
iface eth0:2 inet static
address 172.16.2.4
netmask 255.255.0.0
network 172.16.0.0
broadcast 172.16.255.255
gateway 172.16.255.254
auto eth0:3
iface eth0:3 inet static
address 172.16.2.5
netmask 255.255.0.0
network 172.16.0.0
broadcast 172.16.255.255
gateway 172.16.255.254
- 184 megtekintés
Hozzászólások
gw sor szerintem csak az eth0-hoz kell...
- A hozzászóláshoz be kell jelentkezni
Valóban ez volt a gond.
A baj csak az, ha ispconfig-ban felveszek egy új ip címet, az beírja a gw-t is a configba, és egyből le is áll.
- A hozzászóláshoz be kell jelentkezni
Akkor mehet a hibajelzés a fejlesztők felé - addig meg szépen kézzel veszed fel a plusz címeket a konfigba, és kézzel adod ki az ip parancsot illendően paraméterezve :-)
- A hozzászóláshoz be kell jelentkezni
Ugyan nem ez a probléma, de szerintem a 255.255.0.0 subnet extrém nagy. Minek?
- A hozzászóláshoz be kell jelentkezni
Mert 172.16.x.y a cím, és anno a történelem (meg a classless routing) előtti időkben az /16-volt, és gondolom az íespékonfig is ezt adja defaultnak...
- A hozzászóláshoz be kell jelentkezni