시작하기 전에.

시작하기 전에.

그렇군요 이 글을 보니몇 초 후에 네트워크 연결이 끊어집니다.,
이것은 제가 겪고 있는 문제와 유사해 보이지만 방금 Linux를 설치했는데 무엇을 해야할지 모르겠습니다.

시작하기 전에.

Opensuse 13.1이 있습니다.
이는 가상 머신에서 실행됩니다.
내 가상 머신 네트워크는 NAT로 설정되어 있습니다.

질문

VM을 시작하면 약 10초 동안 인터넷에 액세스할 수 있습니다.
실행 중인 ifconfig프로그램

# ifconfig
enp0s3    Link encap:Ethernet  HWaddr 08:00:27:CA:F6:EC  
      inet6 addr: fe80::a00:27ff:feca:f6ec/64 Scope:Link
      UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
      RX packets:7 errors:0 dropped:0 overruns:0 frame:0
      TX packets:66 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:1000 
      RX bytes:1668 (1.6 Kb)  TX bytes:11704 (11.4 Kb)

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:34 errors:0 dropped:0 overruns:0 frame:0
      TX packets:34 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:0 
      RX bytes:1700 (1.6 Kb)  TX bytes:1700 (1.6 Kb)

약 10초 후에 표시됩니다.

# ifconfig
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:34 errors:0 dropped:0 overruns:0 frame:0
      TX packets:34 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:0 
      RX bytes:1700 (1.6 Kb)  TX bytes:1700 (1.6 Kb)

그래서 확인해 /var/log/messages보니 사망한 상태였습니다.
제가 생각하는 관련성은 다음과 같습니다 /var/log/messages.

2014-07-24T19:07:32.911997+01:00 linux-iqb5 avahi-autoipd(enp0s3)[4043]: Found user 'avahi-autoipd' (UID 499) and group 'avahi-autoipd' (GID 498).
2014-07-24T19:07:32.917851+01:00 linux-iqb5 avahi-autoipd(enp0s3)[4043]: Successfully called chroot().
2014-07-24T19:07:32.919814+01:00 linux-iqb5 avahi-autoipd(enp0s3)[4043]: Successfully dropped root privileges.
2014-07-24T19:07:32.921004+01:00 linux-iqb5 avahi-autoipd(enp0s3)[4043]: Starting with address 169.254.12.33
2014-07-24T19:07:32.925894+01:00 linux-iqb5 avahi-autoipd(enp0s3)[4043]: Routable address already assigned, sleeping.
2014-07-24T19:07:33.007838+01:00 linux-iqb5 network[3444]: Shutting down network interfaces:
2014-07-24T19:07:33.353730+01:00 linux-iqb5 systemd[1]: Stopping ifup managed network interface enp0s3...
2014-07-24T19:07:33.691423+01:00 linux-iqb5 ifdown[4098]: enp0s3    device: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 02)
2014-07-24T19:07:33.703182+01:00 linux-iqb5 ifdown[4098]:     enp0s3    device: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 02)
2014-07-24T19:07:33.778217+01:00 linux-iqb5 avahi-autoipd(enp0s3)[4043]: Got SIGTERM, quitting.
2014-07-24T19:07:34.044757+01:00 linux-iqb5 dhcpcd[4175]: enp0s3: sending signal 15 to pid 1418
2014-07-24T19:07:34.046056+01:00 linux-iqb5 dhcpcd[4175]: enp0s3: exiting
2014-07-24T19:07:35.533803+01:00 linux-iqb5 dhcpcd[1418]: enp0s3: exiting
2014-07-24T19:07:35.536473+01:00 linux-iqb5 dhcpcd[4219]: enp0s3: received SIGTERM, stopping
2014-07-24T19:07:35.538001+01:00 linux-iqb5 dhcpcd[4219]: enp0s3: removing default route via 10.0.2.2 metric 0
2014-07-24T19:07:35.540269+01:00 linux-iqb5 dhcpcd[4219]: enp0s3: removing IP address 10.0.2.15/24
2014-07-24T19:07:35.542169+01:00 linux-iqb5 avahi-daemon[509]: Withdrawing address record for 10.0.2.15 on enp0s3.
2014-07-24T19:07:35.543660+01:00 linux-iqb5 avahi-daemon[509]: Leaving mDNS multicast group on interface enp0s3.IPv4 with address 10.0.2.15.
2014-07-24T19:07:35.545181+01:00 linux-iqb5 avahi-daemon[509]: Interface enp0s3.IPv4 no longer relevant for mDNS.
2014-07-24T19:07:36.399152+01:00 linux-iqb5 dhcpcd[4219]: enp0s3: exiting
2014-07-24T19:07:36.974262+01:00 linux-iqb5 avahi-daemon[509]: Interface enp0s3.IPv6 no longer relevant for mDNS.
2014-07-24T19:07:36.975258+01:00 linux-iqb5 avahi-daemon[509]: Leaving mDNS multicast group on interface enp0s3.IPv6 with address fe80::a00:27ff:feca:f6ec.
2014-07-24T19:07:36.976375+01:00 linux-iqb5 avahi-daemon[509]: Withdrawing address record for fe80::a00:27ff:feca:f6ec on enp0s3.

왜 이런 일이 일어나는지 아는 사람이 있나요?
아니면 해결책을 갖는 것이 더 나을까요?
또한, 더 많은 정보가 필요하신 경우 필요한 내용을 알려주시면 찾아보도록 하겠습니다.

/var/log/messages 네트워크 서비스를 다시 시작하려고 할 때 발생한 문제입니다.
이것이 유용한 정보가 되기를 바랍니다. /etc/init.d/network start 명령줄 출력만 사용하여 redirecting to "systemctl start network.service"다시 시작

2014-07-24T20:36:46.875361+01:00 linux-iqb5 ifup[5635]: Starting DHCP4+DHCP6 client on enp0s3. . . . . . . .
2014-07-24T20:36:46.912559+01:00 linux-iqb5 ifup-dhcp[5722]: 
2014-07-24T20:36:46.928787+01:00 linux-iqb5 ifup[5635]: enp0s3    IP address: 10.0.2.15/24
2014-07-24T20:36:46.938725+01:00 linux-iqb5 ifup-dhcp[5722]:     enp0s3    IP address: 10.0.2.15/24
2014-07-24T20:36:46.946793+01:00 linux-iqb5 ifup[5635]: enp0s3    DHCP6 continues in background
2014-07-24T20:36:46.956573+01:00 linux-iqb5 ifup-dhcp[5722]:     enp0s3    DHCP6 continues in background
2014-07-24T20:36:47.180511+01:00 linux-iqb5 systemd[1]: Started ifup managed network interface enp0s3.
2014-07-24T20:36:47.287777+01:00 linux-iqb5 network[5216]: ..done..done    enp0s8        Startmode is 'manual' -> skipping
2014-07-24T20:36:47.297576+01:00 linux-iqb5 ifup[7472]:     enp0s8    Startmode is 'manual' -> skipping
2014-07-24T20:36:47.369663+01:00 linux-iqb5 network[5216]: ..skippedSetting up service network  .  .  .  .  .  .  .  .  .  .  .  .  ...done
2014-07-24T20:36:49.221664+01:00 linux-iqb5 network[7499]: Shutting down network interfaces:
2014-07-24T20:36:49.385756+01:00 linux-iqb5 systemd[1]: Stopping ifup managed network interface enp0s3...
2014-07-24T20:36:49.688419+01:00 linux-iqb5 ifdown[7816]: enp0s3    device: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 02)
2014-07-24T20:36:49.698333+01:00 linux-iqb5 ifdown[7816]:     enp0s3    device: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 02)
2014-07-24T20:36:49.765709+01:00 linux-iqb5 avahi-autoipd(enp0s3)[6435]: Got SIGTERM, quitting.
2014-07-24T20:36:49.987453+01:00 linux-iqb5 dhcpcd[7892]: enp0s3: sending signal 15 to pid 6591
2014-07-24T20:36:49.991505+01:00 linux-iqb5 dhcpcd[6591]: enp0s3: received SIGTERM, stopping
2014-07-24T20:36:49.992507+01:00 linux-iqb5 dhcpcd[6591]: enp0s3: removing default route via 10.0.2.2 metric 0
2014-07-24T20:36:49.994813+01:00 linux-iqb5 dhcpcd[6591]: enp0s3: removing IP address 10.0.2.15/24
2014-07-24T20:36:49.996912+01:00 linux-iqb5 avahi-daemon[509]: Withdrawing address record for 10.0.2.15 on enp0s3.
2014-07-24T20:36:50.002594+01:00 linux-iqb5 avahi-daemon[509]: Leaving mDNS multicast group on interface enp0s3.IPv4 with address 10.0.2.15.
2014-07-24T20:36:50.006327+01:00 linux-iqb5 avahi-daemon[509]: Interface enp0s3.IPv4 no longer relevant for mDNS.
2014-07-24T20:36:50.007898+01:00 linux-iqb5 dhcpcd[7892]: enp0s3: exiting
2014-07-24T20:36:50.953700+01:00 linux-iqb5 dhcpcd[6591]: enp0s3: exiting
2014-07-24T20:36:52.299847+01:00 linux-iqb5 avahi-daemon[509]: Interface enp0s3.IPv6 no longer relevant for mDNS.
2014-07-24T20:36:52.307888+01:00 linux-iqb5 avahi-daemon[509]: Leaving mDNS multicast group on interface enp0s3.IPv6 with address fe80::a00:27ff:feca:f6ec.
2014-07-24T20:36:52.323000+01:00 linux-iqb5 avahi-daemon[509]: Withdrawing address record for fe80::a00:27ff:feca:f6ec on enp0s3.
2014-07-24T20:36:52.531144+01:00 linux-iqb5 systemd[1]: Stopped ifup managed network interface enp0s3.
2014-07-24T20:36:52.676351+01:00 linux-iqb5 systemd[1]: Stopped ifup managed network interface enp0s8.
2014-07-24T20:36:54.450619+01:00 linux-iqb5 network[7499]: ..done..doneShutting down service network  .  .  .  .  .  .  .  .  .  .  .  ...done

콘텐츠ifcfg-enp0s3

BOOTPROTO='dhcp'
BROADCAST=''
ETHTOOL_OPTIONS=''
IPADDR=''
MTU=''
NAME='82540EM Gigabit Ethernet Controller'
NETMASK=''
NETWORK=''
REMOTE_IPADDR=''
STARTMODE='auto'
USERCONTROL='no'

답변1

가상 머신에 opensuse 13.1 32비트를 새로 설치할 때 동일한 증상이 나타났습니다. 나에게 해결책은 다음과 같습니다.

/usr/lib/systemd/system/network.service를 편집하고 제안된 대로 설정하는 대신 Type=oneshot[Service] 섹션에서 설정합니다.Type=forking여기

관련 정보