Setting in Debian Network card

xiaoxiao2021-03-05  25

The settings of the DEBIAN network card can be performed through the / etc / network / interfaces file, which can be divided into three different configurations: DHCP automatic acquisition, static allocation IP address and PPPoE broadband dialing. The specific settings are as follows: Before confirming, first enter the / etc / network directory, edit the interfaces file:

Network card automatically gets IP address via DHCP # this file describes the network interface interfaces Available on your system

# and how to activiVate them. for more information, see interfaces (5).

#

# The loopback network interface interface;

#Toot automatic exclusive LO interface

Auto Lo

# Configure the LO interface as loopback

iface lo inet loopback

#

# The primary network interface interface

#Toot automatically activates Eth0 interface

Auto Eth0

# Configure the ETH0 interface to automatically get DHCP

iface eth0 inet dhcp

NIC Static Assign IP Address # this file describes the network interfaces available on your system

# and how to activiVate them. for more information, see interfaces (5).

#

# The loopback network interface interface;

#Toot automatic exclusive LO interface

Auto Lo

# Configure the LO interface as loopback

iface lo inet loopback

#

# The primary network interface interface

#Toot automatically activates Eth0 interface

Auto Eth0

# Configure the ETH0 interface to set the IP address statics

iface eth0 inet static

Address 10.16.3.99

Netmask 255.255.255.0

NetWork 10.16.3.0

Broadcast 10.16.3.255

Gateway 10.16.3.1

# DNS- * OPTIONS Are IMplement by The Resolvconf Package, IF Installed (DNS Settings)

DNS-NAMESERVERS 61.153.177.196 61.153.177.197

DNS-Search FireTeam.org

Network card for PPPOE Broadband Dial Configuration # this file describes the network interfaces available on Your System

# and how to activiVate them. for more information, see interfaces (5).

#

# The loopback network interface interface;

#Toot automatic exclusive LO interface

Auto Lo

# Configure the LO interface as loopback

iface lo inet loopback

#

# The primary network interface interface

#Toot automatically activates Eth0 interface

Auto Eth0

# Configure the ETH0 interface to set the IP address statics

iface eth0 inet static

Address 10.16.3.99

Netmask 255.255.255.0

NetWork 10.16.3.0

Broadcast 10.16.3.255

After the configuration is complete, restart your computer or network service to match the NIC. If PPPoE broadband dial is performed, the PPPOECONF command can be configured.

转载请注明原文地址:https://www.9cbs.com/read-34925.html

New Post(0)