当前时区 GMT+8, 现在时间是 2008-9-9 00:23 游客: 注册 登录 仅登录论坛 | 搜索 帮助


标题: 关于0.7.4的网络IP问题
metop
新手上路
Rank: 1


UID 34273
精华 0
积分 20
帖子 8
阅读权限 10
注册 2003-5-4
来自 China.gif
状态 离线
发表于 2004-7-9 10:49  资料  短消息  加为好友 
关于0.7.4的网络IP问题

我再FC1下编译并运行了skyeye-0.7.4,并按照installguide安装了tun.o模块,现在存在以下问题:
在使用10.0.0.1作为tap0的地址,10.0.0.2作为target的地址的时候,网络正常;但是在使用192.168.2.223作为tap0地址,192.168.2.224作为target地址的时候,网络无法操作;现在将后一种模式的具体信息表示如下

配置文件skyeye.conf
#skyeye config file sample
cpu: arm7tdmi
mach: at91
mem_bank: map=M, type=RW, addr=0x00000000, size=0x00004000
mem_bank: map=M, type=RW, addr=0x01000000, size=0x00400000
mem_bank: map=M, type=R,  addr=0x01400000, size=0x00400000, file=./boot.rom
mem_bank: map=M, type=RW, addr=0x02000000, size=0x00400000
mem_bank: map=M, type=RW, addr=0x02400000, size=0x00008000
mem_bank: map=M, type=RW, addr=0x04000000, size=0x00400000
mem_bank: map=I, type=RW, addr=0xf0000000, size=0x10000000
#set nic info state=on/off  mac=xxxxxxx  ethmod=tuntap/vnet hostip=dd.dd.dd.dd
net: state=on, mac=0:4:3:2:1:f, ethmod=tuntap, hostip=192.168.2.223

内核信息:
Starting program: /root/winbond/test/uClinux-dist/linux-2.4.x/linux
Linux version 2.4.20-uc0 (root@FC1) (gcc version 2.95.3 20010315 (release)(ColdFire patches - 20010318 from http://fiddes.net/coldfire/)(uClinux XIP and shared lib patches from http://www.snapgear.com/)) #4 五 7月 9 10:28:34 CST 2004
Processor: Atmel AT91M40xxx revision 0
Architecture: EB01
On node 0 totalpages: 1024
zone(0): 0 pages.
zone(1): 1024 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/rom0
Calibrating delay loop... 12.97 BogoMIPS
Memory: 4MB = 4MB total
Memory: 2984KB available (832K code, 182K data, 40K init)
Dentry cache hash table entries: 512 (order: 0, 4096 bytes)
Inode cache hash table entries: 512 (order: 0, 4096 bytes)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 1024 (order: 0, 4096 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
Atmel USART driver version 0.99
ttyS0 at 0xfffd0000 (irq = 2) is a builtin Atmel APB USART
ttyS1 at 0xfffcc000 (irq = 3) is a builtin Atmel APB USART
Blkmem copyright 1998,1999 D. Jeff Dionne
Blkmem copyright 1998 Kenneth Albanowski
Blkmem 1 disk images:
0: 1400000-1507BFF [VIRTUAL 1400000-1507BFF] (RO)
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
SkyEye NE2k Ethernet driver version 0.2 (2003-04-27)
sene2k dev name: eth0: <6>NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 512 bind 512)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
VFS: Mounted root (romfs filesystem) readonly.
Shell invoked to run file: /etc/rc
Command: hostname GDB-ARMulator
Command: /bin/expand /etc/ramfs.img /dev/ram0
Command: mount -t proc proc /proc
mount: /etc/mtab: Read-only file system
Command: mount -t ext2 /dev/ram0 /var
mount: /etc/mtab: Read-only file system
Command: mkdir /var/tmp
Command: mkdir /var/log
Command: mkdir /var/run
Command: mkdir /var/lock
Command: cat /etc/motd
Welcome to
          ____ _  _
         /  __| ||_|                 
    _   _| |  | | _ ____  _   _  _  _
   | | | | |  | || |  _ \| | | |\ \/ /
   | |_| | |__| || | | | | |_| |/    \
   |  ___\____|_||_|_| |_|\____|\_/\_/
   | |
   |_|

GDB/ARMulator support by <davidm@snapgear.com>
For further information check:
http://www.uclinux.org/

Command: /bin/ifconfig eth0 up 192.168.2.224
Command:
Execution Finished, Exiting

host主机信息:
ifconfig
...
tap0      Link encap:Ethernet  HWaddr 00:FF:CF:65:5B:18  
          inet addr:192.168.2.223  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:356 (356.0 b)  TX bytes:42 (42.0 b)

ping 192.168.2.223
PING 192.168.2.223 (192.168.2.223) from 192.168.2.1 : 56(84) bytes of data.
Warning: time of day goes back, taking countermeasures.
64 bytes from 192.168.2.223: icmp_seq=0 ttl=64 time=895 usec
64 bytes from 192.168.2.223: icmp_seq=1 ttl=64 time=398 usec
64 bytes from 192.168.2.223: icmp_seq=2 ttl=64 time=367 usec

skyeye虚拟机信息:
ifconfig
eth0      Link encap:Ethernet  HWaddr 00:04:03:02:01:0F  
          inet addr:192.168.2.224  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING 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:100
          RX bytes:0 (0.0 iB)  TX bytes:0 (0.0 iB)
          Interrupt:16

ping 192.168.2.1
PING 192.168.2.1 (192.168.2.1): 56 data bytes
(nothing appear)

请问应该如何解决?

另外:skyeye上支持实际的串口操作吗?最多支持几个,谢谢

顶部
chyyuu
公社版主



UID 37477
精华 23
积分 1949
帖子 727
阅读权限 225
注册 2003-5-15
来自 China.gif
状态 离线
发表于 2004-7-26 23:16  资料  短消息  加为好友 
请问你能够通过主机ping 运行在skyeye上的操作系统吗?
你主机的防火墙关闭了吗?


skyeye可以把在内核上实现的消息输出到本机真实的串口上,如果你把两台机器通过适当的串口线联接起来,则在另一台机器的串口上(可通过windows的超级终端或linux的minicom)看到输出。注意,需要配置 skyeye.conf 的uart选项。

顶部
metop
新手上路
Rank: 1


UID 34273
精华 0
积分 20
帖子 8
阅读权限 10
注册 2003-5-4
来自 China.gif
状态 离线
发表于 2004-8-16 12:30  资料  短消息  加为好友 
主机的iptable和ipchain都没有启动,在10.*网络下可以Ping,在192.168网络下不能Ping
    [/list:u]

顶部
chyyuu
公社版主



UID 37477
精华 23
积分 1949
帖子 727
阅读权限 225
注册 2003-5-15
来自 China.gif
状态 离线
发表于 2004-8-16 21:29  资料  短消息  加为好友 
比较奇怪,我以前试过192.168.0.x 也成功过。
是否与你host机器的其它网络地址有混淆?
可以用tcpdump看看是否给tun发了包,以及在tun的内核模块中增加一些调试内容看看。
如果还有问题,我也无能为力了。

顶部
 


Powered by Discuz! 5.5.0  © 2001-2007 Comsenz Inc.
清除 Cookies - 联系我们 - 中国Linux公社 - WAP