关于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/offmac=xx:xx:xx:xx:xx:xxethmod=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 (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 <[email protected]>
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:EthernetHWaddr 00:FF:CF:65:5B:18
inet addr:192.168.2.223Bcast:192.168.2.255Mask:255.255.255.0
UP BROADCAST RUNNING MULTICASTMTU:1500Metric: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:EthernetHWaddr 00:04:03:02:01:0F
inet addr:192.168.2.224Bcast:192.168.2.255Mask:255.255.255.0
UP BROADCAST RUNNING MULTICASTMTU:1500Metric: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上支持实际的串口操作吗?最多支持几个,谢谢 请问你能够通过主机ping 运行在skyeye上的操作系统吗?
你主机的防火墙关闭了吗?
skyeye可以把在内核上实现的消息输出到本机真实的串口上,如果你把两台机器通过适当的串口线联接起来,则在另一台机器的串口上(可通过windows的超级终端或linux的minicom)看到输出。注意,需要配置 skyeye.conf 的uart选项。 主机的iptable和ipchain都没有启动,在10.*网络下可以Ping,在192.168网络下不能Ping 比较奇怪,我以前试过192.168.0.x 也成功过。
是否与你host机器的其它网络地址有混淆?
可以用tcpdump看看是否给tun发了包,以及在tun的内核模块中增加一些调试内容看看。
如果还有问题,我也无能为力了。
页:
[1]