| Summary: | ifupdown: remove interface from state_list if iface_up fails | ||
|---|---|---|---|
| Product: | Busybox | Reporter: | mingli.yu |
| Component: | Networking | Assignee: | unassigned |
| Status: | RESOLVED INVALID | ||
| Severity: | normal | CC: | busybox-cvs |
| Priority: | P2 | ||
| Version: | 1.31.x | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Host: | Target: | ||
| Build: | |||
|
Description
mingli.yu
2020-03-27 09:49:58 UTC
And Test on another host which also installed with BusyBox v1.31.1
# ifconfig eth1
eth1 Link encap:Ethernet HWaddr 00:1E:67:65:8D:9D
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:2551 errors:0 dropped:0 overruns:0 frame:0
TX packets:3983 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:617252 (602.7 KiB) TX bytes:1347016 (1.2 MiB)
Memory:d0940000-d095ffff
# ifup -v eth1
run-parts /etc/network/if-pre-up.d
run-parts: /etc/network/if-pre-up.d: No such file or directory
ip link set eth1 up
udhcpc -R -b -p /var/run/udhcpc.eth1.pid -i eth1
udhcpc: started, v1.31.1
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: no lease, forking to background
run-parts /etc/network/if-up.d
run-parts: /etc/network/if-up.d: No such file or directory
# ifconfig eth1
eth1 Link encap:Ethernet HWaddr 00:1E:67:65:8D:9D
inet6 addr: fe80::21e:67ff:fe65:8d9d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2554 errors:0 dropped:0 overruns:0 frame:0
TX packets:3997 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:618248 (603.7 KiB) TX bytes:1348510 (1.2 MiB)
Memory:d0940000-d095ffff
# ifup -v eth1
ifup: interface eth1 already configured
Maybe it is not issue as it indicate "udhcpc: no lease, forking to background" in the first run, so it makes sense get "ifup: interface eth1 already configured" if rerun "ifup eth1". |