[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Interface virtual



Davi Vercillo Carneiro Garcia escreveu:
Eu nao tenti desse jeito pois eu quero que a minha interface virtual
pegue o endereço pelo DHCP. Seria possivel ?

Miguel Da Silva escreveu:

auto eth0
iface eth0 inet static
         address 192.168.1.67
         netmask 255.255.255.0
         network 192.168.1.0
         broadcast 192.168.1.255
         gateway 192.168.1.1
         dns-search dominio.com

auto eth0:0
iface eth0:0 inet static
         address 192.168.1.67
         netmask 255.255.255.0
         network 192.168.1.0
         broadcast 192.168.1.255
         gateway 192.168.1.1
         dns-search dominico.com

Substitua a eth0:0 comentada acima pelo Miguel com o conteúdo abaixo:
allow-hotplug eth0:0
iface eth0:0 inet dhcp

Dessa forma a eth0 ficará com IP fixo e a eth0:0 ficará com IP dinâmico.

Att,
Renato



Reply to: