Ubuntu server ipsettings

Source: Internet
Author: User

I recently encountered a problem when I used samba with ubuntu 8.10:

The server service cannot be used when the computer is restarted and the user's desktop is not logged on.
It was strange at first.

Solution:

(1) modify the IP address
Open/etc/network/interfaces

Terminal input: sudo gedit/etc/network/interfaces

Add the following statement:
Auto eth0
Iface eth0 inet static
Address xxx. xxx # IP address
Netmask xxx. xxx # Subnet Mask
Gateway xxx. xxx # gateway

For example:



(2) Modify DNS
How to modify the DNS address of an Eni
Sudo gedit/etc/resolv. conf (as shown in Figure)

 

VcmltZz0 = "1">

Add
Search localdomain
Nameserver 172.16.3.4 DNS to be modified
Nameserver 172.16.3.3 DNS



(3) The last step is also the most important step.
Add the command to restart the network configuration in rc. local:/etc/init. d/networking restart

For example:
 




In this way, it will be normal after restart.
I don't know why, but this is also a solution.

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.