Pojniżej fragmenty konfigów:
Olivka:
Kod: Zaznacz cały
interfaces {
em0 {
unit 0 {
family inet {
address 172.26.2.1/30;
}
}
}
em1 {
unit 0 {
family inet {
address 172.26.3.1/30;
}
}
}
em2 {
unit 0 {
family inet {
address 172.26.1.2/30;
}
}
}
lo0 {
unit 0 {
family inet {
address 192.168.1.2/24;
}
}
}
}
protocols {
ospf {
area 0.0.0.1 {
interface em2.0;
}
area 0.0.0.0 {
interface em0.0;
interface em1.0 {
metric 100;
}
interface lo0.0;
}
}
}
Kod: Zaznacz cały
!
interface Loopback0
ip address 192.168.1.3 255.255.255.0
!
!
interface GigabitEthernet1/0
ip address 172.26.2.2 255.255.255.252
negotiation auto
!
interface GigabitEthernet2/0
ip address 172.26.4.1 255.255.255.252
negotiation auto
!
interface GigabitEthernet3/0
ip address 172.26.3.2 255.255.255.252
ip ospf cost 100
negotiation auto
!
router ospf 1
router-id 192.168.1.3
log-adjacency-changes
network 172.26.2.0 0.0.0.255 area 0
network 172.26.3.0 0.0.0.255 area 0
network 172.26.4.0 0.0.0.255 area 2
!
Kod: Zaznacz cały
:!:
Seba