|
发表于 2014-6-28 10:50:40
|
显示全部楼层
这个固件只能用无线网络吗,我在cb2上配置有线网络失败。
然后我手动配置/etc/network,我的配置如下:- # Network configuration
- # Backend software to use for network management (e.g. "connman")
- NETWORK_BACKEND="connman"
- # "LAN" or "WLAN" or "" (default is "" <--> "LAN")
- NETWORK="LAN"
- # Network interface name or address (e.g. "eth0" or "00:0d:56:ec:ba:0c")
- IFACE="eth0"
- # Static IP address ("" for DHCP) in CIDR format (e.g. "192.168.1.1/24")
- ADDRESS="192.168.1.29"
- # Network gateway (e.g. "192.168.1.254")
- GATEWAY="192.168.1.1"
- # List of DNS servers (e.g. "192.168.1.253 192.168.1.254")
- # This will override the DNS servers from DHCP
- DNS_SERVER="10.10.0.1"
- SSID=""
- # "true" or ""
- HIDDEN="false"
- # "WEP" or "PSK" or "" or "RSN"
- SECURITY="NONE"
- PASSPHRASE=""
- # set to "" to disable NTP
- TIMESERVERS="0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org 3.pool.ntp.org"
- # Services to be started at boot time
- TELNET_SERVER="true"
- FTP_SERVER="true"
- HTTP_SERVER="false"
- SAMBA_SERVER="false"
- # Use Zeroconf service discovery
- ZEROCONF="true"
- # Static Samba shares can be defined as shown in the commented examples below,
- # where <%>,<@>,<&>,<#> field separators must be present as shown (Note that
- # the password cannot contain these special delimiters):
- #STATIC_SMB="username<%>password<@>ip<&>myservername<#>share1<#>share2<#>share3"
- #STATIC_SMB="<%><@>ip<&>myservername<#>share1"
- WAIT_FOR_SLOW_DEVICE="true"
复制代码 但通过ifconfig看到的信息中,Bcast不对,也ping不通路由:- eth0 Link encap:Ethernet HWaddr 02:56:07:80:C6:51
- inet addr:192.168.1.29 Bcast:255.255.255.255 Mask:0.0.0.0
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:0 errors:0 dropped:0 overruns:0 frame:0
- TX packets:50 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:1000
- RX bytes:0 (0.0 B) TX bytes:6135 (5.9 KiB)
- Interrupt:117 Base address:0x4000
- lo Link encap:Local Loopback
- inet addr:127.0.0.1 Mask:255.0.0.0
- UP LOOPBACK RUNNING MTU:16436 Metric:1
- RX packets:20 errors:0 dropped:0 overruns:0 frame:0
- TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:0
- RX bytes:1994 (1.9 KiB) TX bytes:1994 (1.9 KiB)
复制代码 请问应该怎么配置 |
|