Wie lege ich die Netzwerkkonfiguration für Openflow auf OpenWRT fest?

Wie lege ich die Netzwerkkonfiguration für Openflow auf OpenWRT fest?

Ich habe mit Openflow 1.3 einen benutzerdefinierten Openwrt (Barrier Breaker) erstellt und konnte ihn im Out-of-Band-Modus mit dem Ryo Simple_Switch_13-Controller verbinden. Die Ethernet-Ports 3 und 4 sind als Openflow-Ports eingestellt, aber wenn ich ein Gerät an diese Ports anschließe und die IP manuell einstelle, kann es weder 192.168.1.1 noch ein anderes Gerät im selben Netzwerk anpingen!
Was ist hier das Problem? Openflow scheint in Ordnung zu sein und diese Ports funktionieren normal, wenn sie nicht als Openflow-Ports eingestellt sind. Bitte geben Sie einige Hinweise.

Konfigurationsdateien in OpenWRT sind:

/etc/config/netzwerk

config switch 'eth0'                                                                
    option name 'eth0'                                                          
    option reset '1'                                                            
    option enable_vlan '1'                                                      

config switch_vlan                                                                  
    option device 'eth0'                                                        
    option vlan '1'                                                             
    option ports '1 2 8t'                                                       

config switch_vlan                                                                  
    option device 'eth0'                                                        
    option vlan '2'                                                             
    option ports '0 8t'                                                         

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

config globals 'globals'                                                            
    option ula_prefix 'fdbe:80c3:7cea::/48'                                     

config interface 'lan'                                                              
    option ifname 'eth0.1'                                                      
    option force_link '1'                                                       
    option type 'bridge'                                                        
    option proto 'static'                                                       
    option ipaddr '192.168.1.1'                                                 
    option netmask '255.255.255.0'                                              
    option ip6assign '60'                                                       

config interface 'wan'                                                              
    option ifname 'eth0.2'                                                      
    option proto 'dhcp'                                                         

config interface 'wan6'                                                             
    option ifname '@wan'                                                        
    option proto 'dhcpv6'                                                       

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

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

/etc/config/openflow-Datei:

config 'ofswitch'
    option 'dp' 'dp0'
    option 'dpid' '000000000001'
    option 'ofports' 'eth0.3 eth0.4'
    option 'ofctl' 'tcp:CONTROLLER_IP:6633'
    option 'mode'  'outofband'

Ryu simple_switch_13 läuft als Out-of-Band-Controller und das Gerät ist Linksys E3000. Danke.

verwandte Informationen