[j-nsp] Filter odd and even ip address in JUNOS
Kae Hsu
kae at du.net.tw
Wed Feb 8 00:20:51 EST 2006
I got the answer from user guide,
It is allowed to use wildcard bits style address in filter filter:
{master}[edit firewall family inet filter test]
cn at LAB-M40e# show
/* Filter source IP address with odd host number in 192.168.10.0/24 */
term 1 {
from {
source-address {
192.168.10.1/0.0.0.254;
}
}
}
/* Filter source IP address with even host number in 192.168.10.0/24 */
term 2 {
from {
source-address {
192.168.10.0/0.0.0.254;
}
}
}
{master}[edit firewall family inet filter test]
cn at LAB-M40e#
Best Regards,
Kae Hsu
Communication Network Dept.
Digital United Inc. (AS4780)
http://www.digitalunited.com/
Kae Hsu wrote:
> Dear all:
>
> Does anyone have idea in this issue?
> OR I can't find this feature in current JUNOS release?
> Any opinion is welcome, thanks!!!
>
>
> Best Regards,
>
> Kae Hsu
> Communication Network Dept.
> Digital United Inc. (AS4780)
> http://www.digitalunited.com/
>
>
> Kae Hsu wrote:
>
>>Hello guys:
>>
>>In IOS command we can use wildcard bits to accomplish this goal;
>>For example I can use
>>access-list 1 permit ip 192.168.10.1 0.0.0.254
>>to filter "odd" addresses and
>>access-list 2 permit ip 192.168.10.0 0.0.0.254
>>to filter "even" addresses from 192.168.10/24
>>
>>Could I have a equivalence command(S) in JUNOS??
>>
>
> _______________________________________________
> juniper-nsp mailing list juniper-nsp at puck.nether.net
> http://puck.nether.net/mailman/listinfo/juniper-nsp
>
More information about the juniper-nsp
mailing list