EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
ARM linux 的网络配置如下:
2 M. @: I" p a" S8 g3 z4 Uip:192.168.1.1635 m* I0 D3 g: x: k$ N
bacst:192.168.1.255
" w% P6 |- m& \" w# W6 ?: ^mask:255.255.255.0* _1 `9 h% _7 w7 v
Destination Gateway Genmask Flags Metric Ref Use Iface4 d' j, Y0 Z) @
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
+ ^8 o; D5 T" V192.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、修改子网掩码有什么特定的注意的吗 最后: 祝路过的朋友节节高升~
0 M ~) C0 M6 M3 K2 _9 b8 M& r |