Configuração da rede eth0 com dhcp e o eth1 com ip static no debian
ifconfig -a #para mostrar todas as placas de rede#
editar
# nano /etc/nertwork/interfaces
##copie##
# 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
allow-hotplug eth0
iface eth0 inet dhcp
auto eth1
allow-hotplug eth1
# Static IP address
iface eth1 inet static
address 10.1.1.1
netmask 255.255.255.0
network 10.1.1.0
broadcast 10.1.1.255
gateway 10.1.1.1
##ate aqui##
para salvar o arquivo do nano tecle Ctrl+X e tecle S - Enter para sair
agora vamos reiniciar todas as placas de rede para ativar
# /etc/init.d/networking restart
mostrar todas as placas ativas
ifconfig
obs:
Placa 1 como NAT
Placa 3 como rede interna
no virtual box
Nenhum comentário:
Postar um comentário