arm linux 的網(wǎng)絡(luò)配置如下:ip:192.168.1.163bacst:192.168.1.255mask:255.255.255.0Destination Gateway Genmask Flags Metric Ref Use Ifacedefault 192.168.1.1 0.0.0.0 UG 0 0 0 eth0192.168.1.0 * 255.255.255.0 U 0 0 0 eth0 pc 的網(wǎng)絡(luò)配置
ip:192.168.1.16
mask: 255.255.255.0
arm 與 pc 能相互ping通
隨后arm輸入以下指令
ifconfig eth0 netmask 255.255.255.224
arm Linux的網(wǎng)絡(luò)配置自動(dòng)變成如下:
ip:192.168.1.163
bacst:192.168.1.191
mask:255.255.255.224
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.160 * 255.255.255.224 U 0 0 0 eth0
默認(rèn)網(wǎng)關(guān)不見了。
隨后arm ping pc端
# ping 192.168.1.16
PING 192.168.1.16 (192.168.1.16): 56 data bytes
ping: sendto: Network is unreachable
我想請(qǐng)教下:
1、如上設(shè)置,arm怎么會(huì)ping不通pc
2、修改子網(wǎng)掩碼有什么特定的注意的嗎
最后:
祝路過(guò)的朋友節(jié)節(jié)高升~
添加回答
舉報(bào)
0/150
提交
取消