Debian network configuration file

Source: Internet
Author: User
Debian network configuration file-Debian information for the Linux release-the following is a detailed description. When debian is installed, the network configuration file/etc/network/interfaces is like this:

# This file describes the network interfaces available on your system
# And how to activate them. For more information, see interfaces (5 ).
# The loopback network interface
Auto lo
Iface lo inet loopback

Lo is a local loopback network, and all computers 127.0.0.1 refer to it. As for how to configure a fixed ip address on the internet, I wrote a few simple configurations in my blog earlier, however, I found that such configuration is very nonstandard after a period of exploration recently. Now I will write the detailed configuration of this file and its annotations for the reference of debian's friends and backup query by myself.

Notes:

1. For the primary network interface, I understand that it is either dhcp (Dynamic ip Access) or static ip Mode. Therefore, the two can only be configured. I am using the dhcp mode, so comment out the static IP settings. Maybe the two can be configured at the same time. If you are interested, try it.
2. Wireless Network Interfaces can only take effect after an intel or windows Driver is configured.

3. PPPoE is a broadband dialing method. It is the same as the static IP Mode on the Internet. I have no lab conditions, so I will not write out the configuration method to avoid misleading.

4. Another method is to use the 56 kbps telephone line for dial-up Internet access configuration, which should also be in dhcp mode, but I am very embarrassed to say that I have not configured it, I have never been able to drive the t41 built-in modem. This can be written after the driver is used.

# This file describes the network interfaces available on your system
# And how to activate them. For more information, see interfaces (5 ).
# This file is modified by Jackie on Apr 4 th, 2008.
#### LO ##########
# The loopback network interface (configure The loopback interface)
# Automatically activate lo at startup
Auto lo
# Configure the lo interface as a loopback interface
Iface lo inet loopback

##### DHCP #########
# The primary network interface (configure The primary network interface)
# Enable the eth0 interface automatically upon startup
Auto eth0
# Configure the eth0 interface to automatically obtain DHCP
Iface eth0 inet dhcp

#### Static IP ###
# The primary network interface (configure The primary network interface)
# Enable the eth0 interface automatically upon startup
# Auto eth0
# Configure the eth0 interface to set static IP addresses
# Iface eth0 inet static
# Address 128.1.1.94
# Netmask 255.255.255.0
# Gateway 192.168.20..1

##### WLAN #####
# The wireless network interface (configure The wireless network interface)
# Automatically activate the wlan0 interface upon startup
Auto wlan0
# Configure the wlan0 interface to automatically obtain DHCP
Iface wlan0 inet dhcp

#### PPPoE ####
# The PPPoE network interface (bandwidth interface configuration)
#
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.