Ifconfig: Displays details of all the network cards that are being started or sets the IP address of the network card in the system.
Ifconfig eno16777736 down/up off/on eno16777736 NIC
Ifconfig eno16777736 172.18.48.56 netmask 255.255.255.128 to eno16777736
Network Status Command
Service network status (status)
Service network Stop (inactive)
Service Network start (open)
Service Network RESATRT (restart)
Systemctl Status Network View
Systemctl Stop Network shutdown
Establish DNS:
/etc/resolve.com. Configuration file location for DNS
/etc/hosts hosts configuration file location (specify local resolution)
Route-n
Routed add default GW 192.168.16.254 dev NIC Name set gateway
The configuration file of the network card is stored in the/etc/sysconfig/network-scripts directory, and the file name of the corresponding profile for each NIC starts with ifcfg-, such as eth0 the network configuration file for this NIC is Ifcfg-eth0. Add : The virtual machine added network card does not have the configuration file to manually add the configuration or graphics add network card
Two package management
1rpm Command 1) mount the disc file to the/media directory 2) go into the packages directory under/media directory 3) See all RPM packages installed on the system 4) see if the system installs DHCP package 5) Install DHCP package 6) View DHCP packages information 7) View all files included in the DHCP package 8) to see which package the/bin/ls file is generated by 9) Uninstall DHCP package 2:yum command 1) Custom Yum Warehouse: Createrepo 2) Custom repo file Mon 3) Install the httpd package with the Yum Command 4) Uninstall the HTTPD package: yum–y Remove software name 5) Use the Yum installation component ' KDE Desktop ': Yum–y Groupinstall Component name 6) master using Yum to remove components ' KDE Desktop ': yum–y Groupremove Component name 7) Master purge Yum cache: Yum clean all8) use Yum to find packages: Yum Search package name three: Source installation PythonStep1: Extract source package Step2: Install Step 3 Modify Path
Linux Basic Three---network Basic & Package Management