!
interface r1-lo
!
-interface r1-eth0
-!
interface r1-eth1
+ ipv6 ospf6 priority 10
!
interface r1-eth2
+ ipv6 ospf6 priority 10
!
router ospf6
ospf6 router-id 192.168.0.1
log-adjacency-changes
interface r1-lo area 0.0.0.0
- interface r1-eth0 area 0.0.0.0
interface r1-eth1 area 0.0.0.0
interface r1-eth2 area 0.0.0.0
!
"neighbors":{
"192.168.0.2":[
{
- "priority":1,
- "state":"Full\/DR"
+ "priority":5,
+ "state":"Full\/Backup"
}
],
"192.168.0.3":[
{
- "priority":1,
- "state":"Full\/DR"
+ "priority":5,
+ "state":"Full\/Backup"
}
]
}
debug ospf event
debug ospf zebra
!
+interface r1-eth1
+ ip ospf hello-interval 2
+ ip ospf dead-interval 10
+ ip ospf priority 10
+!
+interface r1-eth2
+ ip ospf hello-interval 2
+ ip ospf dead-interval 10
+ ip ospf priority 10
+!
router ospf
ospf router-id 192.168.0.1
log-adjacency-changes
refresh timer 10
!
line vty
-interface r1-eth1
- ip ospf hello-interval 2
- ip ospf dead-interval 10
-!
-interface r1-eth2
- ip ospf hello-interval 2
- ip ospf dead-interval 10
!
!
interface r2-lo
!
-interface r2-eth0
-!
interface r2-eth1
+ ipv6 ospf6 priority 5
!
interface r2-eth2
+ ipv6 ospf6 priority 10
!
router ospf6
ospf6 router-id 192.168.0.2
log-adjacency-changes
interface r2-lo area 0.0.0.0
- interface r2-eth0 area 0.0.0.0
interface r2-eth1 area 0.0.0.0
interface r2-eth2 area 0.0.0.0
!
"neighbors":{
"192.168.0.1":[
{
- "priority":1,
- "state":"Full\/Backup"
+ "priority":10,
+ "state":"Full\/DR"
}
],
"192.168.0.3":[
{
- "priority":1,
- "state":"Full\/DR"
+ "priority":5,
+ "state":"Full\/Backup"
}
]
}
debug ospf event
debug ospf zebra
!
+int r2-eth1
+ ip ospf hello-interval 2
+ ip ospf dead-interval 10
+ ip ospf priority 5
+!
+int r2-eth2
+ ip ospf hello-interval 2
+ ip ospf dead-interval 10
+ ip ospf priority 10
+!
router ospf
ospf router-id 192.168.0.2
log-adjacency-changes
timers throttle lsa all 0
refresh timer 10
!
-int r2-eth1
- ip ospf hello-interval 2
- ip ospf dead-interval 10
-int r2-eth2
- ip ospf hello-interval 2
- ip ospf dead-interval 10
-!
line vty
!
!
interface r3-lo
!
-interface r3-eth0
-!
interface r3-eth1
+ ipv6 ospf6 priority 5
!
interface r3-eth2
+ ipv6 ospf6 priority 5
!
router ospf6
ospf6 router-id 192.168.0.3
log-adjacency-changes
interface r3-lo area 0.0.0.0
- interface r3-eth0 area 0.0.0.0
interface r3-eth1 area 0.0.0.0
interface r3-eth2 area 0.0.0.0
!
"neighbors":{
"192.168.0.1":[
{
- "priority":1,
- "state":"Full\/Backup"
+ "priority":10,
+ "state":"Full\/DR"
}
],
"192.168.0.2":[
{
- "priority":1,
- "state":"Full\/Backup"
+ "priority":10,
+ "state":"Full\/DR"
}
]
}
debug ospf event
debug ospf zebra
!
+int r3-eth1
+ ip ospf hello-interval 2
+ ip ospf dead-interval 10
+ ip ospf priority 5
+!
+int r3-eth2
+ ip ospf hello-interval 2
+ ip ospf dead-interval 10
+ ip ospf priority 5
+!
router ospf
ospf router-id 192.168.0.3
log-adjacency-changes
timers throttle lsa all 0
refresh timer 10
!
-int r3-eth1
- ip ospf hello-interval 2
- ip ospf dead-interval 10
-int r3-eth2
- ip ospf hello-interval 2
- ip ospf dead-interval 10
-!
line vty
!
int r1-eth0
ip ospf hello-interval 2
ip ospf dead-interval 10
+ ip ospf priority 1
!
"neighbors":{
"2.2.2.2":[
{
- "priority":1,
+ "priority":2,
"state":"Full\/DR",
"address":"10.0.1.2",
"ifaceName":"r1-eth0:10.0.1.1"
int r2-eth0
ip ospf hello-interval 2
ip ospf dead-interval 10
+ ip ospf priority 2
!
int r2-eth1
ip ospf hello-interval 2
ip ospf dead-interval 10
+ ip ospf priority 1
!
"priority":1,
"state":"Full\/Backup",
"address":"10.0.1.1",
- "ifaceName":"r2-eth0:10.0.1.2",
- "retransmitCounter":0,
- "requestCounter":0,
- "dbSummaryCounter":0
+ "ifaceName":"r2-eth0:10.0.1.2"
}
],
"3.3.3.3":[
{
- "priority":1,
+ "priority":2,
"state":"Full\/Backup",
"address":"10.0.2.3",
"ifaceName":"r2-eth1:10.0.2.2"
],
"4.4.4.4":[
{
- "priority":1,
+ "priority":3,
"state":"Full\/DR",
"address":"10.0.2.4",
"ifaceName":"r2-eth1:10.0.2.2"
int r3-eth0
ip ospf hello-interval 2
ip ospf dead-interval 10
+ ip ospf priority 2
!
],
"4.4.4.4":[
{
- "priority":1,
+ "priority":3,
"state":"Full\/DR",
"address":"10.0.2.4",
"ifaceName":"r3-eth0:10.0.2.3"
int r4-eth0
ip ospf hello-interval 2
ip ospf dead-interval 10
+ ip ospf priority 3
!
],
"3.3.3.3":[
{
- "priority":1,
+ "priority":2,
"state":"Full\/Backup",
"address":"10.0.2.3",
"ifaceName":"r4-eth0:10.0.2.4"
int r1-eth0
ip ospf hello-interval 2
ip ospf dead-interval 10
+ ip ospf priority 1
!
"neighbors":{
"2.2.2.2":[
{
- "priority":1,
+ "priority":2,
"state":"Full\/DR",
"address":"10.0.1.2",
"ifaceName":"r1-eth0:10.0.1.1"
int r2-eth0
ip ospf hello-interval 2
ip ospf dead-interval 10
+ ip ospf priority 2
!
int r2-eth1
ip ospf hello-interval 2
ip ospf dead-interval 10
+ ip ospf priority 1
!
"priority":1,
"state":"Full\/Backup",
"address":"10.0.1.1",
- "ifaceName":"r2-eth0:10.0.1.2",
- "retransmitCounter":0,
- "requestCounter":0,
- "dbSummaryCounter":0
+ "ifaceName":"r2-eth0:10.0.1.2"
}
],
"3.3.3.3":[
{
- "priority":1,
+ "priority":2,
"state":"Full\/Backup",
"address":"10.0.2.3",
"ifaceName":"r2-eth1:10.0.2.2"
],
"4.4.4.4":[
{
- "priority":1,
+ "priority":3,
"state":"Full\/DR",
"address":"10.0.2.4",
"ifaceName":"r2-eth1:10.0.2.2"
int r3-eth0
ip ospf hello-interval 2
ip ospf dead-interval 10
+ ip ospf priority 2
!
],
"4.4.4.4":[
{
- "priority":1,
+ "priority":3,
"state":"Full\/DR",
"address":"10.0.2.4",
"ifaceName":"r3-eth0:10.0.2.3"
int r4-eth0
ip ospf hello-interval 2
ip ospf dead-interval 10
+ ip ospf priority 3
!
],
"3.3.3.3":[
{
- "priority":1,
+ "priority":2,
"state":"Full\/Backup",
"address":"10.0.2.3",
"ifaceName":"r4-eth0:10.0.2.4"
int r1-eth1
ip ospf hello-interval 2
ip ospf dead-interval 10
+ ip ospf priority 1
!
int r1-eth2
ip ospf hello-interval 2
ip ospf dead-interval 10
+ ip ospf priority 1
!
{
"dbSummaryCounter": 0,
"retransmitCounter": 0,
- "priority": 1,
- "state": "Full/DR",
+ "priority": 2,
+ "state": "Full\/DR",
"address": "10.0.1.2",
"ifaceName": "r1-eth1:10.0.1.1",
"requestCounter": 0
{
"dbSummaryCounter": 0,
"retransmitCounter": 0,
- "priority": 1,
- "state": "Full/DR",
+ "priority": 2,
+ "state": "Full\/DR",
"address": "10.0.2.3",
"ifaceName": "r1-eth2:10.0.2.1",
"requestCounter": 0
int r2-eth1
ip ospf hello-interval 2
ip ospf dead-interval 10
+ ip ospf priority 2
!
int r2-eth2
ip ospf hello-interval 2
ip ospf dead-interval 10
+ ip ospf priority 1
!
"1.1.1.1": [
{
"priority":1,
- "state":"Full/Backup",
+ "state":"Full\/Backup",
"address":"10.0.1.1",
"ifaceName":"r2-eth1:10.0.1.2",
"retransmitCounter":0,
],
"3.3.3.3": [
{
- "priority":1,
- "state":"Full/DR",
+ "priority":2,
+ "state":"Full\/DR",
"address":"10.0.3.3",
"ifaceName":"r2-eth2:10.0.3.2",
"retransmitCounter":0,
int r3-eth1
ip ospf hello-interval 2
ip ospf dead-interval 10
+ ip ospf priority 2
!
int r3-eth2
ip ospf hello-interval 2
ip ospf dead-interval 10
+ ip ospf priority 2
!
"1.1.1.1": [
{
"priority":1,
- "state":"Full/Backup",
+ "state":"Full\/Backup",
"address":"10.0.2.1",
"ifaceName":"r3-eth1:10.0.2.3",
"retransmitCounter":0,
"2.2.2.2": [
{
"priority":1,
- "state":"Full/Backup",
+ "state":"Full\/Backup",
"address":"10.0.3.2",
"ifaceName":"r3-eth2:10.0.3.3",
"retransmitCounter":0,