web-dev-qa-db-ja.com

約10秒後にインターネット接続が失われる

さて、私はこの投稿を見ました ネットワーク接続は数秒後にドロップします
これは私が抱えている問題に似ていますが、Linuxを入手したばかりで、何をすべきか理解できません。

始める前に。

私はOpenSUSE13.1を持っています。
これは仮想マシンで実行されています。
ネットワークの私のVMの設定は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
user78605

仮想マシンでopenSUSE13.132ビットを使用した新規インストールでも同じ症状が発生しました。私にとっての解決策は次のとおりです。

/usr/lib/systemd/system/network.serviceを編集し、提案されているように、[Service]セクションでType=oneshotではなくType=forkingを設定します ここ

1
brassh