[FROG] What 'ge' 'le' really means ?

Daniel Corbe daniel at corbe.net
Thu Feb 20 04:45:45 EST 2020


The ge keyword exists so you can poke range holes in a larger subnet.

For example:

ip prefix-list test_ipv4_1_1 seq 10 deny 192.18.8.0/16 ge 24 le 30

Will match against IP addresses anywhere in 192.18.8.0/16 as long as
the advertised prefix is between 24 and 30 bits long.

On Wed, Feb 19, 2020 at 8:53 PM Simon Jones <batmanustc at gmail.com> wrote:
>
> Oh, thanks, so in summary:
>
> If I want to match 192.18.8.1/16 to 192.18.8.1/24, I use
> ip prefix-list test_ipv4_1_1 seq 10 permit 192.18.8.0/16 le 24
>
> If I want to match 192.18.8.1/24 to 192.18.8.1/32, I use
> ip prefix-list test_ipv4_1_1 seq 10 permit 192.18.8.0/24 le 32
>
> If I want to NOT match 192.18.8.1/16 to 192.18.8.1/24, I use
> ip prefix-list test_ipv4_1_1 seq 10 deny 192.18.8.0/16 le 24
>
> Is that correct?
>
> But, what is 'ge' used for ... ?
>
> ----
> Simon Jones
>
>
> Daniel Corbe <daniel at corbe.net> 于2020年2月16日周日 下午3:36写道:
>>
>> typo in my reply.  When I said ip prefix-list test_ipv4_1_1 seq 10
>> permit 192.18.8.0/24 ge 32 I meant ip prefix-list test_ipv4_1_1 seq 10
>> permit 192.18.8.0/24 le 32
>>
>> On Sun, Feb 16, 2020 at 2:35 AM Daniel Corbe <daniel at corbe.net> wrote:
>> >
>> > Simon,
>> >
>> > If you're trying to specify a maximum prefix length of 32, you need
>> > the le keyword.
>> >
>> > ip prefix-list test_ipv4_1_1 seq 10 permit 192.18.8.0/24 ge 32 means
>> > "accept any prefix length for 192.18.8.0 between 24 and 32 bits"
>> >
>> > IE ip prefix-list test_ipv4_1_1 seq 10 permit <subnet>/<shortest
>> > prefix match> le <longest prefix match>
>> >
>> > On Sat, Feb 15, 2020 at 5:47 PM Simon Jones <batmanustc at gmail.com> wrote:
>> > >
>> > > Hi all,
>> > >
>> > > In this command:
>> > >>
>> > >> gyw-229(config)# ip prefix-list test_ipv4_1_1 seq 10 permit 192.18.8.0/24 ge 24
>> > >> % Invalid prefix range for 192.18.8.0/24, make sure: len < ge-value <= le-value
>> > >> gyw-229(config)# ip prefix-list test_ipv4_1_1 seq 10 permit 192.18.8.0/24 ge 25
>> > >
>> > > we see 'ge' means greater.
>> > >
>> > > But in doc:
>> > >>
>> > >> ge command specifies prefix length. The prefix list will be applied if the
>> > >> prefix length is greater than or equal to the ge prefix length
>> > >
>> > >
>> > > So what's 'ge' really means?
>> > > And how to set equal command? Set equal command using 'ge xxx le xxx' before, but if 'ge' means greater, how to set? Use this command?
>> > >>
>> > >> ip prefix-list test_ipv4_1_1 seq 10 permit 192.18.8.0/32
>> > >
>> > >
>> > > ----
>> > > Simon Jones
>> > > _______________________________________________
>> > > frog mailing list
>> > > frog at lists.frrouting.org
>> > > https://lists.frrouting.org/listinfo/frog



More information about the frog mailing list