ping: bad address 'www.baidu.com'

 

1.检查路由

route add default gw 192.168.73.1 dev eth0

2.nsswitch配置

# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
#

passwd:         db files
group:          db files
shadow:         db files
gshadow:        files

hosts:          files dns
networks:       files dns

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

netgroup:       db files

 

存在/etc/hosts,/etc/resolv.conf,/etc/nsswitch.conf

 

/lib下也有/lib/libnss_dns*, /lib/libnss_files*, and /lib/libresolv*

 

LIBC NSS
When used with glibc, the BusyBox 'networking' applets will similarly require that you install at least some of the glibc NSS stuff (in particular, /etc/nsswitch.conf, /lib/libnss_dns*, /lib/libnss_files*, and /lib/libresolv*).

重新编译busybox,采用动态链接方式

你可能感兴趣的:(baidu)