Ask Your Question
0

how to set MAC/IP address flow as default flow instead port-based flow

asked 2016-04-13 01:08:01 -0700

luis999 gravatar image

hi,

i have create a custom topology in mininet and have install opendaylight.

on my opendaylight, i have install 'old-dlux-all' and 'odl-l2switch-switch-ui'.

the opendaylight will add port-base flows into the switch's flow-table, when i set up a topology. i want to create a dedicated flow using mac address.

example:

h1------------s1---------------s2----------------h2

S1 & S2 flows:

inport=1,actions=output:2,output:controller:65535
in
port=2,actions=output:1,output:controller:65535



my question is

1) How to set MAC/IP address flow as default flow instead port-based flow?

2) How the packet reach the destination in a port-based flow topology?

many thanks in advance. :)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-04-13 02:07:12 -0700

karthik330 gravatar image

Hi , In L2switch you have to modify to change the default with MAC/ IP . refer this link link text . You will get idea which class to modify. Gitclone the L2switch (Version should be matched with whatever mentioned in ODL's Pom file). Add the match and action (you have to add your code.)..Build your L2switch and also ODL . Then launch your ODL install l2switch and connect mininet . The Flows will be reflected in each switch. you can check using sudo ovs-ofctl dump-flows s1 command.

Thanks, -Karthik

edit flag offensive delete publish link more

Comments

Thank You. not sure how to program it.

luis999 ( 2016-04-15 00:31:54 -0700 )edit
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2016-04-13 01:08:01 -0700

Seen: 107 times

Last updated: Apr 13 '16