centos7网络配置一些问题_李孟_新浪博客
Posted 李孟lm
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了centos7网络配置一些问题_李孟_新浪博客相关的知识,希望对你有一定的参考价值。
本人用的公司电脑,有域,设置了静态dnsvi
/etc/sysconfig/network-scripts/ifcfg-eth0
桥连接
![centos7网络配置一些问题](https://image.cha138.com/20210831/2b2b7846c41a42dca897ab8e1c555000.jpg?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)
service network restart |
|
#或者 |
|
/etc/init.d/network restart
可以上网了
|
![centos7网络配置一些问题](https://image.cha138.com/20210831/263bc5242e5141158dc28d5727206628.jpg?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)
![centos7网络配置一些问题](https://image.cha138.com/20210831/0e042907542843e4a41393525648f7d4.jpg?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)
![centos7网络配置一些问题](https://image.cha138.com/20210831/e27d2fa880dd42b2b4c884e128d22772.jpg?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)
![centos7网络配置一些问题](https://image.cha138.com/20210831/5b39d8f9480a47eaa37ca7a765a7ab08.jpg?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)
这样配置完后,配置有问题,觉得是电脑dns有问题,上不了网。
firewall:
systemctl start firewalld.service#启动firewall
systemctl stop firewalld.service#停止firewall
systemctl disable firewalld.service#禁止firewall开机启动
以上是关于centos7网络配置一些问题_李孟_新浪博客的主要内容,如果未能解决你的问题,请参考以下文章