martes, 3 de abril de 2012

interfaz de red debian 6


en este archivo se agregan la interfaces

root@xxx:~# cat /etc/network/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
allow-hotplug eth0
iface eth0 inet static
address 172.30.10.66
netmask 255.255.255.0
network 172.30.10.0
broadcast 172.30.10.255
gateway 172.30.10.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 193.0.0.127
dns-search liconsa.gob.mx

allow-hotplug eth5
iface eth5 inet static
address 172.30.10.72
netmask 255.255.255.0
network 172.30.10.0
broadcast 172.30.10.255
gateway 172.30.10.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 193.0.0.127
dns-search liconsa.gob.mx

cuando hice cambio a la interface eth0 y reinicie la interface de red , no me tomaba los cambios
# /etc/init.d/networking stop
# /etc/init.d/networking start
ejecutaba el comando ifconfig y el eth0 seguia apareciendo con la ip anterior , despues ejecute el siguiente comando y tomo el cambio en el eth0
# ifup eth0
# ifconfig #veras en cambio
Agregue la interface eth5
# gedit interfaces
y aplique el mismo procedimiento anterior y funciono
# ifup eth5


No hay comentarios: