[Skyeye-developer] 主机和虚拟网络通信

Ray Chen chenrano2002 at 163.com
Sat Apr 5 17:51:52 CST 2008


我在fedora8环境下编译linux kernel 2.6.14。 initrd.img 用的是
skyeye-testsuite-2.3/linux/s3c2410/s3c2410x-2.6.14/initrd.img
用skyeye1.2.4模拟s3c2410运行。

参考文档:http://www.linuxfans.org/bbs/thread-182384-1-1.html

现在skyeye已经成功运行。在主机fedora8下面运行ifconfig
[ray at localhost s3c2410]$ ifconfig 
eth134    Link encap:Ethernet  HWaddr 00:00:6C:D8:F4:FB  
          inet addr:192.168.0.132  Bcast:192.168.0.255
Mask:255.255.255.0
          inet6 addr: fe80::200:6cff:fed8:f4fb/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9855 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10592 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:7382301 (7.0 MiB)  TX bytes:1527025 (1.4 MiB)
          Interrupt:220 Base address:0x2000 

lo        Link encap:Local 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:9646 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9646 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:3061492 (2.9 MiB)  TX bytes:3061492 (2.9 MiB)

tap0      Link encap:Ethernet  HWaddr 00:FF:A1:02:77:72  
          inet addr:10.0.0.1  Bcast:10.255.255.255  Mask:255.0.0.0
          inet6 addr: fe80::2ff:a1ff:fe02:7772/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:0 (0.0 b)  TX bytes:90 (90.0 b)

然后skyeye下运行ifconfig
/ $ ifconfig 
eth0      Link encap:Ethernet  HWaddr 08:00:3E:26:0A:5B  
          inet addr:10.0.0.2  Bcast:10.255.255.255  Mask:255.0.0.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:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:53 Base address:0x300 

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: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)


我在fedora8下面可以ping通虚拟网卡eth0(10.0.0.2),但是反过来在skyeye虚拟环
境下ping不通
eth134(192.168.0.132). 主机如何和skyeye用过TCP/IP通信??????

有人说增加一条  destination 192.168.0.132 nexthop 10.0.0.1的路由,具体命
令怎么写????







More information about the Skyeye-developer mailing list