Settings for the network environment of Ubuntu desktop settings

Source: Internet
Author: User

Settings for the network environment of Ubuntu desktop settings

Because of the expansion of wireless technology, in many cases, do not rely on the wired environment of Unicom and can achieve the needs of the network, such as in the library, in the laboratory, at the airport, Starbucks and so on. Although there are many times when you can use the default settings of the system, more often than not, you need to manually set it yourself, or even modify the configuration file.

In our laboratory network environment, is 4 non-line by seamless connection, one of the route forwarding signal, built 3 subnets. Due to the continuity of cheap routing, access to IP, not connected to the rounter of the situation occurs, so, it is necessary to set up the client computer, under win, can be said to be extremely simple, the mouse, Ping,ok. Under Ubuntu, it is necessary to learn a bit more about the settings of the network environment.

Set on the desktop, is relatively simple, similar to win. For wireless support, Network-manager do not good enough, and Wicd is good. Here the desktop settings, is based on WICD, set the way, and win similar, very simple.

$sudo apt-get Remove Network-manager

$sudo Apt-get Install Wicd

WICD management interface is quite affinity, at a glance, the use of the way is relatively simple, at the same time, the choice of settings is more comprehensive, a little bit about the TCP/IP understanding of people, should be able to set the success, as for the wireless encryption way, but also depends on the individual.

What needs to be said in detail is the question of how to configure network parameters with text. There are several setup parameters that need to be described in detail here.

First, we want to turn off network services:

$sudo/etc/init.d/networking Stop

Then close the network interface, using:

$sudo ifdown eth0(requires a closed NIC interface)

Then, we open /etc/network/interfaces This setup file, in general, there will be only two lines of parameters.

Auto Lo(starts the loopback, while Aoto means that the loopback is started when the system starts)
iface lo inet loopback(and Iface, the abbreviation for interface, refers to the meaning of the network interface, which is the logical interface, not the physical interface. So what's the difference between the two interfaces? Simply put, the physical interface, refers to your network card, plugged in the slot on the motherboard, and logic, is used for network communication, by the OS simulation interface. For example, under Linux, can be a network card, set up 2 different interfaces, for example, Eth0:1, and the network card, is the physical interface, the latter is set out Eth0:1, is the logical interface. If there are no special settings, then the physical interface will be the default logical interface. As for inet is the choice of network mode, including DHCP,STATIC,PPP, etc.)

And the above two lines, is the power on the time to automatically start the loopback, that is, when the OS starts, we all need a self-loopback, this is necessary.

Usually, we are all through the road to exchange packets (that is, the Internet), and a client, but also only a network card to communicate, in this case, divided into static IP and dynamic DHCP to obtain the IP, then we need to set up two different ways to surf the internet.

If we are using static IP to surf the internet, we need to add and modify it.

Auto Lo

Iface Lo inet Loopback

auto Eth0(ETH is the interface you use to surf the internet, what if it's a wireless card?). General correspondence is WLAN0, the same as below)

(Internet mode setting) (X is set to any one of 1-254, remove the address of the gateway): IP settings (subnet mask settings) (Y is the address of the gateway) so, if the router automatically assigned IP, that is, DHCP way to the Internet, hey, it is more simple.

Auto Lo

Iface Lo inet Loopback

Auto Eth0 (ETH is the interface you use to surf the internet, what if it's a wireless card?). General correspondence is WLAN0, the same as below)

Iface eth0 inet DHCP

Then, start the NIC,ifup eth0(or other). Start the network service again.

$ sudo/etc/init.d/networking Start

At this point, the simple desktop network setting is over. This section, in order to describe the accuracy, references Ubuntu manual, the Debian reference,linux network-manage,2010 version of the Ubuntu official reference manual, and some of the translation materials from the University of Taipei. If there is any understanding of the wrong place, please leave a message. Thank you


This article from "There is nothing, know in Providence" blog, please be sure to keep this source http://yangsj.blog.51cto.com/8702844/1712782

Settings for the network environment of Ubuntu desktop settings

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.