From: Sergey Vlasov <vsu@altlinux.ru>
To: community@lists.altlinux.org
Subject: Re: [Comm] проблемы после поднятия bridge
Date: Tue, 27 Oct 2009 22:40:08 +0300
Message-ID: <20091027194008.GA8546@atlas.home> (raw)
In-Reply-To: <4AE73A89.8000702@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2593 bytes --]
On Tue, Oct 27, 2009 at 09:23:05PM +0300, Andrew Clark wrote:
> К сожалению, не помогло:
> [root@timelock ifaces]# grep '^[^#]' ???0/*
> eth0/options:ONBOOT=yes
> tap0/options:TYPE=tuntap
> tap0/options:TUNTAP_USER=andy
> tap0/options:ONBOOT=yes
> [root@timelock ifaces]# grep '^[^#]' ??0/*
> br0/brctl:stp AUTO off
> br0/brctl:setfd AUTO 0
> br0/iplink:mtu 1442
> br0/ipv4address:192.168.1.2
В ipv4address должен быть адрес с маской - 192.168.1.2/24.
> br0/ipv4route:default via 192.168.1.1
> br0/options:TYPE=bri
> br0/options:HOST='eth0 tap0'
> br0/options:MODULE=r8169
MODULE по-прежнему относится к eth0, а не к br0 - этот параметр не
надо было трогать.
> br0/options:BOOTPROTO=static
> br0/options:ONBOOT=yes
> br0/resolv.conf:search domail timelock
> br0/resolv.conf:nameserver 213.140.228.218
> br0/resolv.conf:nameserver 195.42.162.50
> br0/resolv.conf:nameserver 213.140.231.3
> [root@timelock ifaces]# chkconfig --list | awk '{print $1,$7}' | grep ip
> iptables 5:off
> ipw3945d 5:off
> [root@timelock ifaces]# echo 0 >
> /proc/sys/net/bridge/bridge-nf-call-arptables
> [root@timelock ifaces]# echo 0 >
> /proc/sys/net/bridge/bridge-nf-call-ip6tables
> [root@timelock ifaces]# echo 0 >
> /proc/sys/net/bridge/bridge-nf-call-iptables
> [root@timelock ifaces]# ip addr
> 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
> link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
> inet 127.0.0.1/8 scope host lo
> 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1442 qdisc pfifo_fast
> state UNKNOWN qlen 1000
> link/ether 00:1d:7d:01:01:05 brd ff:ff:ff:ff:ff:ff
> inet 192.168.1.3/24 brd 192.168.1.255 scope global eth0
Тут залип старый адрес, которого в конфигурации уже нет.
> 3: vboxnet0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
> state UNKNOWN qlen 1000
> link/ether 0a:00:27:00:00:00 brd ff:ff:ff:ff:ff:ff
> 4: tap0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
> state UNKNOWN qlen 500
> link/ether 9a:16:06:10:84:1a brd ff:ff:ff:ff:ff:ff
> 5: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1442 qdisc noqueue state
> UNKNOWN
> link/ether 00:1d:7d:01:01:05 brd ff:ff:ff:ff:ff:ff
> inet 192.168.1.2/32 scope global br0
А тут из-за отсутствовавшей в br0/ipv4address маски получилось /32.
> [root@timelock ifaces]# ip route
> 192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.3
> default via 192.168.1.1 dev eth0
И маршрут из-за наличия старого адреса и неверной маски на br0 тоже
смотрит не на тот интерфейс.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2009-10-27 19:40 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-22 9:02 Andrew Clark
2009-10-22 10:22 ` Sergey Vlasov
2009-10-22 11:11 ` Arcady Ivanov
2009-10-22 13:53 ` Roman Lesnichenko
2009-10-22 20:14 ` Arcady Ivanov
2009-10-22 11:19 ` Andrew Clark
2009-10-22 14:53 ` Sergey Vlasov
2009-10-27 6:44 ` Andrew Clark
2009-10-27 10:27 ` Sergey Vlasov
2009-10-27 10:59 ` Andrew Clark
2009-10-27 12:06 ` Sergey Vlasov
2009-10-27 13:54 ` Andrew Clark
2009-10-27 15:38 ` Sergey Vlasov
2009-10-27 18:23 ` Andrew Clark
2009-10-27 19:40 ` Sergey Vlasov [this message]
2009-11-05 8:27 ` Andrew Clark
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=20091027194008.GA8546@atlas.home \
--to=vsu@altlinux.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