One, Linux network related 1. Ifconfig Viewing network card IP
The Ifconfig command is used to configure and display network parameters for network interfaces in the Linux kernel. The NIC information configured with the Ifconfig command does not exist after the machine restarts after the network card restarts. In order to keep the above configuration information in the computer forever, it is necessary to modify the network card configuration file.
[[email protected] ~]# ifconfig//Enter this command directly to view the NIC Ens33:flags=4163<up, Broadcast,running,multicast> MTU inet 192.168.204.128 netmask 255.255.255.0 broadcast 192.168.204.255 Inet6 fe80::9045:61b6:c7f7:5501 prefixlen scopeid 0x20<link> ether 00:0C:29:34:A9:BC txqueuelen 10 XX (Ethernet) Rx packets 76554 bytes 26401473 (25.1 MiB) Rx errors 0 dropped 0 overruns 0 frame 0 TX Packets 71194 Bytes 17838448 (17.0 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0lo:flags=7 3<up,loopback,running> MTU 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6:: 1 Prefixlen ScopeID 0x10
Linux daily Management tips (3): Linux network-related and firewall