The Raspberry Pi, who had been playing for a while, had planned to make it into a small, no-line route, but the relationship between time and energy was never successfully made.
At the same time there are some arm development Board learning, suddenly one day found that the ARM board directly plug in the network cable can not be unable to surf the internet, but also think of the time to play Raspberry Pi configured over the Internet, at that time in order to let Raspberry Pi Internet, in a blog post to find the following content
WAN Configuration
The first thing to do when the system is installed is to get the Raspberry Pi on the Internet, and we'll use the BlackBerry's own network as a WAN port. There are two ways to surf the Internet: One is the LAN port of the router that connects the Raspberry Pi to the home, and if the home does not have a router, you can connect the router directly to the cell broadband for PPOE dial-up Internet. Here we use the first method (because the Raspberry Pi and the computer are in the same network segment, convenient access to the Luci management interface). Edit the network configuration file in the Putty serial input vi /etc/config/network
command. lan
the ifname
line is commented out. Then add a WAN port configuration.
# Copyright (C) 2006 OpenWrt.orgconfig interface loopback option ifname lo option proto static option ipaddr 127.0.0.1 option netmask 255.0.0.0config interface lan# option ifname eth0 option proto static option ipaddr 192.168.1.1 option netmask 255.255.255.0config interface wan option proto dhcp option ifname eth0
So as long as the Linux system, there should be a configuration network connection files, if not the Internet, the first should think of is to view this file content.
Linux systems installed on some machines may be designed to facilitate debugging, the network address will be set to static IP, so directly connected to the cable is not enough, to set the static IP to dynamic IP to the network.
What you can learn from the above code is that
Config interface Wan//first define an interface, WAN (WAN)
Option proto DHCP//set to get IP automatically (this is the key)
OPTION ifname eth0//Network card number
If you open the network configuration file and found that there is no such definition, you can directly write it up;
If you've already defined the eth0 or WAN, take a closer look at whether it's being set up as a static IP
Option Proto Static
At this point, you only need to change the static to DHCP, in the following IP such as: 192.168.1.23 and gateway, etc.
Save and restart the network
/etc/init.d/network
Is it possible to surf the Internet?
What to do if a device with a Linux system is installed