r/Juniper•
SS324

QQ regarding next-hop-self

how is the IP address of next-hop-self in a policy statement decided? Im under the impression that it's the local address you configure under the neighbor statement

For example

group MY_NEIGHBOR {
    type external;
    import in;
    export out;
    peer-as 11111;
    neighbor 192.168.1.1 {
        multihop;
        local-address 10.0.0.1;
    }
    neighbor 192.168.1.2 {
        multihop;
        local-address 10.0.0.2;
    }

If my policy statement out is:

then {
    next-hop self;
    accept;
}

Then I believe that for neighbor 192.168.1.1, the next-hop will be 10.0.0.1, but for 192.168.1.2, the next hop will be 10.0.0.2. Can someone confirm if this is intended behavior?

Posted Aug 20, 2024, 6:40 PM UTC

54

Comments aren't archived yet

This post had 4 comments on Reddit. Comments for this period haven't been loaded into the archive yet.