3

Я установил CentOS, но он не подключился к Интернету автоматически. Это нормальное поведение? У меня есть Ethernet широкополосный маршрутизатор DI-604 и кабельный модем серии WebStar DPX2203 с EMTA. Что я должен сделать, чтобы подключиться к Интернету?

Обновить:

Двоюродный брат сказал мне, что мой сетевой адаптер или сетевая плата будут зависеть от моей материнской платы. В документе об обновлении моего компьютера говорится, что материнская плата - это встроенное видео в формате GBabyte. Я слышал, что сетевые адаптеры GBabyte - это GBabit или Realtek.

В CentOS, Система -> Администрирование -> Сеть -> Новый -> Ethernet, во-первых, была указана только "Другая сетевая плата", поэтому я выбрал ее и нажал "Далее", тогда не было GBabit, но был Realtek, поэтому я выбрал Realtek.

Я слышал, когда Net Virtua выбрала dhcp, то, что ответило первым, попросило меня сказать, что первый ответчик автоматически настроен.

Поэтому я попробовал Realtek с dhcp , но eth0 не был найден.

Смотри звездочки:

в то время мы не обновлялись, материнская плата - Asus. /sbin/lspci -v показывает, что контроллером Ethernet является Atheros L2, подсистемой является Asustek.

вывод ifconfig:

lo    Link encap:Loopback Local  
      inet end.: 127.0.0.1  Masc:255.0.0.0
      endereço inet6: ::1/128 Escopo:Máquina
      UP LOOPBACKRUNNING  MTU:16436  Métrica:1
      RX packets:2509 errors:0 dropped:0 overruns:0 frame:0
      TX packets:2509 errors:0 dropped:0 overruns:0 carrier:0
      colisões:0 txqueuelen:0 
      RX bytes:2650372 (2.5 MiB)  TX bytes:2650372 (2.5 MiB)

virbr0    Link encap:Ethernet  Endereço de HW 00:00:00:00:00:00  
      inet end.: 192.168.122.1  Bcast:192.168.122.255  Masc:255.255.255.0
      endereço inet6: fe80::200:Firefox:fe00:0/64 Escopo:Link
      UP BROADCASTRUNNING MULTICAST  MTU:1500  Métrica:1
      RX packets:0 errors:0 dropped:0 overruns:0 frame:0
      TX packets:43 errors:0 dropped:0 overruns:0 carrier:0
      colisões:0 txqueuelen:0 
      RX bytes:0 (0.0 b)  TX bytes:7306 (7.1 KiB)

xenbr0    Link encap:Ethernet  Endereço de HW 00:00:00:00:00:00  
      UP BROADCASTRUNNING NOARP  MTU:1500  Métrica:1
      RX packets:0 errors:0 dropped:0 overruns:0 frame:0
      TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
      colisões:0 txqueuelen:0 
      RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

выходной сигнал клиента:

bash: /sbin/dhclien: Arquivo ou diretório não encontrado
[root@localhost deltrem]# /sbin/dhclient
Internet Systems Consortium DHCP Client V3.0.5-RedHat
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

/sbin/dhclient-script: configuration for xenbr0 not found. Continuing with defaults.
/etc/sysconfig/network-scripts/network-functions: line 78: xenbr0: Arquivo ou diretório não encontrado
/sbin/dhclient-script: configuration for veth3 not found. Continuing with defaults.
/etc/sysconfig/network-scripts/network-functions: line 78: veth3: Arquivo ou diretório não encontrado
/sbin/dhclient-script: configuration for vif0.3 not found. Continuing with defaults.
/etc/sysconfig/network-scripts/network-functions: line 78: vif0.3: Arquivo ou diretório não encontrado
/sbin/dhclient-script: configuration for veth2 not found. Continuing with defaults.
/etc/sysconfig/network-scripts/network-functions: line 78: veth2: Arquivo ou diretório não encontrado
/sbin/dhclient-script: configuration for vif0.2 not found. Continuing with defaults.
/etc/sysconfig/network-scripts/network-functions: line 78: vif0.2: Arquivo ou diretório não encontrado
/sbin/dhclient-script: configuration for veth1 not found. Continuing with defaults.
/etc/sysconfig/network-scripts/network-functions: line 78: veth1: Arquivo ou diretório não encontrado
/sbin/dhclient-script: configuration for vif0.1 not found. Continuing with defaults.
/etc/sysconfig/network-scripts/network-functions: line 78: vif0.1: Arquivo ou diretório não encontrado
/sbin/dhclient-script: configuration for veth0 not found. Continuing with defaults.
/etc/sysconfig/network-scripts/network-functions: line 78: veth0: Arquivo ou diretório não encontrado
/sbin/dhclient-script: configuration for vif0.0 not found. Continuing with defaults.
/etc/sysconfig/network-scripts/network-functions: line 78: vif0.0: Arquivo ou diretório não encontrado
/sbin/dhclient-script: configuration for virbr0 not found. Continuing with defaults.
/etc/sysconfig/network-scripts/network-functions: line 78: virbr0: Arquivo ou diretório não encontrado
Listening on LPF/xenbr0/00:00:00:00:00:00
Sending on   LPF/xenbr0/00:00:00:00:00:00
Listening on LPF/veth3/00:00:00:00:00:00
Sending on   LPF/veth3/00:00:00:00:00:00
Listening on LPF/vif0.3/fe:Firefox:Firefox:Firefox:Firefox:Firefox
Sending on   LPF/vif0.3/fe:Firefox:Firefox:Firefox:Firefox:Firefox
Listening on LPF/veth2/00:00:00:00:00:00
Sending on   LPF/veth2/00:00:00:00:00:00
Listening on LPF/vif0.2/fe:Firefox:Firefox:Firefox:Firefox:Firefox
Sending on   LPF/vif0.2/fe:Firefox:Firefox:Firefox:Firefox:Firefox
Listening on LPF/veth1/00:00:00:00:00:00
Sending on   LPF/veth1/00:00:00:00:00:00
Listening on LPF/vif0.1/fe:Firefox:Firefox:Firefox:Firefox:Firefox
Sending on   LPF/vif0.1/fe:Firefox:Firefox:Firefox:Firefox:Firefox
Listening on LPF/veth0/00:00:00:00:00:00
Sending on   LPF/veth0/00:00:00:00:00:00
Listening on LPF/vif0.0/fe:Firefox:Firefox:Firefox:Firefox:Firefox
Sending on   LPF/vif0.0/fe:Firefox:Firefox:Firefox:Firefox:Firefox
Listening on LPF/virbr0/00:00:00:00:00:00
Sending on   LPF/virbr0/00:00:00:00:00:00
Sending on   Socket/fallback
DHCPDISCOVER on xenbr0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on veth3 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on vif0.3 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on veth2 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on vif0.2 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on veth1 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on vif0.1 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on veth0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on vif0.0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on virbr0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on veth0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on xenbr0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on veth1 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on vif0.1 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on vif0.0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on veth2 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on virbr0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on veth3 to 255.255.255.255 port 67 interval 20
DHCPDISCOVER on vif0.3 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on vif0.2 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on veth0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on veth1 to 255.255.255.255 port 67 interval 21
DHCPDISCOVER on veth2 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on virbr0 to 255.255.255.255 port 67 interval 16
DHCPDISCOVER on vif0.0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on xenbr0 to 255.255.255.255 port 67 interval 17
DHCPDISCOVER on vif0.1 to 255.255.255.255 port 67 interval 21
DHCPDISCOVER on veth0 to 255.255.255.255 port 67 interval 21
DHCPDISCOVER on vif0.2 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on vif0.3 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on veth2 to 255.255.255.255 port 67 interval 19
DHCPDISCOVER on veth3 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on virbr0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on vif0.0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on veth1 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on xenbr0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on vif0.3 to 255.255.255.255 port 67 interval 16
DHCPDISCOVER on vif0.2 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on vif0.1 to 255.255.255.255 port 67 interval 20
DHCPDISCOVER on veth0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on veth3 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on xenbr0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on veth2 to 255.255.255.255 port 67 interval 17
DHCPDISCOVER on virbr0 to 255.255.255.255 port 67 interval 17
DHCPDISCOVER on vif0.0 to 255.255.255.255 port 67 interval 16
DHCPDISCOVER on vif0.2 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on veth1 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on vif0.3 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on veth0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on veth3 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on xenbr0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on vif0.1 to 255.255.255.255 port 67 interval 2
DHCPDISCOVER on vif0.2 to 255.255.255.255 port 67 interval 2
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
/sbin/dhclient-script: configuration for veth2 not found. Continuing with defaults.
/etc/sysconfig/network-scripts/network-functions: line 78: veth2: Arquivo ou diretório não encontrado

Обновить:

Установка Atheros L2. make install говорит:

make -C /lib/modules/2.6.18-194.el5xen/build SUBDIRS=/home/deltrem/l2/src modules
make[1]: Entrando no diretório `/usr/src/kernels/2.6.18-194.el5-xen-i686'
  CC [M]  /home/deltrem/l2/src/at_main.o
In file included from /home/deltrem/l2/src/at.h:30,
                 from /home/deltrem/l2/src/at_main.c:28:
/home/deltrem/l2/src/kcompat.h:1084: error: redefinition of typedef ‘irq_handler_t’
include/Linux/interrupt.h:67: error: previous declaration of ‘irq_handler_t’ was here
make[2]: ** [/home/deltrem/l2/src/at_main.o] Erro 1
make[1]: ** [_module_/home/deltrem/l2/src] Erro 2
make[1]: Saindo do diretório `/usr/src/kernels/2.6.18-194.el5-xen-i686'
make: ** [default] Erro 2

Посмотрите здесь тоже:

http://www.linuxquestions.org/questions/Linux-networking-3/unable-to-activate-eth0-attansic-l2-on-centos-5-1-a-619969/

2 ответа2

0

Проверьте эти две команды:

ifconfig eth0 192.168.122.10 netmask 255.255.255.0 broadcast 192.168.122.255 up  
route add default gw 192.168.122.1
0

Что происходит, когда вы пытаетесь подключиться?

Вы можете подключиться или проверить связь с маршрутизатором?

Какова логическая конфигурация IP (IP-адрес блока CentOS, маска сети, широковещательный адрес, маршрут; аналогичная информация для маршрутизатора)?

А как насчет физического подключения? Какие кабели подключены к каким портам и какова конфигурация оборудования? (Например, кроссовер или прямой кабель? А подключение полудуплексной карты 10BaseT к порту GigE only не будет работать независимо от кабеля.)

Всё ещё ищете ответ? Посмотрите другие вопросы с метками .