Linux日常管理技巧(3):Linux網絡相關和防火墻
阿新 • • 發佈:2018-01-24
127.0.0.1 網絡 修改網卡 cal 網卡ip lis oot back col 一、Linux網絡相關
1. ifconfig 查看網卡IP
ifconfig命令被用於配置和顯示Linux內核中網絡接口的網絡參數。用ifconfig命令配置的網卡信息,在網卡重啟後機器重啟後,配置就不存在。要想將上述的配置信息永遠的存的電腦裏,那就要修改網卡的配置文件了。
[root@localhost ~]# ifconfig //直接輸入該命令即可查看網卡 ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.204.128 netmask 255.255.255.0 broadcast 192.168.204.255 inet6 fe80::9045:61b6:c7f7:5501 prefixlen 64 scopeid 0x20<link> ether 00:0c:29:34:a9:bc txqueuelen 1000 (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 0 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 1 (Local Loopback) RX packets 96 bytes 8300 (8.1 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 96 bytes 8300 (8.1 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Linux日常管理技巧(3):Linux網絡相關和防火墻