Ipconfig/all
Route print shows all of the network on this machine
What is a gatewaySo what exactly is a gateway? A gateway is essentially an IP address of a network to another network. For example, network A and network B, network A's IP address range is "192.168.1.1~192." 168.1.254 ", the subnet mask is 255.255.255.0; The IP address range for Network B is" 192.168.2.1~192.168.2.254 "and the subnet mask is 255.255.255.0. In the absence of a router, TCP/IP communication between the two networks is not possible, even if the two network connections on the same switch (or hub), the TCP/IP protocol will determine the subnet mask (255.255.255.0) on the two network hosts in a different network. To achieve communication between the two networks, you must pass through the gateway. If the host in Network a discovers that the destination host for the packet is not on the local network, forwards the packet to its own gateway, which is then forwarded by the gateway to Network B's gateway, and the gateway of Network B is forwarded to a host on network B. The same is true of network B's process of forwarding packets to network A. So, only set up the IP address of the gateway, the TCP/IP protocol can realize the mutual communication between different networks. So which IP address is the IP address of the machine? The IP address of the gateway is the IP address of the device with routing capabilities, a router with routing capabilities, a server with a routing protocol enabled (essentially a router), and a proxy server (also equivalent to a router).ISE14.7 Build lwIPfirst we need to know, in the Zedboard Ech is hanging on the cortex-a9, Zedboard on the Rgmii interface with the 1000M PHY chip. With PHY we have hardware support, like we cook with a pot. By the way, Rgmii is a streamlined gigabit Gigabit Media Standalone interface. Http://baike.baidu.com/view/1030176.htm?fr=aladdin
3 mac and PHYwith PHY, it is well known that there are up to 7 layers in the network ISO model. The lowest two tiers are Mac and PHY, the data link and the physical interface layer.
that is not we also need to have a Mac chip, in principle is needed, but do not worry, in Zynq A9, has been done to us, and can implement the Rgmii interface (one to accept a send)
4 using the ISE SDK to generate LWIPNow that we have PHY and Mac, what do we need to do? We need to do the data encapsulation, the application of writing AH. Otherwise our data message is how to come, is through lwIP for Mac, IP, and so on packet.
using an empty EDK project to import into the SDK, why empty engineering, because we do not need the PL side of the peripheral. Create a application project and select the LWIP service template. Specific projects can refer to the CTT zedboard:zynq-7000 AP SoC Concepts, Tools, and Techniques A hands-on guide to effective Embedded System D Esign or the Xilinx workshops Embedded_system_design_flow_using_zynq Http://china.xilinx.com/support/university/profes Sors.html
then compile and debug:
Note: Be sure to set the IP address and computer host the same sub-IP, such as my host is 192.168.0.101, then Zedboard can be set to 192.168.0.xxxhere is a service that connects the Zedboard network cable to a common route on the PC. Install a network debugging assistant on the host computer. I'm using a http://download.csdn.net/detail/xiabodan/7652995 downloaded online.
Zedboard is to accept the data sent by the PC client and then immediately return it to the PC, so we see the data received and the data sent. Reference:Http://blog.chinaunix.net/uid-20528014-id-3050217.html
http://china.xilinx.com/support/university/index.htmhttp://china.xilinx.com/support/university/professors.html Xilinx University Program Workshops
datasheet:lightweight IP (lwIP) application Examplesxapp1026 Https://secure.xilinx.com/webreg/clickthrough.do?cid=107743.zip
Zedboard-Lightweight Ethernet controller LWIP