나는 FPM을 가지고 놀고 있었고 그것이 당신이 찾고있는 것을 할 수 있다고 생각합니다.
load protocol system:fpm/phdf/ether.phdf
load protocol flash:/fpm/phdf/ipv6.phdf
!
class-map type stack match-all cm-ipv6
match field ETHER type eq 0x86DD next IPV6
class-map type access-control match-all cm-ipv6-facebook
match start IPV6 dest-addr offset 9 size 4 eq 0xFACEB00C
!
policy-map type access-control pm-ipv6-facebook
class cm-ipv6-facebook
drop
policy-map type access-control pm-filter
class cm-ipv6
log
service-policy pm-ipv6-facebook
!
interface FastEthernet0/1
service-policy type access-control input pm-filter
나는 이것을 위해 내 자신의 ipv6.phdf 파일을 굴려야했다.
<?xml version="1.0" encoding="UTF-8"?>
<phdf>
<version>1</version>
<protocol name="ipv6" description="Definition-for-the-IPv6-protocol">
<field name="version" description="IP version">
<offset type="fixed-offset" units="bits">0</offset>
<length type="fixed" units="bits">4</length>
</field>
<field name="tc" description="IPv6-Traffic-Class">
<offset type="fixed-offset" units="bits">4</offset>
<length type="fixed" units="bits">8</length>
</field>
<field name="fl" description="IPv6-Flow-Label">
<offset type="fixed-offset" units="bits">12</offset>
<length type="fixed" units="bits">20</length>
</field>
<field name="length" description="IPv6-Payload-Length">
<offset type="fixed-offset" units="bits">32</offset>
<length type="fixed" units="bits">16</length>
</field>
<field name="nh" description="IPv6-Next-Header">
<offset type="fixed-offset" units="bits">48</offset>
<length type="fixed" units="bits">8</length>
</field>
<field name="hl" description="IPv6-Hop-Limit">
<offset type="fixed-offset" units="bits">56</offset>
<length type="fixed" units="bits">8</length>
</field>
<field name="source-addr" description="IPv6-Source-Address">
<offset type="fixed-offset" units="bits">64</offset>
<length type="fixed" units="bits">128</length>
</field>
<field name="dest-addr" description="IPv6-Destination-Address">
<offset type="fixed-offset" units="bits">192</offset>
<length type="fixed" units="bits">128</length>
</field>
<field name="payload-start" description="IPv6-Payload-Start">
<offset type="fixed-offset" units="bits">320</offset>
<length type="fixed" units="bits">0</length>
</field>
<headerlength type="fixed" value="320"></headerlength>
<constraint field="version" value="6" operator="eq"></constraint>
</protocol>
</phdf>
불행히도, "show policy-map type 액세스 제어 인터페이스 fa0 / 1"을 수행 할 때 ethertype과 일치하는 항목이 없습니다.
FastEthernet0/1
Service-policy access-control input: pm-filter
Class-map: cm-ipv6 (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: field ETHER type eq 0x86DD next IPV6
log
Service-policy access-control : pm-ipv6-facebook
Class-map: cm-ipv6-facebook (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps
Match: start IPV6 dest-addr offset 9 size 4 eq 0xFACEB00C
drop
Class-map: class-default (match-any)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: any
Class-map: class-default (match-any)
10000 packets, 1863618 bytes
5 minute offered rate 14000 bps, drop rate 0 bps
Match: any
Facebook의 IPv6 주소에 대한 핑 (ping)이 CEF를 통해 제대로 실행되고 있지 않거나 ( FPM FAQ 에 필요하다고 표시되어 있음) 뭔가 빠진 것 같습니다. 아직도, 나는 그것을 씹고 싶은 사람을 위해 이것을 내놓고 있습니다.