2015年7月2日 星期四

測試 Debian 8.1 Linux 系統的網絡功能設置:

測試 Debian 8.1 Linux 系統的網絡功能設置: 

完成安裝 Debian 8.1 後,第一件事是檢查設置和測試網絡(Network)功能,因為在安裝 Debian 7.1 後,都不能夠成功安裝網絡驅動和程式,可能筆者的水平問題!如果沒有試網絡功能,基本上就是沒有去路,所以首先要測試網絡功能。

Debian 8.1 網絡系統功能設置
步驟 1檢查網絡設置
root@debian:~# ifconfig
eth0       Link encap:Ethernet  HWaddr d8:xx:xx:xx:xx:xx
          inet addr:192.168.11.11  Bcast:192.168.11.255  Mask:255.255.255.0
          inet6 addr: fe80::dacb:8aff:fe7e:fb8d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4369 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3395 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:375033 (366.2 KiB)  TX bytes:611302 (596.9 KiB)
          Interrupt:19

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
 

檢查 PCI 網卡設置 LSPCI
步驟 2檢查 PCI 網卡設置
root@debian:~# lspci -nn | grep 0200
04:00.0 Ethernet controller [0200]: Qualcomm Atheros Killer E220x Gigabit Ethernet Controller [1969:e091] (rev 13)
 

步驟 3ping www.yahoo.com
root@debian:~# ping www.yahoo.com
PING fd-fp3.wg1.b.yahoo.com (106.10.139.246) 56(84) bytes of data.
64 bytes from ir1.fp.vip.sg3.yahoo.com (106.10.139.246): icmp_seq=1 ttl=53 time=38.7 ms
64 bytes from ir1.fp.vip.sg3.yahoo.com (106.10.139.246): icmp_seq=2 ttl=53 time=38.5 ms
64 bytes from ir1.fp.vip.sg3.yahoo.com (106.10.139.246): icmp_seq=3 ttl=53 time=38.4 ms
64 bytes from ir1.fp.vip.sg3.yahoo.com (106.10.139.246): icmp_seq=4 ttl=53 time=38.5 ms
64 bytes from ir1.fp.vip.sg3.yahoo.com (106.10.139.246): icmp_seq=5 ttl=53 time=39.2 ms
64 bytes from ir1.fp.vip.sg3.yahoo.com (106.10.139.246): icmp_seq=6 ttl=53 time=38.4 ms
64 bytes from ir1.fp.vip.sg3.yahoo.com (106.10.139.246): icmp_seq=7 ttl=53 time=40.4 ms
^C
--- fd-fp3.wg1.b.yahoo.com ping statistics ---
7 packets transmitted, 7 received, 0% packet loss, time 6009ms
rtt min/avg/max/mdev = 38.490/38.933/40.484/0.691 ms
root@debian:~#

Debian 8.1 網絡測試指令:
# ifconfig
# ping www.yahoo.com
# ping –c 5 106.10.139.246
# traceroute www.yahoo.com
# ifup eth0
# ifdown eth0
# netstat -r
# host www.yahoo.com
# nslookup www.yahoo.com
# lsmod
# dmesg
# service networking restart
 

Debian 8.1 網絡設定:
# nano /etc/resolv.conf
# nano /etc/hostname
# nano /etc/hosts
# nano /etc/network/interfaces
# nano /etc/dhcp/dhclient.conf
# nano /etc/apt/sources.list

Debian 8.1常用指令:
# df -h  Finding the disk free space / disk usage
# du /home/alpha/ -c  Finding the size of a directory
# ls -l |more  List directory contents
# uname -r  Print system information
# rm -r /haome/alpha/openwrt  Remove files / Directories
# su  Super user
# tar vxf xxxx.tar  Convert a group of files into an archive
 

相關網址:
※ 在 Linux Debian 8.1 系統安裝及編譯 OpenWrt Trunk 程式
※ 在 Linux Debian 8.1 系統編譯 OpenWrt Trunk 8MB 固件程式
※ 如何將 OperWrt 8MB 固件程式寫入 8MB 閃存(Flash Memory)

※ 在 Linux Debian 8.1 系統安裝及編譯 OpenWrt Attitude Adjustment 程式
※ Subversion (SVN) 1.8.10 版本不兼容,錯誤編譯 OpenWrt Attitude Adjustment 程式

相關網址:
※ 微星(MSI)GS60 2QD Ghost 龍魂電競筆電(Gaming Notebook)- Debian(八)
※ 測試 Debian 8.1 Linux 系統的網絡功能設置
※ 修改 Debian 8.1 Linux 系統的 GRUB 和 80×25 文字解像度

※ 安裝 OpenSSH 在 Debian 8.1 Linux 系統
※ 在 Debian 8.1 Linux 系統讀寫 USB 手指

2015 年 7月 2日 天氣報告
氣溫:29.4@ 21:50
相對濕度:百分之 78%
天氣:天色大致良好

沒有留言:

張貼留言