BIRD - routovani na IP-aliased interface (trosku delsi)

David Rohleder davro na ics.muni.cz
Úterý Duben 17 16:28:04 CEST 2001


edlman na fortech.cz (Martin Edlman) writes:

> 
> protocol ospf ospfIN {
>         export none;
>         import all;
>         area 0.0.0.0 { 
>                 tick 8;
>                 interface "eth1*" 10.0.0.0/23;
>         };
> } 
> 
> Misto interface, jsem zkousel i nasl. varianty:
>                 interface "eth1" 10.0.10.0/23;
>                 interface "eth1:1" 10.0.0.0/23;


Podle dokumentace je syntax 

interface "mask"|prefix [ {option ; [ ... ] } ]

takze nevim jestli je ten vas zapis spravny (tedy jestli je |
exkluzivni or). Co treba

interface "eth1" { mode broadcast ; stub yes; };
interface "eth1:1" { mode broadcast ; stub yes;};
...


> kdyz se do BIRDa napichnu pres birdc, tak mi "show ospf" vypise:
> bird> show ospf 
> ospfIN:
> Number of areas: 1
>         Area: 0.0.0.0 (0) [BACKBONE]
>                 Stub:   No
>                 RT scheduler tick:      8
>                 Number of interfaces:   1
>                 Number of LSAs in DB:   1
>                 Number of neighbors:    0
>                 Number of adjacent neighbors:   0
> >>> device1: Scanning interfaces
> >>> ospfIN: Received hello from 10.0.11.1 via eth1
> >>> ospfIN: New neighbor found: 10.0.11.1 on eth1.
> >>> ospfIN: Neighbor 10.0.11.1 changes state from "    down" to "    init".
> >>> ospfIN: Neighbor 10.0.11.1 changes state from "    init" to "    2way".
> >>> ospfIN: SM on iface eth1. Event is "neighbor change".
> >>> ospfIN: Neighbor 10.0.11.1 changes state from "    2way" to " exstart".
> >>> ospfIN: Scheduling RT lsa origination for area 0.0.0.0.
> >>> ospfIN: DB_DES (I) sent to 10.0.11.1 via eth1.
> >>> ospfIN: Hello sent via eth1
> >>> ospfIN: DB_DES (I) sent to 10.0.11.1 via eth1.
> 
> To jsou hlasky ohledne routeru na aliasovany siti (10.0.10.0/23), porad
> se opakuje DB_DES (I) sent... a stac se z "extstart" nezmeni na
> "exchange" a "loading" jaku u routeru na primarni siti (10.0.0.0/23).
> 
> Z ospf se nauci routy jen z routeru 10.0.1.1:

Ne. Z ospf se nenauci nic, protoze nema zadneho adjacent souseda (tedy
on nema vubec zadneho souseda. To je fakt divny.

> 
> bird> sh route 
> 10.0.10.0/23       dev eth1 [direct1 08:54] (240)
> 1.1.1.0/24         dev eth0 [direct1 08:54] (240)
> 10.0.0.0/23        dev eth1 [direct1 08:54] (240)
>                    dev eth1 [ospfIN 10:06] I (150/10)
> 127.0.0.0/8        dev lo [direct1 08:54] (240)
> 194.213.253.232/29 via 10.0.1.1 on eth1 [ospfIN 10:06] E2 (150/10/10000)
> 10.0.255.0/24      dev eth0 [direct1 08:54] (240)
> 10.0.1.252/30      via 10.0.1.1 on eth1 [ospfIN 10:06] E2 (150/10/10000)
> 
> Jeste jsem se nepokousel o reseni kaskady (router 4), to az se mi podari
> rozchodit popsany problem.

Co to treba zkusit v konferenci bird-users? http://bird.network.cz/


-- 
-------------------------------------------------------------------------
David Rohleder						davro na ics.muni.cz
Institute of Computer Science, Masaryk University
Brno, Czech Republic
-------------------------------------------------------------------------


Další informace o konferenci Linux