LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 424|回复: 0

tun出问题了

[复制链接]
发表于 2007-4-5 09:45:11 | 显示全部楼层 |阅读模式
最近使用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 Scopeink
          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 encapocal 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




谁遇到类似的问题?如何解决?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表