arm linux 的網絡配置如下: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 的網絡配置
ip:192.168.1.16
mask: 255.255.255.0
arm 與 pc 能相互ping通
隨后arm輸入以下指令
ifconfig eth0 netmask 255.255.255.224
arm Linux的網絡配置自動變成如下:
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
默認網關不見了。
隨后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
我想請教下:
1、如上設置,arm怎么會ping不通pc
2、修改子網掩碼有什么特定的注意的嗎
最后:
祝路過的朋友節節高升~
- 2 回答
- 0 關注
- 1102 瀏覽
添加回答
舉報
0/150
提交
取消