Centos7 与 Centos 6

Centos6 不能与windows互ping问题     使用了桥连接,应用NET格式

Centos7

关闭防火墙:systemctl stop firewalld.service

                        systemctl disable firewlld

重启网卡:systemctl restart network   

 别的版本命令:service network restart

查看版本命令:
     cat  /etc/redhat-release

ip地址查询   ip addr

  1.     在ens33 中 的inet的值就是ip  如果没有,则查看ens33的网卡配置,命令: vi /etc/sysconfig/network-scripts/ifcfg-ens3
  2.     查看最后一行 ONBOOT=no  默认不启动
  3.     修改为ONBOOT=yes
  4.     重启网卡: sudo service network restart
  5.     查看IP地址:ip addr show 或 ip addr show ens33
  6.     设置IP地址:ip addr add 192.168.1.1/24 dev ens33
  7.     删除IP地址:ip addr del 192.168.1.1 dev ens33

         

   Centos6

 

防火墙:service iptables stop     service iptables start

                chkconfig iptables off   chkconfig iptables on

                service iptables restart

ip地址查询   ifconfig  

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值