IP ,路由
ifconfig 命令 ip信息 enp0s3: flags=4163<UP(已經啟用),BROADCAST(支持廣播),RUNNING,MULTICAST(支持多播)> mtu 1500 inet 192.168.23.11 netmask 255.255.255.0 broadcast 192.168.23.255 inet6 fe80::a00:27ff:fec1:cd2b prefixlen 64 scopeid 0x20<link> ether 08:00:27:c1:cd:2b txqueuelen 1000(傳輸隊列長度) (Ethernet) RX(接受的數據包) packets 28355 bytes 10835366 (10.3 MiB) RX errors(錯誤包數量) 0 dropped(丟包數量) 0 overruns 0 frame 0 TX(傳出的數據包) packets 15286 bytes 2489410 (2.3 MiB) TX errors(錯誤包數量) 0 dropped(丟包數量) 0 overruns 0 carrier 0 collisions 0
?
ifconfig命令使用(設置IP地址可以立即生效)
(1)顯示激活網卡,以及網絡信息 ifconfig (2)顯示激活網卡,以及網絡信息 ifconfig eth0 (3)顯示所有網卡,以及網絡信息 ifconfig -a (4)啟用網卡地址 ifconfig eth0 ifconfig enp0s3 (5)停止網卡地址 ifconfig eth0 ifconfig enp0s3 (6)網卡取別名的兩種寫法 ifconfig eth0:0 192.168 ifconfig enp0s3:0 192.168- (2)route命令
- (3)netstat命令(對應的ss命令請自行總結)
- (4)ifup、ifdown命令
?
轉載于:https://www.cnblogs.com/liu1026/p/7498031.html
總結
- 上一篇: angular4 学习日志(一 依赖注入
- 下一篇: Zookeeper与Paxos