我使用 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。謝謝。