Lantronix EDS2100 Linux SDK - User Guide - Page 49
µClinux Networking, Introduction, Static Address Configuration
View all Lantronix EDS2100 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 49 highlights
8. µClinux Networking Introduction µClinux supports a full TCP/IP networking stack. Several networking protocols are supported through the kernel and various shell utilities. Networking is initialized on the target through the /etc/netstart script. DHCP The target can obtain an IP address automatically through the DHCP protocol. Two DHCP clients are supported, udhcpc and dhcpcd. Udhcpc is included as part of busybox and takes up less flash and RAM space. Dhcpcd is a standalone program with more options than udhcpc. The /etc/netstart script will attempt to start whichever one is present, starting with udhcpc. Select the client that best suits your needs. Static Address Configuration By default Linux will attempt to get an IP address through DHCP. To set a static address, perform the following steps on the target: 1. Use the vi text editor to create and edit /etc/netcfg. Note that by default etc/netcfg is a symlink to /usr/local/etc/netcfg. You can either delete this symlink and create /etc/netcfg, or make sure that the path to /usr/local/etc/netcfg exists. 2. Add lines to /etc/netcfg as follows: IPADDR= NETMASK= GATEWAY= 3. Reboot the target for the changes to take effect. NOTE: The static address in the dBUG configuration will also be updated during the reboot. DNS The target supports name resolution via the DNS protocol. The DNS configuration is found in /etc/resolv.conf. Linux Software Developers Kit (SDK) User Guide 49