7.x 網卡工作筆記
Centos7中,默認的網絡管理是NetworkManager,NetworkManager在桌面系統中比較好用,對於服務器,真的沒什麽用,雙網卡綁定必須停止和禁用NetworkManager服務,還是network比較方便,停用NetworkManager,開啟network。
[[email protected] ~]# systemctl disable NetworkManager Removed symlink /etc/systemd/system/multi-user.target.wants/NetworkManager.service. Removed symlink /etc/systemd/system/dbus-org.freedesktop.NetworkManager.service. Removed symlink /etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service. [[email protected]
查看network是否開機啟動
[[email protected] ~]# chkconfig --list |grep 3:on Note: This output shows SysV services only and does not include native systemd services. SysV configuration data might be overridden by native systemd configuration. If you want to list systemd services use ‘systemctl list-unit-files‘. To see services enabled on particular target use ‘systemctl list-dependencies [target]‘. mysql 0:off 1:off 2:on 3:on 4:on 5:on 6:off network 0:off 1:off 2:on 3:on 4:on 5:on 6:off shadowsocks 0:off 1:off 2:on 3:on 4:on 5:on 6:off
本文出自 “boyhack” 博客,請務必保留此出處http://461205160.blog.51cto.com/274918/1944922
7.x 網卡工作筆記