How to set individual ports for floodlight

83 views
Skip to first unread message

Swift

unread,
Nov 29, 2012, 12:56:34 AM11/29/12
to openflo...@googlegroups.com
Hi,
   Can anyone tell me how to set individual ports for the switch to be able to switch traffic flow using Avior1.24?

The model of my switch is TP-link 1043nd

i also followed OpenWRT tutorial at http://www.openflow.org/wk/index.php/Pantou_:_OpenFlow_1.0_for_OpenWRT
the code i change under the network configuration is as follows :

************************************************************************
config 'switch'
        option 'name' 'rtl8366rb'
        option 'reset' '1'
        option 'enable_vlan' '1'
        option 'enable_learning' '0'
        
config 'switch_vlan'
        option 'device' 'rtl8366rb'
        option 'vlan' '1'
        option 'ports' '1 5t'

config 'switch_vlan'
        option 'device' 'rtl8366rb'
        option 'vlan' '2'
        option 'ports' '2 5t'

config 'switch_vlan'
        option 'device' 'rtl8366rb'
        option 'vlan' '3'
        option 'ports' '3 5t'

config 'switch_vlan'
        option 'device' 'rtl8366rb'
        option 'vlan' '4'
        option 'ports' '4 5t'

config 'switch_vlan'
        option 'device' 'rtl8366rb'
        option 'vlan' '5'
        option 'ports' '0 5t'

config 'interface' 'loopback'
        option 'ifname' 'lo'
        option 'proto'  'static'
        option 'ipaddr' '127.0.0.1'
        option 'netmask' '255.0.0.0'
        
config 'interface'
        option 'ifname' 'eth0.1'
        option 'proto' 'static' 

config 'interface'
        option 'ifname' 'eth0.2'
        option 'proto' 'static' 

config 'interface'
        option 'ifname' 'eth0.3'
        option 'proto' 'static' 

config 'interface'
        option 'ifname' 'eth0.4'
        option 'proto' 'static' 

config 'interface'
        option 'ifname' 'eth0.5'
        option 'proto' 'static'
        option 'ipaddr' '192.168.1.1'
        option 'netmask' '255.255.255.0'
********************************************
And i receive error of 'Destination host unreachable' when i ping.

Thanks in advance!

Ryan Flaherty

unread,
Nov 29, 2012, 1:55:44 PM11/29/12
to openflo...@googlegroups.com
Hello!
Do you have an your switch configured to communicate with a floodlight controller?  Before running Avior, you should be able to ping connected devices provided they are on the same subnet.

Avior would be used after this to set static flows between ports instead of having the controller set them dynamically.

Does this help at all?

Wei Sheng Tan

unread,
Nov 30, 2012, 1:26:00 AM11/30/12
to openflo...@googlegroups.com
Hi,
I have this scenario whereby when I have 2 VLANS (Vlan A and Vlan B). At VLan A, 2 hosts are able to ping each other. I want to allow computer A in VLAN A to be able to ping computer 1 at VLAN B. Whereby, I would need to do port switching and vlan switching at either 1 of them. I know that I am able to set vlan id using Avior however I am unable to do it. Do you have any idea on how i can set the configuration using Avior? Thankyou.

Regards,

Wei Sheng
Reply all
Reply to author
Forward
0 new messages