如何在openwrt上设置openflow的网络配置?

如何在openwrt上设置openflow的网络配置?

我使用 Openflow 1.3 制作了一个自定义的 Openwrt(屏障断路器),我可以将其连接到带外模式下的 ryo simple_switch_13 控制器。以太网端口号 3 和 4 设置为 openflow 端口,但当我将设备连接到这些端口并手动设置 IP 时,它将无法 ping 192.168.1.1 或同一网络上的任何其他设备!
这里的问题是什么?Openflow 似乎没问题,当这些端口未设置为 openflow 端口时,它们可以正常工作。请给出一些提示。

openwrt里面的配置文件是:

/etc/config/网络

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 文件:

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 作为带外控制器运行,设备是 Li nksys E3000。谢谢。

相关内容