|
|
最近使用skyeye,发现无法进行 tun设置。情况如下:
[root@vlf ~]# uname -r
2.6.20-1.2933.fc6
kernel中有tun.ko模块
[root@vlf ~]# lsmod | grep tun
tun 14913 0
设备中存在tun
[root@vlf ~]# ls -l /dev/net/tun
crw------- 1 root root 10, 200 Apr 5 09:22 /dev/net/tun
但是ifconfig里没有tun0设备
[root@vlf ~]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:0D:61:93:A1:3B
inet addr:192.168.0.254 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::20d:61ff:fe93:a13b/64 Scope ink
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:779 errors:0 dropped:0 overruns:0 frame:0
TX packets:746 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:450751 (440.1 KiB) TX bytes:120608 (117.7 KiB)
Interrupt:20
lo Link encap ocal Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:560 (560.0 b) TX bytes:560 (560.0 b)
并且无法cat /dev/net/tun
[root@vlf ~]# cat /dev/net/tun
cat: /dev/net/tun: File descriptor in bad state
谁遇到类似的问题?如何解决? |
|