.Conf
» » » interfaces
interfaces
10/02/2010
Arquivo de configuração de rede
Categoria:
Software: ifconfig, iproute
[ Hits: 12490 ]
Exemplo de configuração do arquivo interface. Esse arquivo é responsável por manter as configurações de rede. Seu caminho completo é /etc/networks/interfaces.
# 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
# The primary network interface
auto eth0 # Levanta o dispositivo de rede
iface eth0 inet static
address 192.168.0.25 #Endereço IP
netmask 255.255.255.0 # Mascara da rede
gateway 192.168.0.1 # Gateway padrão
auto eth1 # Levanta o dispositivo de rede
iface eth1 inet static
address 192.168.1.25 #Endereço IP
netmask 255.255.255.0 # Mascara da rede
Comentários
Nenhum comentário foi encontrado.