Embedded Linux development environment set up (I.)--Network setup of dual NIC

Source: Internet
Author: User

Embedded Linux development environment set up (I.)--Network setup of dual NIC


One, the Linux distribution version is ubuntu-14.04.4-server-amd64 version

Install Ubuntu

Second, network settings

1. Add a dual NIC to the virtual machine

eth0 Bridging the wireless card for Ubuntu Internet, eth1 Bridging the Wired network card is used to connect the development Board. The eth0 and eth1 nic settings are as follows:


650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/82/08/wKioL1dIG3DT0fS0AABt3jPe7CY935.png-wh_500x0-wm_3 -wmp_4-s_3699648245.png "style=" Float:none; "title=" Picture 1.png "alt=" Wkiol1dig3dt0fs0aabt3jpe7cy935.png-wh_50 "/>

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M02/82/09/wKiom1dIGnmheBkiAABx1XIkNRU942.png-wh_500x0-wm_3 -wmp_4-s_1024148197.png "style=" Float:none; "title=" Picture 2.png "alt=" Wkiom1dignmhebkiaabx1xiknru942.png-wh_50 "/>

2. Set up the network

Check the network card first: ifconfig | More

if the eth0, eth1 network card is not displayed, use ifconfig eth0 up;ifconfig eth1 up to activate the NIC Eth0, eth1. Re-use ifconfig | More view, this shows Eth0, Eth1 NIC.

Modify the configuration file/etc/network/interfaces.

Add eth0, eth1 settings at the end of a file

Auto Eth0
Iface eth0 inet Static
address 192.168.0. 201
Gateway 192.168.0.1

Netmask 255.255.255.0

Network 192.168.0.0

Dns-nameservers 61.166.150.123
Auto ETH 1
Iface ETH 1 inet Static
address 192.168.0. 201

Netmask 255.255.255.0

Network 192.168.6.0
Dns-nameservers 61.166.150.123

Modify the DNS configuration file/etc/resolv.conf

NameServer 61.166.150.123

Shutting down the firewall

UFW dissble

Restart the NIC

/etc/init.d/networking restart


Installing OpenSSH

Apt-get Install Openssh-server

configuration file: /etc/ssh/sshd_config


You can now connect to Linux using SECURECRT and so on.


If you are still not connected to the network at this time, consider rebooting the system reboot



Note: Gateway can only be set one, wireless network card connected to the Internet, need to set the gateway, wired network card Connection Development Board cannot set the gateway







This article is from the "Tianshan Old Demon" blog, please be sure to keep this source http://9291927.blog.51cto.com/9281927/1783898

Embedded Linux development environment set up (I.)--Network setup of dual NIC

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.