1Red Hat 7.0 禁用firewalld和修改网卡
Posted cl-learning
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了1Red Hat 7.0 禁用firewalld和修改网卡相关的知识,希望对你有一定的参考价值。
# 禁用firewalld:
# systemctl stop firewalld
# systemctl disable firewalld
# 修改主机名: # hostnamectl set-hostname demo.example.com
# 修改网卡: # nmcli device status DEVICE TYPE STATE CONNECTION eno16777736 ethernet connected eno16777736 lo loopback unmanaged -- # nmcli connection show NAME UUID TYPE DEVICE eno16777736 1fb51113-0b9c-450a-b435-cfde1b220401 802-3-ethernet eno16777736 # nmcli connection add con-name demo ifname eno16777736 type ethernet autoconnect yes (dhcp) # nmcli connection up demo # ip a 可以看到一个IP地址 # #nmcli connection modify demo ipv4.method manual ipv4.addresses ‘192.168.78.128/24 192.168.78.1‘ (rhel7.0) # nmcli connection modify demo ipv4.method manual ipv4.addresses ‘192.168.78.128/24‘ ipv4.gateway 192.168.78.1 (rhel7.1 and after) # nmcli connection up demo
# 查看firewalld的状态:
systemctl status firewalld
# 查看selinux的状态:
getenforce
# 查看主机名:
hostnamectl
# 查看网卡状态:
ip a
以上是关于1Red Hat 7.0 禁用firewalld和修改网卡的主要内容,如果未能解决你的问题,请参考以下文章
Red Hat Enterprise Linux 7.0的网络配置