netdemo ip and route table

Joel Sherrill <joel.sherrill@OARcorp.com> joel.sherrill at OARcorp.com
Thu Jan 24 14:48:31 UTC 2008


朱旭峰 wrote:
> 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 <http://192.168.1.1> UGS 0 0 0 rhine_eth1
> 192.168.1.0 <http://192.168.1.0> 255.255.255.0 <http://255.255.255.0>
> U 0 0 1 rhine_eth1
> 192.168.1.1 <http://192.168.1.1> UHL 1 0 1 rhine_eth1
>
Read the README with the test. This is a simple network application for
testing
purposes. It can only do a few things:

+ reply to pings
+ has echo servers on two sockets
+ can print statistics if you type "s" at the console

--joel
> and my computer's ip is 192.168.1.1 <http://192.168.1.1>, virtule
> machine's ip is 192.168.1.5 <http://192.168.1.5>, target board's ip is
> 192.168.1.4 <http://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 <http://192.168.1.4>", /* IP address */
> "255.255.255.0 <http://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 <http://localnet.com>", /* Domain name */
> " 192.168.1.1 <http://192.168.1.1>", /* Gateway */
> "192.168.1.1 <http://192.168.1.1>", /* Log host */
> {" 192.168.1.1 <http://192.168.1.1>" }, /* Name server(s) */
> {"192.168.1.1 <http://192.168.1.1>"},
>
> };
>
> Thanks for your attention.
>




More information about the users mailing list