w*s 发帖数: 7227 | 1 # udhcpc --help
BusyBox v1.18.4 (2011-09-06 10:46:51 EDT) multi-call binary.
Hi, for some reason i cannot renew the lease.
root# udhcpc -i eth0 -s ./udhcpc.script -p eth0.pid -b
yes i got the ip address etc.
in udhcpc.script i put echos in the beginning so i know it get called
now since udhcpc is up running for eth0, i do this,
root# cat eth0.pid, i get 869
root# /bin/kill -SIGUSR1 869
nothing happened, no print from udhcpc.script
what did i do wrong pls ?
do i have files missing ? |
|
v*s 发帖数: 29 | 2 I think all you did is killing udhcpc. Of course you will not get a ip
address.
Do you run it on embedded device?
Any specific reason why you use udhcpc instead of isc-dhcp?
Maybe you should learn some basic about dhcp first, even Linux. If you kill
a proc, how do you expect it to do things for you afterwards? |
|
d******i 发帖数: 7160 | 3 log出来了:
Jan 8 16:38:12 unknown daemon.info udhcpc[307]: Lease of 75.3.203.13
obtained, lease time 600
Jan 8 16:40:53 unknown daemon.info dnsmasq-dhcp[450]: DHCPINFORM(br0) 192.
168.1.138 XXXX
Jan 8 16:40:53 unknown daemon.info dnsmasq-dhcp[450]: DHCPACK(br0) 192.168.
1.138 XXXX
Jan 8 16:43:12 unknown daemon.info udhcpc[307]: Sending renew...
Jan 8 16:43:12 unknown daemon.info udhcpc[307]: Lease of 75.3.203.13
obtained, lease time 600
Jan 8 16:48:12 unknown daemon.info udhcpc[307]: Sending ... 阅读全帖 |
|
w*s 发帖数: 7227 | 4 we're using udhcpc as client to get ip from server.
udhcpc -n -q -i eth0
if dhcp server holds the ip address for 2 weeks, what happens after 2 weeks,
do i need to restart udhcpc ? |
|
发帖数: 1 | 5 街霸ken哥谢谢你的刷题广告不过这个贴子并不需要你
在某开发板做port
3.10Linux 内核跑全正常。可以进busybox,可以ping
3.2.16 Linux 内核可以进busybox.ping报错
ifconfig eth0 正常可以看到IP地址 . RX可以看到packets 在增长,TX始终为0。
插拔网线可以看到消息link up full duplex/ link down
打udhcpc 报:SIOCGIFINDEX :No such file or directory
route add default gw 192.168.4.1 报route :SIOCADDRT: Inappropriate ioctl for
device
打ping报 ping :sendto : No such file or directory.
目前没方向不知道问题是在网络驱动这块还是内核其它模块导致。ethernet驱动感觉已
经起来。有没有高人给下trouble shoot的建议不需要很详细给个大方向即可。是文件
系统/地址映射/设备文件大概哪个大模块有问题谢谢 |
|
w*s 发帖数: 7227 | 6 hi everyone,
we designed embedded board, running basic linux,
no fancy stuff (e.g. network manager).
it has 2 ethernet ports: eth0, eth1
1. plugin cable to eth1, restart board.
it comes back, eth1 is alive, i can ping it.
2. move the cable from eth1 to eth0,
run "udhcpc --reties 4 -n -q -i eth0"
ifconfig shows eth0 now has a valid ip addr, also it's UP.
3. but i cannot ping eth0
4. if i start with eth0, can ping eth0.
move to eth1, then cannot ping eth1.
i'm not familiar with network... 阅读全帖 |
|
w*s 发帖数: 7227 | 7 more details ?
i mean udhcpc is not a demon, it gets the ip and exits. |
|
k****t 发帖数: 2288 | 8 用top得到的:
Mem: 14888K used, 111788K free, 0K shrd, 444K buff, 8224K cached
CPU: 0% usr 0% sys 0% nic 100% idle 0% io 0% irq 0% sirq
Load average: 0.00 0.03 0.00 2/42 2008
PID PPID USER STAT VSZ %MEM %CPU COMMAND
1849 1842 root S 5616 4% 0% /usr/sbin/asterisk
1841 1 root S 5616 4% 0% /usr/sbin/asterisk
1846 1842 root S 5616 4% 0% /usr/sbin/asterisk
1845 1842 root S 5616 4% 0% /usr/sbin/asterisk
1843 1842 root S 56... 阅读全帖 |
|