Como configurar mais de uma interface de rede no Solaris
Colaboração: Elaine Cristina Franchini
Data de Publicação: 31 de Abril de 2004
Solaris 8
- Obtendo informacoes sobre todas as interfaces de rede :
# ifconfig -a lo0: flags=849<UP,LOOPBACK,RUNNING,MULTICAST> mtu 8232 inet 127.0.0.1 netmask ff000000 hme0: flags=843<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.10.3 netmask ffffffc0 broadcast 192.168.10.63 ether 8:0:20:b0:c:a0
- Configurando a segunda interface de rede hme0:1 (A lo0 e' o loopback) :
# ifconfig hme0:1 192.168.10.13 plumb # ifconfig hme0:1 192.168.10.13 netmask 255.255.255.255 up
- Verificando novamente as interfaces :
lo0: flags=849<UP,LOOPBACK,RUNNING,MULTICAST> mtu 8232 inet 127.0.0.1 netmask ff000000 hme0: flags=843<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.10.3 netmask ffffffc0 broadcast 192.168.10.63 ether 8:0:20:b0:c:a0 hme0:1: flags=843<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.10.13 netmask ffffffff broadcast 192.168.10.13
- Para desabilitar a segunda interface de rede : (caso seja necessario !!)
# ifconfig hme0:1 192.168.10.13 down # ifconfig hme0:1 192.168.10.13 unplumb
- Para manter a segunda interface de rede apos o boot da maquina, e' preciso acrescentar a linhas no final do script /etc/rc2.d/S69inet : (faça uma copia de seguranca do script antes !!!)
- Configurando a segunda interfaca de rede hme0:1
ifconfig hme0:1 192.168.10.13 plumb ifconfig hme0:1 192.168.10.13 netmask 255.255.255.255 up
==Solaris 7== - Obtendo informacoes sobre todas as interfaces de rede :
# ifconfig -a lo0: flags=849<UP,LOOPBACK,RUNNING,MULTICAST> mtu 8232 inet 127.0.0.1 netmask ff000000 hme0: flags=843<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.10.3 netmask ffffffc0 broadcast 192.168.10.63 ether 8:0:20:b0:c:a0
- Configurando a segunda interface de rede hme0:1 (A lo0 e' o loopback) :
# ifconfig hme0:1 192.168.10.13 netmask 255.255.255.255 up
- Verificando novamente as interfaces :
lo0: flags=849<UP,LOOPBACK,RUNNING,MULTICAST> mtu 8232 inet 127.0.0.1 netmask ff000000 hme0: flags=843<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.10.3 netmask ffffffc0 broadcast 192.168.10.63 ether 8:0:20:b0:c:a0 hme0:1: flags=843<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.10.13 netmask ffffffff broadcast 192.168.10.13
- Para desabilitar a segunda interface de rede : (caso seja necessario !!)
# ifconfig hme0:1 192.168.10.13 down
- Para manter a segunda interface de rede apos o boot da maquina, e' preciso acrescentar a linhas no final do script /etc/rc2.d/S69inet : (faça uma copia de seguranca do script antes !!!)
- Configurando a segunda interfaca de rede hme0:1
ifconfig hme0:1 192.168.10.13 netmask 255.255.255.255 up