Network-related concepts, modifying IP, firewalls and ports-turn off SELinux

Source: Internet
Author: User

En means ethernet, which is LAN

O: Motherboard Onboard Network

P: Standalone NIC

S: Hot-swappable NIC

Temporarily modify IP

ifconfig nic name (ENS33) IP (192.168.1.110)

Systemctl Restart network//restart NIC Service

Ifconfig nic name (ENS33) del IP (192.168.1.110)//Temporary Delete

Permanently modify IP

Systemctl status NetworkManager #网卡状态 Active (running) run

Ls/etc/sysconfig/network-scripts/ifcfg-lo #网卡回环地址

Cat/etc/resolv.conf #DNS

Cat/etc/hostfs #设置主机名和IP绑定信息

Cat/etc/hostname #设置主机名

Permanently modify the network card address

1. Nmtui---> edit a connection-- OK //edit

2. vim/etc/sysconfig/network-scripts/ifcfg-ens33//config file modify ipaddr= IP address

Firewall and Port Firewalld

View status: Systemctl status firewalld start: Systemctl start firewalld Disabled: Systemctl stop FIREWALLD stop: systemctl disable F Irewalld #开机自动关闭

Temporarily (permanently) close SELinux

Getenforce # View the status of SELinux.

Enforcing boot Setenforce 0 indicates a temporary shutdown of the SELinux firewall

Disabled boot does not start

Vim/etc/selinux/config//Edit file permanently closed

Reboot Restart Service

CD-ROM boot automatically mount

Vim/etc/fstab

Network-related concepts, modifying IP, firewalls and ports-turn off SELinux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.