adsense colado

Páginas

quinta-feira, 25 de abril de 2013

Configurar Rede Estática com IPv4 e IPv6 no linux

Configurar Rede Estática com IPv4 e IPv6 no linux

No Debian

#vim /etc/network/interfaces

dentro do arquivo adicione ou altere
----------------------------------------------
auto eth0
iface eth0 inet static
address 192.168.0.1 #aqui você coloca o ip
netmask 255.255.255.0 #mascara de rede
network 192.168.0.0
broadcast 192.168.0.255
gateway #se necessario

# configuração ipv4 mapeado em ipv6
iface eth0 inet6 static
address ::192.168.0.1 #ipv6
netmask 96 #mascara 
-------------------------------------------

Reinicie a rede
#service networking restart

_______________________________________________

No Centos

Ative o ipv6
#vim /etc/sysconfig/network

adicione ou altere para yes
--------------------------------
NETWORKING_IPV6=yes
--------------------------------

#vim /etc/sysconfig/network-scripts/ifcfg-eth0

dentro do arquivo adicione ou altere
----------------------------------------------------------------------------
DEVICE="eth0"
BOOTPROTO="static"
ONBOOT="yes"
HWADDR=XX:XX:XX:XX:XX:XX #mac de sua placa de rede
IPADDR=192.168.0.2 #ipv4
NETMASK=255.255.255.0 #mascara
GATEWAY= #gateway ipv4
IPV6INIT="yes"
IPV6ADDR= ::192.168.0.2/96 #ipv4 mapeado em ipv6 e /96 mascara
IPV6_DEFAULTGW= #gateway ipv6
----------------------------------------------------------------------------

Depois reinicie a rede
#service network restart