1. Ifconfig Lo 127.0.0.1
If the ping 127.0.0.1 is different, the loop is not set correctly.
You can view the LO option in Ifconfig-a (or ifconfig)
# ifconfig Lo Lo Link encap:local loopback inet addr:127.0.0.1 mask:255.0.0.0 up loopback RUNNING mtu:16436 metric:1 RX pa Ckets:2 errors:0 dropped:0 overruns:0 frame:0 TX packets:2 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 RX bytes:176 (176.0 b) TX bytes:176 (176.0 b)
This is normal, otherwise you need ifconfig lo 127.0.0.1 to set up Ping Tong 127.0.0.1
2. New/etc/hosts file (only modify if present)
The contents are as follows: 127.0.0.1 localhost
3. Establish/etc/resolv.conf (DNS domain name server IP configuration)
Content can be copy from PC Linux, because PC Linux and the Development Board need to link the Internet DNS domain name is the same
Sample content can be as follows:
# Generated by NetworkManager
NameServer 192.168.1.211
NameServer 192.168.1.213
NameServer 192.168.1.1
4. Establishment of/ETC/NSSWITCH.CONF
Content is copy from PC Linux.
The sample content is as follows:
# Example configuration of the GNU Name Service Switch functionality. # If You are have the ' glibc-doc-reference ' and ' info ' packages installed, try: # ' info libc ' Name Service Switch ' for inform ation about this file. Passwd:compat group:compat shadow:compat hosts:files mdns4_minimal [notfound=return] DNS mdns4 networks:files ls:db files services:db files ethers:db files rpc:db files Netgroup:nis
5. Configure Routing
First use route to see if the required gateways have been added
#route
Kernel IP Routing Table
Destination Gateway genmask Flags Metric Ref use Iface
192.168.6.0 * 255.255.255.0 U 0 0 0 eth0
You can learn that the current gateway is not being added
To add a route:
route add default GW 192.168.6.1
Now
#route
Kernel IP Routing Table
Destination Gateway genmask Flags Metric Ref use Iface
192.168.6.0 * 255.255.255.0 U 0 0 0 eth0
Default 192.168.6.1 0.0.0.0 UG 0 0 0 eth0
Through the above settings, the Development Board should be able to surf the Internet.
Of course, you can write it to the script, then every time you do not need to set up this
For example, you can add in/etc/profile