标签:linux over ifconfig car err python config pac linu
一、Linux网络相关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 over ifconfig car err python config pac linu
原文地址:http://blog.51cto.com/3069201/2064711