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

Simon Jones batmanustc at gmail.com
Wed Feb 19 20:53:30 EST 2020


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/
<http://192.18.8.0/24>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/
<http://192.18.8.0/24>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/
<http://192.18.8.0/24>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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.frrouting.org/pipermail/frog/attachments/20200220/1ee0d6bc/attachment.html>


More information about the frog mailing list