ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Kharitonov A. Dmitriy" <kharpost@rambler.ru>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] Несколько сетевых плат
Date: Wed, 21 May 2008 14:42:54 +0400
Message-ID: <228600107.20080521144254@rambler.ru> (raw)
In-Reply-To: <20080521092634.GG9468@hell.fortress>

Здравствуйте, 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?
Приемлемой работы удалось добиться, только тогда, когда в обоих
файлах одинаковые настройки.








  reply	other threads:[~2008-05-21 10:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-20 19:57 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 [this message]
2008-05-21 11:05         ` Alexey I. Froloff

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=228600107.20080521144254@rambler.ru \
    --to=kharpost@rambler.ru \
    --cc=community@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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