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

Re: ifconfig novamente



G.Paulo wrote:
Postei uma mensagem há dias relatando problemas com o ifconfig. Recebi várias respostas, mas ainda não tenho a solução "perfeita" para o problema. A questão é a seguinte:
    Toda vez que inicio o sistema a interface eth0 não é habilitada de início.
    Para obter uma conexão adls, tenho que digitar
    #ifconfig eth0 up
Recebi algumas sugestões e aqui vão os resultados:

1)
    Inserir as seguinte linhas no /etc/network/interfaces
    auto eth0
    ifce eth0 inet dhcp

Esta solução funciona, mas durante o boot aparece a mensagem
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7 (ou 9 ou 14 ou 21 etc)
Demora muito tempo (alguns minutos) até sair disso. Veja, não estou conectado a uma LAN, mas faço minha conexão via Velox com um modem adsl.

2)
Outra solução:
    update-rc.d -f networking start 20 2 3 4 5 .
Tambem não funciona. Esse script já está no init.d

3) Configurar como estático, conforme abaixo, parece tambem não ser uma boa idéia. iface eth0 inet static
        address 192.168.1.X
        netmask 255.255.255.0
        network 192.168.1.0
        broadcast 192.168.1.255

	Para ajudar, abaixo está a listagem do meu ifconfig após um #ifconfig eth0 up, e a conexão Velox.


[ ]'s, Paulo.

eth0      Link encap:Ethernet  HWaddr 00:0C:6E:C1:6F:C6
          inet6 addr: fe80::20c:6eff:fec1:6fc6/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:110 errors:0 dropped:0 overruns:0 frame:0
          TX packets:119 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:45372 (44.3 KiB)  TX bytes:12676 (12.3 KiB)
          Interrupt:193 Base address:0xb000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:185 errors:0 dropped:0 overruns:0 frame:0
          TX packets:185 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:11820 (11.5 KiB)  TX bytes:11820 (11.5 KiB)

ppp0      Link encap:Point-to-Point Protocol
          inet addr:200.164.142.196  P-t-P:200.217.50.120  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
          RX packets:82 errors:0 dropped:0 overruns:0 frame:0
          TX packets:82 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:41699 (40.7 KiB)  TX bytes:7902 (7.7 KiB)

Amigo, meu /etc/network/interfaces está assim no meu gateway:


# The loopback interface
auto lo
iface lo inet loopback

#auto eth0
#iface eth0 inet dhcp
#iface eth0 inet static
#       address 192.168.10.10
#       netmask 255.255.255.0
#       network 192.168.10.0
#       broadcast 192.168.10.255
#       gateway 192.168.10.1

auto eth1
iface eth1 inet static
        address 10.0.0.2
        netmask 255.0.0.0
        network 10.0.0.0
        broadcast 10.255.255.255


Observe que o eth0 está comentado. Pq? O próprio ppp liga o eth0. Pelo menos, no meu é tudo sozinho.

Confira os arquivos /etc/ppp/ppp_on_boot e /etc/ppp/peers/dsl-provider

--
Marcos



Reply to: