ifconfig 看不掉down掉的接口...
ifconfig -a可以看到eth2
-
- root@OpenWrt:~# ifconfig -a
- br-lan Link encap:Ethernet HWaddr 00:90:4C:C0:01:4D
- inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:809 errors:0 dropped:0 overruns:0 frame:0
- TX packets:567 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:0
- RX bytes:83808 (81.8 KiB) TX bytes:67936 (66.3 KiB)
- eth0 Link encap:Ethernet HWaddr 00:90:4C:C0:01:4D
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:74080 errors:0 dropped:0 overruns:0 frame:0
- TX packets:72959 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:1000
- RX bytes:55253472 (52.6 MiB) TX bytes:54764003 (52.2 MiB)
- Interrupt:4
- eth0.0 Link encap:Ethernet HWaddr 00:90:4C:C0:01:4D
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:29895 errors:0 dropped:0 overruns:0 frame:0
- TX packets:44906 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:0
- RX bytes:3536972 (3.3 MiB) TX bytes:51088821 (48.7 MiB)
- eth0.1 Link encap:Ethernet HWaddr 00:90:4C:C0:01:4D
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:44145 errors:0 dropped:0 overruns:0 frame:0
- TX packets:28050 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:0
- RX bytes:50376686 (48.0 MiB) TX bytes:3339990 (3.1 MiB)
- eth2 Link encap:Ethernet HWaddr 00:90:4C:C0:01:4D
- BROADCAST MULTICAST MTU:1500 Metric:1
- RX packets:0 errors:0 dropped:0 overruns:0 frame:0
- TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:0
- RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
- 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:30 errors:0 dropped:0 overruns:0 frame:0
- TX packets:30 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:0
- RX bytes:2504 (2.4 KiB) TX bytes:2504 (2.4 KiB)
- pppoe-wan Link encap:Point-to-Point Protocol
- inet addr:220.242.160.14 P-t-P:220.242.160.1 Mask:255.255.255.255
- UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
- RX packets:129 errors:0 dropped:0 overruns:0 frame:0
- TX packets:260 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:3
- RX bytes:27467 (26.8 KiB) TX bytes:33661 (32.8 KiB)
复制代码
可就是up不起来
每次up他就报错
-
- root@OpenWrt:~# ifconfig eth2 up
- ifconfig: SIOCSIFFLAGS: Device or resource busy
复制代码 |