Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to set up the ubuntu system network

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly shows you "how to set up the ubuntu system network". The content is simple and clear. I hope it can help you solve your doubts. Let the editor lead you to study and learn this article "how to set up the ubuntu system network".

Ubuntu system network configuration

The ubuntu system defaults that root users cannot log in and the password is empty.

If you want to log in using the root user, you must first set the password for the root user

Open the terminal, enter: sudo passwd root and press enter

You will be prompted for your password. Enter the password of the user you are logged in to after password:

Then you are prompted for a new UNIX password

Enter new UNIX password: enter the password you want to set for root here, twice

The system will be prompted for a successful password setting.

Finally, exit the terminal, restart the computer, select the place where the user enters the system, and select something else.

Then enter root and then enter the password of root to log in!

In fact, log in with an ordinary user and enter a command in the terminal: sudo-s-H can also switch to root permissions.

The Ubuntu network configuration is as follows:

Two network cards are connected to the Ubuntu, and the eth0 is the external network and the eth2 is the intranet.

IP on eth0 is automatically obtained.

Set manually on eth2

1. Open the / etc/network/interfaces file of Ubuntu. The default content is as follows:

Auto lo

Iface lo inet loopback

2. If you configure the Nic in DHCP mode, change it to:

Auto eth0

Iface eth0 inet dhcp

You can also enter the following command directly from the command line to get the address

Sudo dhclient eth0

3. If you want to configure a static IP address, you need to edit / etc/network/interfaces and enter the following lines (assuming your network card is eth0): sudo vi / etc/network/interfaces

# The primary network interface

Auto eth0

Iface eth0 inet static / / designated as static

Address 192.168.3.90 / / IP address

Gateway 192.168.3.1 / Gateway

Netmask 255.255.255.0 / / Subnet Mask

Network 192.168.3.0 / / this. The Internet? Is there any evenness?

Broadcast 192.168.3.255 / / is there a fair broadcast?

4. After editing the next steps and exiting, you need to restart your network device with the following command: sudo / etc/init.d/networking restar

5. Set the hostname of the Ubuntu network configuration system. Use the following command format to change the hostname of the system, or edit / etc/hostname sudo hostname newname directly.

6. Set DNS

Sudo vi / etc/resolv.conf

Enter the following details

Search test.com

Nameserver 192.168.3.2

The above describes the Ubuntu network configuration.

For your convenience, the script website has prepared a picture-and-text article for you.

I have to admit that the network setting of the Ubuntu system is the most concise and clear that the landlord has ever seen. If you have ever used Win7, you will be dwarfed by Ubuntu. In that case, this article will introduce the network settings under the Ubuntu system (linux deepin 11.06is used in Lou Zhu's big Acer).

Click the network symbol in the upper right corner, and then click the edit link to see the network settings. Divided into wired, wireless, mobile, VPN and DSL five items. Let's introduce them one by one.

I. Wired connection

How can I say this? as long as the cable is plugged in, it will be set up. It really can't be any simpler. Of course, this is only for networks that automatically obtain IP addresses. If your network needs to set up IP manually, it is also very simple, click the network connection icon in the upper right corner, edit the connection, then double-click your current cable connection, switch to the IPV4 interface, and then edit it.

Dial-up connections need to work with DSL. It is described in detail in DSL.

II. Wireless connection

Wireless connections can be divided into two types: first, wireless connections that connect to the Wifi. Second, build your own wireless connection.

If it is the first, click the network connection icon, select the Wifi you want to connect to, and then enter the password. If it is the second, click New in the Wireless Settings interface, and then set a password.

If you are using a wireless ChinaNet network, there are two situations. First, can open the web page, will automatically jump, and then enter the mobile phone number and so on, that basically does not need to do too much setting; second, the ChinaNet account bought from Taobao, such as the building master egg pain of Suzhou University home Internet access. Under windows, the ChinaNet is connected first, which prompts you to restrict the connection, then opens the broadband connection and dials through pppoe. This way has been mentioned in the article through the setting of DSL, first connect to ChinaNet and then click DSL to access the Internet, but the landlord has tried not, you can try or search to see.

III. Mobile broadband

Before setting up the mobile network, you need to make sure that your wireless network card driver is installed properly. Generally speaking, after installing the system, there is a cable available, wireless can not be used. Connect to the cable and download the wireless driver, that is, install the additional driver in the system settings. Insert your "pheasant network card", , is a "3G network card", click New in the mobile network interface, and then go all the way to the next step-b (the landlord does not have a "pheasant network card" now, but the landlord must have used it. It's mobile).

No, it's much better than installing the client first and then connecting to the Internet under windows. When the settings are complete, click the network connection icon in the upper right corner, select the 3G network you just set up, and you can go on. Disconnect the same principle.

IV. VPN

Select VPN, create, and follow the account number, password, host and other settings given to you by the company / school / institution. I will not repeat it here.

After networking, click the network connection icon, select vpn, and click on what you want.

V. DSL

This is the point. Some cable connections require DSL (that is, ADSL) to dial up the Internet. However, people can rest assured that the setup is also very simple. Just create a new one and enter your account and password. When connecting, connect the cable first, and then click the set DSL on it.

The above is all the contents of the article "how to set up the network of ubuntu system". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report