CPqD / ofsoftswitch13

OpenFlow 1.3 switch.
http://cpqd.github.com/ofsoftswitch13
304 stars 192 forks source link

The steps mentioned for openflow openwrt TP-Link 1043nd will work for TPLink 4300 router ?? #209

Closed kaliyaperumal closed 6 years ago

kaliyaperumal commented 9 years ago

I followed the steps that had mentioned this Git hub for building and configuring openflow openwrt image for TPlink 4300 router.

https://github.com/Farzaneh1363/OpenFlow-for-OpenWRT-OpenFlow-wireless-network-/wiki

Out of 4 lan ports, 3 ports are one vlan and one port different vlan. But whenever I plug the host to the second port that has different vlan, the host is not getting DHCP Ip and it is not able to ping the WAN IP. But this is not happening for the hosts that are there in other ports.

I set the static ip and set the flow for host in lan port1 and host in lan2 port and they are able to ping each other but WAN ip is not reachable.

What will be the issue?.

/etc/config/openflow file entry

config 'ofswitch' option 'dp' 'dp0' option 'dpid' '000000000001' option 'ofports' 'eth0.1 eth0.3' option 'ofctl' 'tcp::6633' option 'ipaddr' '192.168.2.54' option 'gateway' '192.168.2.2' option 'netmask' '255.255.255.0' option 'mode' 'inband'

/etc/config/network entries

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 'fdd6:8873:2e7f::/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 switch option name 'switch0' option reset '1' option enable_vlan '1' option enable_learning '0'

config switch_vlan option device 'switch0' option vlan '1' option ports '0t 2 4 5'

config switch_vlan option device 'switch0' option vlan '2' option ports '0t 1'

config switch_vlan option device 'switch0' option vlan '3' option ports '0t 3'

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