BGP session shows "Socket: Network is unreachable" Bird 2.0.7 and Trex 2.85

159 views
Skip to first unread message

Rajiv kumar

unread,
Jun 15, 2023, 4:38:32 AM6/15/23
to TRex Traffic Generator
HI Team,

Need help,

Trying to create BGP session between Bird and DUT, I am running Trex on linux Host and on same host I have DUTs as VMs created a bridge and network between Trrex and DUT
                                                                                         172.31.77.202
BIRD -----------------------Trex-----------Birdge-vnet0-----------p1-DUT
172.31.77.203                                       172.31.77.201

I could ping fro DUT to 172.31.77.201 and 172.31.77.203
created bgp config as below on bird

trex(service)>plugins bird show_config
router id 100.100.100.100;

protocol device {
    scan time 1;
}

protocol bgp my_bgp1 {
    local 172.31.77.203 as 65000;  # put your local ip and as number here
    neighbor 172.31.77.202 as 65000;  # put your dut ip and as number here
    ipv4 {
        import all;
        export all;
    };
}

protocol static {
    ipv4 {
        import all;
        export all;
    };

    route 42.42.42.0/32 via 1.1.1.3;
    route 42.42.42.1/32 via 1.1.1.3;
    route 42.42.42.2/32 via 1.1.1.3;
    route 42.42.42.3/32 via 1.1.1.3;
    route 42.42.42.4/32 via 1.1.1.3;
    route 42.42.42.5/32 via 1.1.1.3;
    route 42.42.42.6/32 via 1.1.1.3;
    route 42.42.42.7/32 via 1.1.1.3;
    route 42.42.42.8/32 via 1.1.1.3;
    route 42.42.42.9/32 via 1.1.1.3;
    route 42.42.42.10/32 via 1.1.1.3;
}

trex(service)>


Still BGP session shows Network Unreachable and BGP Session is stuck in "Connect"
trex(service)>plugins bird show_protocols
Name       Proto      Table      State  Since         Info
device1    Device     ---        up     08:25:39.438
my_bgp1    BGP        ---        start  08:25:39.438  Connect       Socket: Network is unreachable
static1    Static     master4    up     08:25:39.438
trex(service)>
Reply all
Reply to author
Forward
0 new messages