Ask Your Question
0

Block a mac address

asked 2015-12-20 10:32:08 -0700

Kernelalive gravatar image

Hello ! I new to opendaylight project and i would like to ask if it is possible to create a flow blocking some host by his mac address. Thanks in advance

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-01-06 06:40:33 -0700

runamuck gravatar image

Match on the MAC address and then execute a drop instruction.

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<flow xmlns="urn:opendaylight:flow:inventory">
    <table_id>0</table_id>
    <id>256</id>
    <match>
       <ethernet-match>
           <ethernet-type>
                <type>2048</type>
           </ethernet-type>
           <ethernet-destination>
                <address>5A:F6:C6:6A:DB:05</address>
           </ethernet-destination>
       </ethernet-match>
       <ip-match>
         <ip-protocol>6</ip-protocol>
       </ip-match>
    </match>
    <instructions>
        <instruction>
            <order>0</order>
                <drop>
        </instruction>
    </instructions>
    <hard-timeout>0</hard-timeout>
    <cookie>10</cookie>
    <idle-timeout>0</idle-timeout>
    <flow-name>drop_packet</flow-name>
    <priority>200</priority>
</flow>

You will need to edit the XML above with your MAC address and remove may want to remove the IP stanza.

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2015-12-20 10:32:08 -0700

Seen: 95 times

Last updated: Jan 06 '16