更新时间:2023-11-22 20:08:22
,答案就埋藏到本节中的原始文件的:
The answer lies buried into this section of the original documentation:
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/enhanced-networking.html#enhanced-networking-linux
在简单地说,CentOS的7艘已经与ixgbevf模块,虽然没有采用最新的版本,但是这是很难的一个问题。是什么造成了我的情况下是无法访问后,重新启动是在predictable网络接口,默认情况下启用。
In a nutshell, CentOS 7 already ships with the ixgbevf module, although not with the latest version, but this is hardly a problem. What was causing my instance to be unreachable after a reboot were the "predictable network interfaces", enabled by default.
要禁用它们,只需访问该链接,跳转的直接步骤6号和类型:
To disable them, simply visit that link, jump straight to step number 6 and type:
$转-qa | grep的-e'^ systemd- [0-9] \ + \ | ^ udev- [0-9] \ +
$ sudo的sed的-i'/ ^ GRUB \ _CMDLINE \ _linux / S / \$ / \网络\ .ifnames \ = 0 \/的/ etc /默认/平头
$ sudo的GRUB2-mkconfig -o /boot/grub2/grub.cfg
$ rpm -qa | grep -e '^systemd-[0-9]\+\|^udev-[0-9]\+'
$ sudo sed -i '/^GRUB\_CMDLINE\_LINUX/s/\"$/\ net\.ifnames\=0\"/' /etc/default/grub
$ sudo grub2-mkconfig -o /boot/grub2/grub.cfg
之后:
您现在应该能够登录!