KOKOK
. Mel jsem ted cas, tak jsem prubnul konfiguraci s 5PC
. No, zda se, ze se simulace (respektive nastaveni) povedla.
Zde jsou configy
zebra.conf
Kód:
!
! All the same as zebra.conf
!
hostname router.nadrazi
!password router
!enable password router
!log file /var/log/zebra/zebra.log
!log record-priority
!service advanced-vty
! service password-encryption
!debug zebra events
!debug zebra kernel
interface dummy0
ip address 192.168.0.2/32
!
interface lo
ip address 127.0.0.1/8
!
interface wlan0
ip address 192.168.250.9/29
!
interface wlan1
ip address 192.168.3.97/27
!
interface eth1
ip address 192.168.3.5/27
!
interface eth0
ip address 192.168.1.25/24
!
!
! Ok, this bit is critical for *BSD machines.
!
! The way that the linux and BSD ip stacks handle multicast is different.
! The BSD's need a route to the multicast destinaton before they will send
! any packets.
!
! zebra dosn't know that it needs to add the routes it's self, so we add them as static routed
! pointing at5 the loopback interface (127.0.0.1)
!
!
! OSPF-ALL.MCAST.NET
ip route 224.0.0.5/32 127.0.0.1
!
! OSPF-DSIG.MCAST.NET
ip route 224.0.0.6/32 127.0.0.1
!
! RIP2-ROUTERS.MCAST.NET (ok, so we don't use rip, but we might as well have it here).
ip route 224.0.0.9/32 127.0.0.1
!
! Ok, this is important!
!
! The lines below define an access list called 'term' that only allows packets from
! 127.0.0.1 (i.e. the local machine), We use this to limit access to zebra it's self
! to the local machine.
!
! This means that zebra can only be reconfigured from the box it's running on.
!
! (i think the 'deny any' line is redundant - there is an explicit one at
! the end of any access-list)
!
access-list term permit 127.0.0.1/32
access-list term deny any
!
! Here we apply the access list we just defined to the 'vty line' - now we
! can only log in from the bpox zebra is running on.
!
line vty
access-class term
!
! Thats it!
!
ospf.conf
Kód:
!
! Zebra configuration saved from vty
! 2002/08/03 13:50:05
!
hostname router.nadrazi
!password lIdicka
!enable password lIdicka
!log file /var/log/zebra/ospfd.log
!log record-priority
service advanced-vty
!
!
!
interface lo
!
interface dummy0
!
interface eth0
description nadrazi-hiam
ip ospf cost 10
!
interface eth1
description nadrazi-libusin
! ip ospf network point-to-multipoint
ip ospf cost 100
! ip ospf dead-interval 240
!
interface wlan0
description nadrazi-libusin
ip ospf cost 14
! ip ospf dead-interval 240
! ip ospf retransmit-interval 4
!
interface wlan1
description nadrazi-ap
ip ospf cost 14
!
router ospf
ospf router-id 192.168.0.2
redistribute static metric-type 1
redistribute connected metric-type 1
passive-interface wlan1
network 192.168.250.0/30 area 0
network 192.168.250.4/30 area 0
network 192.168.1.0/24 area 0
network 192.168.0.2/32 area 0
neighbor 192.168.0.1
neighbor 192.168.0.4
!
distribute-list confil out connected
access-list term permit 127.0.0.1/8
access-list term deny any
atdatd. Je to parada a celkem to i ulehcuje spravu, kdyz napriklad jeden spoj vypadne.