Debian network settings

Source: Internet
Author: User
Debian network settings-Linux Release Technology-Debian information. See the following for details. Log on to the system as the root user and run the pppoeconf program to configure the ADSL connection.

The configuration program automatically detects the NIC.

Then, the system checks whether the ADSL cat is working properly. Because the installation is carried out in a virtual machine and I do not have the ADSL cat device, I cannot provide it for the time being. I will make it up later. However, configuration problems are very simple. You can select the default option. Pay attention to the account and password of the dial-up connection. It is worth noting that the question is whether to make a dial every time the system is started. If it is a monthly subscription, you can choose yes, which is more convenient. Another question is "whether to use dynamic DNS". To avoid manual DNS address writing, we recommend that you select "yes ". After the configuration is complete, the configuration program will ask "Dial now". Select "no" Here to exit the configuration program. (Selecting "yes" often causes the dialing program to lose response and affects the completion of the configuration program .) Run the following command:

# Pon dsl-provider

.

Users with static IP addresses can set the network as follows:

# Ifconfig eth0 down

# Ifconfig eth0 192.168.1.20 up

# Route add default gw 192.168.1.1

Here 192.168.1.20 is the IP address of the NIC, and 192.168.1.1 is the gateway. You can modify it according to the actual situation. The above three-line command settings are only valid this time. In order not to reconfigure the NIC address in the future, use the nano editor to open the NIC configuration file:

# Nano/etc/network/interfaces

Then add the following lines:
# The primary network interface

Auto eth0
Iface eth0 inet static
Address 192.168.1.20
Netmask 255.255.255.0
Gateway 192.168.1.1

After editing, press Ctrl + o to save and press Ctrl + x to exit.

If the IP address is obtained through DHCP, you can set the network as follows:

# Ifocnfig eth0 down

# Ifconfig eth0 up

In this case, the required network parameters should be automatically obtained. When editing the interfaces file, write as follows:

Auto eth0

Iface eth0 inet dhcp

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.