嵌入式 在板子上设置ip、dns、mask

2019-07-13 04:30发布

ifconfig eth0 up
ifconfig eth0 10.10.1.240 netmask 255.255.255.0
route add default gw 10.10.1.1
/usr/sbin/telnetd &
cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated byresolvconf(8)
#    DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BEOVERWRITTEN
nameserver 127.0.0.1
search 10.10.2.2