[Tutorial] using a network cable for direct connection, cubieboard shares the computer's WiFi

Source: Internet
Author: User

On my first day, I took my laptop and my CB back to my hometown. I encountered the following scenario, so I wrote this tutorial.

My sister-in-law's house is downstairs. I live on the 5th floor, while my sister-in-law lives on the 4th floor. Her house has network and wireless routes. I use my own book to access the Internet in my house on the 5th floor at night, I was connected to the Internet, but my CB didn't have a wireless network card and a network cable, but I didn't want to keep CB in their home, so I wanted to share the network of my computer with CB, the tool is a network cable.

Yes, you are not mistaken. It means that the two ends of a network cable are connected to two devices. There is no route, and no special network cable is required. It is just a normal network cable (if you do not have a network cable, so... As long as 799, please pick up your phone and order it !).

Think of the previous server in the company, too lazy to connect to the route, directly two servers (both dual Nic) network cable connection and then bridge.

My environment: win7 64-bit (PC) linaro (cubieboard)
First, you need to connect the CB debugging line to the computer, and then connect to the comport to configure your CB linaro (I like to use Putty to connect to the comport ). First, confirm that you have installed the wire driver.
 

View the IP address and gateway of your computer (my IP address is 192.168.1.103, and my IP address is 192.168.1.1 ). Find the corresponding COM port, connect the SSH client to CB, configure eth0 as a static IP address, and configure it with the same network segment as your computer (I configured 192.168.1.99). The operation is as follows:
 

Updated on November 10,: no comments are required for auto eth0.

VI/etc/Network/interfaces
Edit the configuration file and modify the eth0 configuration:
Auto eth0
Iface eth0 Inet static
Address 192.168.1.99 # Set the IP address of CB.
Gateway 192.168.1.1 # change this to your gateway address
Netmask 255.255.255.0

Then plug in the network cable. You can also plug it in before. Now you can see that the local connection is getting the address. Press ctrl to select your wireless connection and local connection, right-click and select "bridge"
 


After the bridge is completed, a "bridge" will be generated"
 

Restart the network on CB: service networking restart
Enable eth0: IFUP eth0
Check if your IP address is the IP address you configured in ifconfig. If not, restart CB and then IFUP eth0.
 

If nothing happens, your IP address is correct and you can ping the Internet ~ Congratulations, you can unplug the debugging line and connect it to IOT platform through an IP address.
 

Happy Spring Festival ~


Original article windland
Http://forum.cubietech.com/forum.php? MoD = viewthread & tid = 132 & extra = Page % 3d2

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.