netdemo ip and route table
朱旭峰
fall4ufeng at gmail.com
Wed Jan 23 09:59:06 UTC 2008
hi:
when i test the netdemo routine , but there is nothing happen after
the console
print the information :
Destination Gateway/Mask/Hw Flags Refs Use
Expire Interface
default 192.168.1.1 UGS 0
0 0 rhine_eth1
192.168.1.0 255.255.255.0 U 0 0
1 rhine_eth1
192.168.1.1 UHL 1
0 1 rhine_eth1
and my computer's ip is 192.168.1.1, virtule machine's ip is
192.168.1.5, target board's ip is 192.168.1.4
Here is my networkconfig.h
static struct rtems_bsdnet_ifconfig netdriver_config = {
"rhine_eth1", /* name */
rtems_rhine_driver_attach, /* attach function */
NULL, /* No
more interfaces */
"192.168.1.4", /*
IP address */
"255.255.255.0", /*
IP net mask */
NULL,
/* Driver supplies hardware address */
0 /* Use
default driver parameters */
};
/*
* Network configuration
*/
struct rtems_bsdnet_config rtems_bsdnet_config = {
&netdriver_config,
NULL,
100, /* Default network task priority
*/
128*1024, /* Default mbuf capacity */
256*1024, /* Default mbuf cluster
capacity */
"rtems_host", /* Host name */
"localnet.com", /* Domain name */
"192.168.1.1", /* Gateway */
"192.168.1.1", /* Log host */
{"192.168.1.1" }, /* Name server(s) */
{"192.168.1.1"},
};
Thanks for your attention.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20080123/c1c643b7/attachment.html>
More information about the users
mailing list