ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] Несколько сетевых плат
@ 2008-05-20 19:57 Kharitonov A. Dmitry
  2008-05-20 20:01 ` Sergey
  0 siblings, 1 reply; 6+ messages in thread
From: Kharitonov A. Dmitry @ 2008-05-20 19:57 UTC (permalink / raw)
  To: Sysadmins, ALT Linux Community general discussions

Поделитесь опытом, как настроить два сетевых адаптера realtek?


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Comm] Несколько сетевых плат
  2008-05-20 19:57 [Comm] Несколько сетевых плат Kharitonov A. Dmitry
@ 2008-05-20 20:01 ` Sergey
  2008-05-21  9:03   ` Kharitonov A. Dmitriy
  0 siblings, 1 reply; 6+ messages in thread
From: Sergey @ 2008-05-20 20:01 UTC (permalink / raw)
  To: ALT Linux Community general discussions

On Wednesday 21 May 2008, Kharitonov A. Dmitry wrote:

> Поделитесь опытом, как настроить два сетевых адаптера realtek?

А в чём проблема ?

-- 
С уважением, Сергей
a_s_y@sama.ru


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Comm] Несколько сетевых плат
  2008-05-20 20:01 ` Sergey
@ 2008-05-21  9:03   ` Kharitonov A. Dmitriy
  2008-05-21  9:26     ` Alexey I. Froloff
  0 siblings, 1 reply; 6+ messages in thread
From: Kharitonov A. Dmitriy @ 2008-05-21  9:03 UTC (permalink / raw)
  To: ALT Linux Community general discussions

Здравствуйте, Sergey.
>> Поделитесь опытом, как настроить два сетевых адаптера realtek?

> А в чём проблема ?

Две сетевухи Realtek 8029AS
Как не кручу - в ifconfige видны обе, прерывания и базовый адрес
разные, ip прописываются как надо, одна карточка работает хорошо,
другая не работает.

[user@server ~]$ [user@server ~]$ sudo ifconfig -a
Password:
lan       Link encap:Ethernet  HWaddr 00:00:01:01:37:BC
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:12 Base address:0xe800

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:18 errors:0 dropped:0 overruns:0 frame:0
          TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1404 (1.3 KiB)  TX bytes:1404 (1.3 KiB)

venet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
-bash: [user@server: command not found
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

wan       Link encap:Ethernet  HWaddr 00:E0:7D:99:A8:B3
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:140 errors:0 dropped:0 overruns:0 frame:0
          TX packets:133 errors:0 dropped:0 overruns:0 carrier:0
[user@server ~]$ sudo ethtool -i lan
driver: ne2k-pci
version: 1.03
firmware-version:
bus-info: 0000:00:0a.0
[user@server ~]$ sudo ethtool -i wan
driver: ne2k-pci
version: 1.03
firmware-version:
bus-info: 0000:00:09.0
[user@server ~]$ cat /etc/iftab
wan     businfo 0000:00:09.0
lan     businfo 0000:00:0a.0
[user@server ~]$ cat /etc/net/iftab
wan     businfo 0000:00:09.0
lan     businfo 0000:00:0a.0
[user@server ~]$ sudo service network restart
Computing interface groups: ..ERROR: /etc/init.d/network: unknown interface group for iface 'venet0' of type 'venet'
. 3 interfaces found
Processing /etc/net/vlantab: empty.
Stopping group 1/realphys (2 interfaces)
        Stopping eth1: OK
        Stopping wan: ...OK
Stopping group 0/virtual (1 interfaces)
        Stopping lo: .OK
error: "net.ipv4.ip.dynaddr" is an unknown key
error: "net.ipv4.conf.eth0.send_redirects" is an unknown key
Computing interface groups: ..ERROR: /etc/init.d/network: unknown interface group for iface 'venet0' of type 'venet'
. 3 interfaces found
Starting group 0/virtual (1 interfaces)
        Starting lo: .....OK
Starting group 1/realphys (2 interfaces)
        Starting eth1: SIOCGIFFLAGS: No such device
!FAILED
        Starting wan: ........OK
Processing /etc/net/vlantab: empty.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Comm] Несколько сетевых плат
  2008-05-21  9:03   ` Kharitonov A. Dmitriy
@ 2008-05-21  9:26     ` Alexey I. Froloff
  2008-05-21 10:42       ` Kharitonov A. Dmitriy
  0 siblings, 1 reply; 6+ messages in thread
From: Alexey I. Froloff @ 2008-05-21  9:26 UTC (permalink / raw)
  To: Mailing list for ALT Linux users

[-- Attachment #1: Type: text/plain, Size: 249 bytes --]

* Kharitonov A. Dmitriy <kharpost@> [080521 13:13]:
> Starting group 1/realphys (2 interfaces)
>         Starting eth1: SIOCGIFFLAGS: No such device
> !FAILED
>         Starting wan: ........OK
ls /etc/net/ifaces/

-- 
Regards,
Sir Raorn.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Comm] Несколько сетевых плат
  2008-05-21  9:26     ` Alexey I. Froloff
@ 2008-05-21 10:42       ` Kharitonov A. Dmitriy
  2008-05-21 11:05         ` Alexey I. Froloff
  0 siblings, 1 reply; 6+ messages in thread
From: Kharitonov A. Dmitriy @ 2008-05-21 10:42 UTC (permalink / raw)
  To: ALT Linux Community general discussions

Здравствуйте, Alexey.

>> Starting group 1/realphys (2 interfaces)
>>         Starting eth1: SIOCGIFFLAGS: No such device
>> !FAILED
>>         Starting wan: ........OK
> ls /etc/net/ifaces/
[user@server ~]$ ls /etc/net/ifaces/
default  eth1  lo  unknown  venet0  wan
[user@server ~]$ sudo mv /etc/net/ifaces/eth1/ /etc/net/ifaces/lan
[user@server ~]$ ls /etc/net/ifaces/
default  lan  lo  unknown  venet0  wan
[user@server ~]$ sudo reboot && exit

Перезагрузка.... (так надёжней)

Подключаюсь по ssh к интерфейсу 192.168.1.1 работает
Перетукаю шнурок...
Подключаюсь по ssh к интерфейсу 192.168.2.1 работает

Втыкаю в 192.168.1.1 лан

Интерфейс 192.168.2.1 не работает.
Интерфейс 192.168.1.1 работает.


[user@server ~]$ sudo ifconfig -a
Password:
lan       Link encap:Ethernet  HWaddr 00:00:01:01:37:BC
          inet addr:192.168.2.1  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:278 errors:0 dropped:0 overruns:0 frame:0
          TX packets:135 errors:0 dropped:0 overruns:0 carrier:0
          collisions:1 txqueuelen:1000
          RX bytes:25968 (25.3 KiB)  TX bytes:18764 (18.3 KiB)
          Interrupt:12 Base address:0xe800

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

venet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

wan       Link encap:Ethernet  HWaddr 00:E0:7D:99:A8:B3
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6 errors:0 dropped:0 overruns:0 frame:0
          TX packets:22 errors:0 dropped:0 overruns:0 carrier:0
          collisions:1 txqueuelen:1000
          RX bytes:736 (736.0 b)  TX bytes:1434 (1.4 KiB)
          Interrupt:10 Base address:0xe400

[user@server ~]$ sudo service network restart
Computing interface groups: ..ERROR: /etc/init.d/network: unknown interface group for iface 'venet0' of type 'venet'
. 3 interfaces found
Processing /etc/net/vlantab: empty.
Stopping group 1/realphys (2 interfaces)
        Stopping lan: RTNETLINK answers: No such process
...OK
        Stopping wan: ...OK
Stopping group 0/virtual (1 interfaces)
        Stopping lo: .OK
error: "net.ipv4.ip.dynaddr" is an unknown key
error: "net.ipv4.conf.eth0.send_redirects" is an unknown key
Computing interface groups: ..ERROR: /etc/init.d/network: unknown interface group for iface 'venet0' of type 'venet'
. 3 interfaces found
Starting group 0/virtual (1 interfaces)
        Starting lo: .....OK
Starting group 1/realphys (2 interfaces)
        Starting lan: ......RTNETLINK answers: Network is unreachable
..OK
        Starting wan: ........OK
Processing /etc/net/vlantab: empty.

Такое впечатление, что одна сеть мешает работать другой.
Вчера 4 часа потратил на различные изменения параметров, но так ничего
и не добился.

Вчем различие между /etc/iftab и /etc/net/iftab?
Приемлемой работы удалось добиться, только тогда, когда в обоих
файлах одинаковые настройки.








^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Comm] Несколько сетевых плат
  2008-05-21 10:42       ` Kharitonov A. Dmitriy
@ 2008-05-21 11:05         ` Alexey I. Froloff
  0 siblings, 0 replies; 6+ messages in thread
From: Alexey I. Froloff @ 2008-05-21 11:05 UTC (permalink / raw)
  To: Mailing list for ALT Linux users

[-- Attachment #1: Type: text/plain, Size: 295 bytes --]

* Kharitonov A. Dmitriy <kharpost@> [080521 14:48]:
> [user@server ~]$ sudo mv /etc/net/ifaces/eth1/ /etc/net/ifaces/lan
Ну да.

>         Starting lan: ......RTNETLINK answers: Network is unreachable
> ..OK
А это кривые настройки.  Скорее всего в ipv4route.

-- 
Regards,
Sir Raorn.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-05-21 11:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-20 19:57 [Comm] Несколько сетевых плат Kharitonov A. Dmitry
2008-05-20 20:01 ` Sergey
2008-05-21  9:03   ` Kharitonov A. Dmitriy
2008-05-21  9:26     ` Alexey I. Froloff
2008-05-21 10:42       ` Kharitonov A. Dmitriy
2008-05-21 11:05         ` Alexey I. Froloff

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git