vine-users ML アーカイブ



[vine-users:078388] Re: vine4.2 でふたつのLAN をbridgeで接 続できない

  • From: P1300 <p1300@xxxxxx>
  • Subject: [vine-users:078388] Re: vine4.2 でふたつのLAN をbridgeで接 続できない
  • Date: Fri, 2 May 2008 12:00:41 +0900
nonakaです
参考になるかわかりませんが
eth0側とeth1側は異なるネットワークのためブリッジ接続やハブのような機能では異なるネットワーク間の通信はできないと思います。

異なるネットワーク間通信でしたら「ルーティング」や「IPマスカレード」について調べてみたらどうでしょう


千葉さんの情報にあるネットワーク環境ですとVine4.2をPCルータ化しWinpc1側にはeth0のIPをgatewayとしWinpc3側はeth1のIPをgatewayとするのも方法の一つだと思います。
iptablesでeth0->192.168.1.10あてにきたパケットをeth1->192.168.2.20側へ転送というようなかんじでしょうか

            NIC3枚挿しルーター
            +---+---+
            |  HUB  |
            +---+---+
                | (eth0->192.168.1.10
            +---+-----------+
            |Vine4.2ルーター|---ppp0(WAN側)
            +---+-----------+
               | (eth1->192.168.2.20
            +---+---+
            |  HUB  |
            +---+---+




On Tue, 29 Apr 2008 20:16:11 +0900
"Hisashi.Chiba." <ch-999@xxxxxxxxxxxxxxxxx> wrote:

> 日頃から当MLを参考にさせて頂いてます。千葉と申します。
> 
> 事情により二つに分けていたLANを、Vine-4.2 を使って
> ブリッジ接続しようとトライしましたが、うまく行って
> いないようで、どうすれば良いのかアドバイスを頂きた
> いのですが。
> 今回、brige化するための環境は以下の通りです。
> 
> DELL PowerEdgr600SC
> Vine-4.2 (Vine-4.1からのアップグレード)
> 
> LAN の接続状況
>  +------+   +------+
>  |WinPC1|   |WinPC2|
>  +---+--+   +---+--+
>      |          |
> -----+----------+---.... 192.168.1.0
>                 |
>                 |(eth0->192.168.1.10
>             +---+---+
>             |Vine4.2|(br0->192.168.1.15)
>             +---+---+
>                 |(eth1->192.168.2.20
>                 |
>  ----+----------+----... 192.168.2.0
>      |          |
>  +---+--+   +---+--+
>  |WinPC3|   |WinPC4|
>  +------+   +------+
> 
> 結果としての接続状況は上記の通りで、この様態で
> WinPC2 から WinPC4へ ping が通っていない状況で
> す。
> NICはオンボードと今回追加したもので、NICを追加
> したときは、起動時に kudu で正常に認識されてい
> ます。
> 
> ここまでに行った事はまず、
> http://www.aineas.net/pukiwiki/index.php?VineLinux3.0%A4%C7Bridge%B9%BD%C3%DB
> を参考にして、bridge-utilsをsynapticで追加し、以下を行いました。
> 
> brctl addbr br0
> brctl addif br0 eth0
> brctl addif br0 eth1
> ifconfig br0 192.168.1.15 netmask 255.255.255.0 broadcat 192.168.1.255 up
> ifconfig eth0 0.0.0.0 up
> ifconfig eth1 0.0.0.0 up
> 
> その後に、上記参考URLのスクリプトを/etc/rc.d/init.d/に保存後、
> 以下の様にしました。
> ln -s /etc/rc.d/init.d/bridge /etc/rc.d/rc3.d/S90bridge
> ln -s /etc/rc.d/init.d/bridge /etc/rc.d/rc5.d/S90bridge
> 
> この後、再起動しても ping が通らないので、
> うまく行っていないのかと思われるのですが、
> どこを見直せば良いのでしょうか。
> 
> 関係しそうな部分のSYSLOGものせておきますので、
> よろしくお願いします。
> ------ syslog -----
> Apr 29 14:19:10 localhost kernel: ip_tables: (C) 2000-2006 Netfilter
> Core Team
> Apr 29 14:19:11 localhost kernel: Netfilter messages via NETLINK v0.30.
> Apr 29 14:19:11 localhost kernel: ip_conntrack version 2.4 (4095
> buckets, 32760 max) - 232 bytes per conntrack
> Apr 29 14:19:11 localhost kernel: e1000: eth0: e1000_watchdog: NIC Link
> is Up 100 Mbps Full Duplex
> Apr 29 14:19:11 localhost kernel: eth1: link up, 100Mbps, full-duplex,
> lpa 0x45E1
> Apr 29 14:19:11 localhost kernel: NET: Registered protocol family 10
> Apr 29 14:19:11 localhost kernel: lo: Disabled Privacy Extensions
> Apr 29 14:19:11 localhost kernel: IPv6 over IPv4 tunneling driver
> Apr 29 14:19:11 localhost kernel: Bridge firewalling registered
> Apr 29 14:19:11 localhost kernel: device eth0 entered promiscuous mode
> Apr 29 14:19:11 localhost kernel: device eth1 entered promiscuous mode
> Apr 29 14:19:11 localhost kernel: ADDRCONF(NETDEV_UP): eth0: link is not
> ready
> Apr 29 14:19:11 localhost kernel: eth1: link up, 100Mbps, full-duplex,
> lpa 0x45E1
> Apr 29 14:19:10 localhost kernel: Adding 1052216k swap on /dev/hdc8.
> Priority:-2 extents:1 across:1052216k
> Apr 29 14:19:10 localhost kernel: ACPI: Power Button (FF) [PWRF]
> Apr 29 14:19:10 localhost kernel: Using specific hotkey driver
> Apr 29 14:19:10 localhost kernel: ibm_acpi: ec object not found
> Apr 29 14:19:10 localhost kernel: md: Autodetecting RAID arrays.
> Apr 29 14:19:10 localhost kernel: md: autorun ...
> Apr 29 14:19:10 localhost kernel: md: ... autorun DONE.
> Apr 29 14:19:10 localhost kernel: device-mapper: 4.5.0-ioctl
> (2005-10-04) initialised: dm-devel@xxxxxxxxxx
> Apr 29 14:19:10 localhost kernel: EXT3 FS on hda2, internal journal
> Apr 29 14:19:10 localhost kernel: encode_eucjp: module license
> 'unspecified' taints kernel.
> Apr 29 14:19:10 localhost kernel: kjournald starting.  Commit interval 5
> seconds
> Apr 29 14:19:10 localhost kernel: EXT3 FS on hda1, internal journal
> Apr 29 14:19:10 localhost kernel: EXT3-fs: mounted filesystem with
> ordered data mode.
> Apr 29 14:19:10 localhost kernel: powernow: This module only works with
> AMD K7 CPUs
> Apr 29 14:19:10 localhost kernel: p4-clockmod: P4/Xeon(TM) CPU On-Demand
> Clock Modulation available
> Apr 29 14:19:10 localhost kernel: ip_tables: (C) 2000-2006 Netfilter
> Core Team
> Apr 29 14:19:11 localhost kernel: Netfilter messages via NETLINK v0.30.
> Apr 29 14:19:11 localhost kernel: ip_conntrack version 2.4 (4095
> buckets, 32760 max) - 232 bytes per conntrack
> Apr 29 14:19:11 localhost kernel: e1000: eth0: e1000_watchdog: NIC Link
> is Up 100 Mbps Full Duplex
> Apr 29 14:19:11 localhost kernel: eth1: link up, 100Mbps, full-duplex,
> lpa 0x45E1
> Apr 29 14:19:11 localhost kernel: NET: Registered protocol family 10
> Apr 29 14:19:11 localhost kernel: lo: Disabled Privacy Extensions
> Apr 29 14:19:11 localhost kernel: IPv6 over IPv4 tunneling driver
> Apr 29 14:19:11 localhost kernel: Bridge firewalling registered
> Apr 29 14:19:11 localhost kernel: device eth0 entered promiscuous mode
> Apr 29 14:19:11 localhost kernel: device eth1 entered promiscuous mode
> Apr 29 14:19:11 localhost kernel: ADDRCONF(NETDEV_UP): eth0: link is not
> ready
> Apr 29 14:19:11 localhost kernel: eth1: link up, 100Mbps, full-duplex,
> lpa 0x45E1
> Apr 29 14:19:11 localhost kernel: ip_conntrack version 2.4 (4095
> buckets, 32760 max) - 232 bytes per conntrack
> Apr 29 14:19:11 localhost kernel: e1000: eth0: e1000_watchdog: NIC Link
> is Up 100 Mbps Full Duplex
> Apr 29 14:19:11 localhost kernel: eth1: link up, 100Mbps, full-duplex,
> lpa 0x45E1
> Apr 29 14:19:11 localhost kernel: NET: Registered protocol family 10
> Apr 29 14:19:11 localhost kernel: lo: Disabled Privacy Extensions
> Apr 29 14:19:11 localhost kernel: IPv6 over IPv4 tunneling driver
> Apr 29 14:19:11 localhost kernel: Bridge firewalling registered
> Apr 29 14:19:11 localhost kernel: device eth0 entered promiscuous mode
> Apr 29 14:19:11 localhost kernel: device eth1 entered promiscuous mode
> Apr 29 14:19:11 localhost kernel: ADDRCONF(NETDEV_UP): eth0: link is not
> ready
> Apr 29 14:19:11 localhost kernel: eth1: link up, 100Mbps, full-duplex,
> lpa 0x45E1
> Apr 29 14:19:11 localhost kernel: eth1: Promiscuous mode enabled.
> Apr 29 14:19:11 localhost last message repeated 4 times
> Apr 29 14:19:11 localhost kernel: br0: port 2(eth1) entering learning state
> Apr 29 14:19:11 localhost kernel: eth1: Promiscuous mode enabled.
> Apr 29 14:19:11 localhost kernel: eth1: Promiscuous mode enabled.
> Apr 29 14:19:11 localhost kernel: e1000: eth0: e1000_watchdog: NIC Link
> is Up 100 Mbps Full Duplex
> Apr 29 14:19:12 localhost kernel: ADDRCONF(NETDEV_CHANGE): eth0: link
> becomes ready
> Apr 29 14:19:12 localhost kernel: br0: port 1(eth0) entering learning state
> Apr 29 14:19:12 localhost kernel: eth1: Promiscuous mode enabled.
> Apr 29 14:19:12 localhost kernel: br0: topology change detected, propagating
> Apr 29 14:19:12 localhost kernel: br0: port 2(eth1) entering forwarding
> state
> Apr 29 14:19:12 localhost kernel: mtrr: type mismatch for
> fd000000,800000 old: uncachable new: write-combining
> Apr 29 14:19:12 localhost kernel: mtrr: type mismatch for
> fd000000,800000 old: uncachable new: write-combining
> Apr 29 14:19:12 localhost kernel: br0: topology change detected, propagating
> Apr 29 14:19:12 localhost kernel: br0: port 1(eth0) entering forwarding
> state
> Apr 29 14:24:25 localhost nmbd[2131]: [2008/04/29 14:24:25, 0]
> nmbd/nmbd_become_lmb.c:become_local_master_stage2(396)
> Apr 29 14:24:25 localhost nmbd[2131]:   *****
> Apr 29 14:24:25 localhost nmbd[2131]:
> Apr 29 14:24:25 localhost nmbd[2131]:   Samba name server SERVER01 is
> now a local master browser for workgroup THISWKGRP on subnet 192.168.1.10
> Apr 29 14:24:25 localhost nmbd[2131]:
> Apr 29 14:24:25 localhost nmbd[2131]:   *****
> Apr 29 14:24:25 localhost nmbd[2131]: [2008/04/29 14:24:25, 0]
> nmbd/nmbd_become_lmb.c:become_local_master_stage2(396)
> Apr 29 14:24:25 localhost nmbd[2131]:   *****
> Apr 29 14:24:25 localhost nmbd[2131]:
> Apr 29 14:24:25 localhost nmbd[2131]:   Samba name server SERVER01 is
> now a local master browser for workgroup THISWKGRP on subnet 192.168.2.20
> Apr 29 14:24:25 localhost nmbd[2131]:
> Apr 29 14:24:25 localhost nmbd[2131]:   *****
> ----- end ----
>