Static IP settings in debian

Source: Internet
Author: User
In debian, static IP settings-Linux Release Technology-Debian information. See the following for details. Query
$ Man 5 interface
You can.

The following is an example:

Modify/etc/network/interfaces

Back up data first.

Cp/etc/network/interfaces/etc/network/interfacesbackup

Iface eth0 inet static

Address 192.168.0.16

Netmask 255.255.255.0

Gateway 192.168.0.1

Set the DNS server in/etc/resolv. conf,

Nameserver 192.168.0.1

# Because the gateway here is a DNS server, it is the same

Last reboot or #/etc/init. d/networking restart

Your own practice:

It turns out that my machine uses dhcp to dynamically specify IP addresses.

Iface eth0 inet dhcp

I copied the original ineterfaces to interfaces. dhcp

With the above modification, copy interfaces to interfaces. static

If static data is used:

$ Sudo ln-s/etc/network/interfaces/etc/netwok/interfaces. static
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.