OpenVZ + Bridge a vice virtualnich eth (schema site)

Zdenek Janis janis na alberon.cz
Pondělí Duben 7 15:01:11 CEST 2008


Dobry den,
jeste zasilam schema zapojeni cele site...
Trosku me zaskocilo, ze MAC br0 je stejna s jednou ze sitovek, ktera je 
urcena pro virtualni stroj (veth101.0) a shodou okolnosti to je prave 
ta, z ktere mi chodi pakety s IP, ktera tam vubec neni (eth101.0).

-----------------
| O2 - internet |
-----------------
    ^
    |
    v   88.102.112.x
--------
| ADSL |    dnat: 0/0:22 -> 192.168.255.3:22
--------
    ^   IP: 192.168.255.1/29, MAC: 00:1b:9e:91:85:79
    |
    v
----------    -------------------------------------
|        |<-->| local net 192.168.1.0/24          |
| SWITCH |    -------------------------------------
|        |<-->| WiFi GW: 192.168.1.1/24           |
|        |    |     MAC: 00:04:76:e8:b4:7b        |
|        |    -------------------------------------
|        |<-->| local PC: eth0: 192.168.1.2/24    |
----------    |                 192.168.255.2/29  |
    ^          |       eth0 MAC: 00:17:31:ca:a3:ee |
    |          |             GW: 192.168.1.1       |
    |          -------------------------------------
    v  eth0
---------------------------------------------------
| VIRTUAL_HW - kernel: 2.6.22 + OpenVZ            |
| br0 <- eth0 veth101.0 veth101.1 veth101.0       |
|        veth102.0 veth20x.0                      |
| br0        IP: 192.168.1.131/24                 |
|                192.168.1.100/24                 |
|           MAC: 00:18:51:01:00:00                |
| eth0      MAC: 00:40:63:e2:45:b5                |
| veth101.0 MAC: 00:18:51:01:00:00 <-> eth101.0   |
| veth101.1 MAC: 00:18:51:01:00:01 <-> eth101.1   |
| veth101.2 MAC: 00:18:51:01:00:02 <-> eth101.2   |
| veth102.0 MAC: 00:18:51:02:00:00 <-> eth102.0   |
| veth20x.0 MAC: 00:18:51:cx:00:00 <-> eth20x.0   |
|                                                 |
| ----------------------------------------------- |
| | VIRTUAL 101 (vGW)                           | |
| | eth101.0  IP: 192.168.1.101/24              | |
| |          MAC: 00:17:f2:01:00:00             | |
| | eth101.1  IP: 192.168.255.9/29              | |
| |          MAC: 00:17:f2:01:00:01             | |
| | eth101.2  IP: 192.168.255.3/29              | |
| |          MAC: 00:17:f2:01:00:02             | |
| |           GW: 192.168.255.1                 | |
| ----------------------------------------------- |
| ----------------------------------------------- |
| | VIRTUAL 102 (vAPP)                          | |
| | eth102.0  IP: 192.168.1.102/24              | |
| |          MAC: 00:17:f2:02:00:00             | |
| |           GW: 192.168.1.101                 | |
| ----------------------------------------------- |
| ----------------------------------------------- |
| | VIRTUAL 20x (vDOMx)                         | |
| | eth20x.0  IP: 192.168.1.20x/24              | |
| |          MAC: 00:17:f2:cx:00:00             | |
| |           GW: 192.168.1.101                 | |
| ----------------------------------------------- |
---------------------------------------------------




Další informace o konferenci Linux