OSPF neighborship with different router-id and area

115 views
Skip to first unread message

Anzi Mukundan

unread,
Aug 4, 2022, 11:39:10 PM8/4/22
to TRex Traffic Generator
Hello everyone,

I want to establish OSPF neighborship between the router and the Trex
There are two Trex interfaces; the first one is set up with router-id 1.1.1.200 in area 2.
I've set up a second interface with router-id 1.1.1.100 in area 1.
When I try to establish ospf neighborship, the first interface ospf neighborship comes up
The second Trex interface  ospf neighborship doesnt come up, because Trex sends an ospf hello with the router id 1.1.1.200 and the area id 0.0.0.2.
(Even though the config file has different values  router-id 1.1.1.100 and area 0.0.0.1)

Please review my ospf.conf file and explain what went wrong.

protocol device {
    scan time 1;
}

protocol ospf my_ospf1 {
    router id 1.1.1.200;
    ipv4 {
        import all;
        export all;
    };
    area 2 {
        interface "*" {
             type broadcast;
        };
    };
}

protocol ospf my_ospf2 {
    router id 1.1.1.100;
    ipv4 {
        import all;
        export all;
    };
   area 1 {
      interface "*" {
           type broadcast;
      };
   };
}

Thanks,
Anzi

Besart Dollma

unread,
Aug 9, 2022, 4:16:18 AM8/9/22
to TRex Traffic Generator
Hi Anzi,
According to the documentation in Bird's website: https://bird.network.cz/?get_doc&v=20&f=bird-6.html#ss6.8 
You cannot add router id inside a protocol ospf.
So why did you decide to put router id inside? Did you just copy it from the top of the conf file?
Thanks,

Anzi Mukundan

unread,
Aug 11, 2022, 12:42:10 AM8/11/22
to TRex Traffic Generator
Hi Besi,

Yes, I just copy pasted from top of the conf file. I will try with same router-id and different areas and will update results

Thanks,
Anzi

Anzi Mukundan

unread,
Aug 18, 2022, 12:41:51 AM8/18/22
to TRex Traffic Generator

Hi Besi,

I have modified my ospf.conf file as below. Even now the second interface sends ospf hello with area id 2.(value configured for the first interface). Can you please help me with this?

router id 1.1.1.100;


protocol device {
    scan time 1;
}

protocol ospf my_ospf1 {
    ipv4 {
        import all;
        export all;
    };
    area 2 {
        interface "*" {
             type broadcast;
        };
    };
}

# Running a second BGP instance in another interface.
protocol ospf my_ospf2 {

    ipv4 {
        import all;
        export all;
    };
   area 1 {
      interface "*" {
           type broadcast;
      };
   };
}

Thanks,
Anzi
On Tuesday, August 9, 2022 at 1:46:18 PM UTC+5:30 besi7...@gmail.com wrote:

Besart Dollma

unread,
Aug 28, 2022, 7:00:04 AM8/28/22
to TRex Traffic Generator
But where are you telling the second interface to use area 1?
Do you have two veths?
Please draw a topology of what you have done so far and what you expect?

Anzi Mukundan

unread,
Aug 29, 2022, 2:31:48 AM8/29/22
to TRex Traffic Generator
Hi Besi,

Please find the topology diagram below

Trex1------------Router1---------Router2--------Trex2

I have ospf neighborship between Router1 and Router2 in area0. Interface between  Trex1 and Router1 is in area2. Interface between Router2 and Trex2 is in area1
And trying to establish neighborship between these Trex interface and routers

Thanks,
Anzi

Besart Dollma

unread,
Aug 29, 2022, 6:33:54 AM8/29/22
to TRex Traffic Generator
Ok, are these two different TRex servers/instance?

In TRex1 use the following config file:

router id 1.1.1.100;


protocol device {
    scan time 1;
}

protocol ospf my_ospf2 {
    ipv4 {
        import all;
        export all;
    };
    area 2 {
        interface "*" {
             type broadcast;
        };
    };
}

and in TRex2 use:

router id 1.1.1.100;


protocol device {
    scan time 1;
}

protocol ospf my_ospf1 {
    ipv4 {
        import all;
        export all;
    };
    area 1 {
        interface "*" {
             type broadcast;
        };
    };
}

Anzi Mukundan

unread,
Aug 30, 2022, 3:09:22 AM8/30/22
to TRex Traffic Generator
Hi Besi, 

Both Trex ports are in same server. I have just given the logical topology

Thanks,
Anzi

Besart Dollma

unread,
Sep 1, 2022, 9:37:11 AM9/1/22
to TRex Traffic Generator
Ok, can you please described the bird nodes you have added?

Thanks,

Anzi Mukundan

unread,
Sep 2, 2022, 7:31:19 AM9/2/22
to TRex Traffic Generator
Hi Besi,

I have added 2 nodes, as below

plugins bird add_node -p 0 --mac 00:00:00:01:00:07 --ipv4 52.52.52.10 --ipv4-subnet 24 --mtu 9100
plugins bird add_node -p 1 --mac 00:00:00:01:00:08 --ipv4 51.51.51.10 --ipv4-subnet 24 --mtu 9100

Thanks,
Anzi

Reply all
Reply to author
Forward
0 new messages