Hello all!<br>I want to use two ethernet interfaces with IP addresses in one subnet. Configuration part of my program is below.<br><br>extern void rtems_bsdnet_loopattach();<br>static struct rtems_bsdnet_ifconfig loopback_config =
<br>{<br> "lo0", /* name */<br> (int (*)(struct rtems_bsdnet_ifconfig *, int))rtems_bsdnet_loopattach,<br> NULL, /* link to next interface */<br> "<a href="http://127.0.0.1">
127.0.0.1</a>", /* IP address */<br> "<a href="http://255.0.0.0">255.0.0.0</a>", /* IP net mask */<br>};<br>static struct rtems_bsdnet_ifconfig eth1_config =<br>{<br> "eth1", /* name */
<br> rtems_vmac_attach, /* attach (FPGA EMAC) */<br> &loopback_config, /* link to next interface */<br> <a href="http://192.168.1.48">192.168.1.48</a>, /* IP address */
<br> "<a href="http://255.255.255.0">255.255.255.0</a>", /* IP net mask */<br> ethernet_address1, /* Ethernet hardware address */<br> 0<br>};<br>static struct rtems_bsdnet_ifconfig eth0_config =
<br>{<br> "eth0", /* name */<br> RTEMS_BSP_NETWORK_DRIVER_ATTACH, /* attach (ARM EMAC) */<br> ð1_config, /* link to next interface */<br> <a href="http://192.168.1.47">
192.168.1.47</a>, /* IP address */<br> "<a href="http://255.255.255.0">255.255.255.0</a>", /* IP net mask */<br> ethernet_address0, /* Ethernet hardware address */
<br> 0<br>};<br>struct rtems_bsdnet_config rtems_bsdnet_config =<br>{<br> ð0_config, /* Network interface */<br> NULL, /* Use fixed network configuration */<br> 0, /* Default network task priority */
<br> 128*1024, /* Default mbuf capacity */<br> 256*1024, /* Default mbuf cluster capacity */<br> "testSystem", /* Host name */<br> "<a href="http://nowhere.com">nowhere.com
</a>", /* Domain name */<br> "",<br> "", /* Log host */<br> {""}, /* Name server(s) */<br> {""} /* NTP server(s) */
<br>};<br><br>(ethernet_address0 and ethernet_address1 are different)<br>But i got following error: "Can't set eth1 address: File exists"<br>And after that eth0 working only.<br>Help me, please.<br><br>Thanks.
<br><br>