自丟網

 找回密碼
 立即注冊
搜索
打印 上一主題 下一主題

[Linux] linux常用操作命令之網絡 - (以太網和WIFI無線)

[復制鏈接]
跳轉到指定樓層
樓主
admin 發表于 2019-7-21 21:45:37 | 查看: 46|回復: 0 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
linux常用操作命令之網絡 - (以太網和WIFI無線)
  1. ifconfig eth0 顯示一個以太網卡的配置
  2. ifup eth0 啟用一個 'eth0' 網絡設備
  3. ifdown eth0 禁用一個 'eth0' 網絡設備
  4. ifconfig eth0 192.168.1.1 netmask 255.255.255.0 控制IP地址
  5. ifconfig eth0 promisc 設置 'eth0' 成混雜模式以嗅探數據包 (sniffing)
  6. dhclient eth0 以dhcp模式啟用 'eth0'
  7. route -n show routing table
  8. route add -net 0/0 gw IP_Gateway configura default gateway
  9. route add -net 192.168.0.0 netmask 255.255.0.0 gw 192.168.1.1 configure static route to reach network '192.168.0.0/16'
  10. route del 0/0 gw IP_gateway remove static route
  11. echo "1" > /proc/sys/net/ipv4/ip_forward activate ip routing
  12. hostname show hostname of system
  13. host www.example.com lookup hostname to resolve name to ip address and viceversa
  14. nslookup www.example.com lookup hostname to resolve name to ip address and viceversa
  15. ip link show show link status of all interfaces
  16. mii-tool eth0 show link status of 'eth0'
  17. ethtool eth0 show statistics of network card 'eth0'
  18. netstat -tup show all active network connections and their PID
  19. netstat -tupl show all network services listening on the system and their PID
  20. tcpdump tcp port 80 show all HTTP traffic
  21. iwlist scan show wireless networks
  22. iwconfig eth1 show configuration of a wireless network card
  23. hostname show hostname
  24. host www.example.com lookup hostname to resolve name to ip address and viceversa
  25. nslookup www.example.com lookup hostname to resolve name to ip address and viceversa
  26. whois www.example.com lookup on Whois database
復制代碼



推薦給好友: [復制鏈接]
上一篇:linux常用操作命令之光盤摘要:linux常用操作命令之光盤
下一篇:jQuery+html5響應式頁面滾屏代碼源碼免費分享下載摘要:jQuery+html5響應式頁面滾屏代碼源碼免費分享下載 j ...
樓主熱帖
回復

使用道具 舉報

網站地圖|百度統計|免責聲明|Archiver|手機版|小黑屋|ZiDiu.Com ( 粵ICP備17166275號 )

GMT+8, 2019-8-15 20:19 , Processed in 0.125000 second(s), 31 queries .

Powered by Discuz!

© Comsenz Inc.

快速回復 返回頂部 返回列表
鸟叔彩金