I didn't test the multi port config too thoroughly because our setup did not require separated Ethernet ports on the "lan" side but here is one config that I was playing with.
config interface loopback
option ifname lo
option proto static
option ipaddr 127.0.0.1
option netmask 255.0.0.0
config interface lan
option ifname "eth1"
option proto dhcp
config switch_vlan
option device eth1
option vlan 1
option ports "0 1 2 3 4 5t"
config interface wan
option ifname "eth0"
option proto static
option ipaddr 192.168.1.1
option netmask 255.255.255.0
ceraldi wrote:UrsusArctos wrote:I have already extended the ip175c driver by Patrick Horn to handle the IP175D as well. I hope it will get merged to OpenWRT soon, as soon as it gets some testing other than on my RB450. If you are interested, feel free to ask me for a patch by e-mail to mj@ucw.cz.
Got this patch and just wanted to say THANKS! it works perfectly with the ip175d chip and also seams to work great on a ip178c please include this patch in the trunk or backfire releases.
-A
Hi, I can't find a way to configure my RB450 with separate ports
dmesg: IP17xx: Found IP175D at ag71xx-mdio:00 ag71xx_mdio: probed eth0: Atheros AG71xx at 0xba000000, irq 5 eth0: connected to PHY at ag71xx-mdio:04 [uid=02430d80, driver=Generic PHY] eth1: Atheros AG71xx at 0xb9000000, irq 4 eth1: connected to PHY at ag71xx-mdio:00 [uid=02430d80, driver=IC+ IP17xx] root@OpenWrt:~# swconfig dev eth1 show Global attributes: enable_vlan: 1 name: IP175D phy: 0 reg: 0 val: 12544 Port 0: status: up, 100 Mbps, full duplex, auto-negotiate link: 100 tagged: 0 pvid: 5 Port 1: status: down, auto-negotiate (in progress) link: 0 tagged: 0 pvid: 4 Port 2: status: down, auto-negotiate (in progress) link: 0 tagged: 0 pvid: 3 Port 3: status: down, auto-negotiate (in progress) link: 0 tagged: 0 pvid: 2 Port 4: status: down, auto-negotiate (in progress) link: 0 tagged: 0 pvid: 0 Port 5: status: up, 100 Mbps, cpu port link: 100 tagged: 0 pvid: 5 VLAN 0: tag: 1 ports: VLAN 1: tag: 2 ports: VLAN 2: tag: 3 ports: 3 5 VLAN 3: tag: 4 ports: 2 5 VLAN 4: tag: 5 ports: 1 5 VLAN 5: tag: 6 ports: 0 5 VLAN 6: tag: 7 ports: VLAN 7: tag: 8 ports: VLAN 8: tag: 9 ports: VLAN 9: tag: 10 ports: VLAN 10: tag: 11 ports: VLAN 11: tag: 12 ports: VLAN 12: tag: 13 ports: VLAN 13: tag: 14 ports: VLAN 14: tag: 15 ports: VLAN 15: tag: 16 ports: root@OpenWrt:~# ifconfig eth0 Link encap:Ethernet HWaddr 00:0C:42:5B:87:DD inet addr:192.168.250.250 Bcast:192.168.250.255 Mask:255.255.255.0 inet6 addr: fe80::20c:42ff:fe5b:87dd/64 Scope:Link UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:15 errors:0 dropped:0 overruns:0 frame:0 TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:3156 (3.0 KiB) TX bytes:468 (468.0 B) Interrupt:5 eth1 Link encap:Ethernet HWaddr 00:0C:42:5B:87:DE inet addr:192.168.1.254 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::20c:42ff:fe5b:87de/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:30 errors:0 dropped:0 overruns:0 frame:0 TX packets:42 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:4264 (4.1 KiB) TX bytes:3036 (2.9 KiB) Interrupt:4 eth1.2 Link encap:Ethernet HWaddr 00:0C:42:5B:87:DE inet addr:192.168.2.254 Bcast:192.168.2.255 Mask:255.255.255.0 inet6 addr: fe80::20c:42ff:fe5b:87de/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:5 errors:0 dropped:1 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:398 (398.0 B) eth1.3 Link encap:Ethernet HWaddr 00:0C:42:5B:87:DE inet addr:192.168.3.254 Bcast:192.168.3.255 Mask:255.255.255.0 inet6 addr: fe80::20c:42ff:fe5b:87de/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:492 (492.0 B) eth1.4 Link encap:Ethernet HWaddr 00:0C:42:5B:87:DE inet addr:192.168.4.254 Bcast:192.168.4.255 Mask:255.255.255.0 inet6 addr: fe80::20c:42ff:fe5b:87de/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:492 (492.0 B) eth1.5 Link encap:Ethernet HWaddr 00:0C:42:5B:87:DE inet addr:192.168.5.254 Bcast:192.168.5.255 Mask:255.255.255.0 inet6 addr: fe80::20c:42ff:fe5b:87de/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:15 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:906 (906.0 B) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:9 errors:0 dropped:0 overruns:0 frame:0 TX packets:9 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1008 (1008.0 B) TX bytes:1008 (1008.0 B) root@OpenWrt:~# cat /etc/config/network config interface loopback option ifname lo option proto static option ipaddr 127.0.0.1 option netmask 255.0.0.0 config interface wan option ifname eth0 option proto static option ipaddr 192.168.250.250 option netmask 255.255.255.0 config interface port3 option ifname "eth1.2" option proto static option ipaddr 192.168.2.254 option netmask 255.255.255.0 config interface port2 option ifname "eth1.3" option proto static option ipaddr 192.168.3.254 option netmask 255.255.255.0 config interface port1 option ifname "eth1.4" option proto static option ipaddr 192.168.4.254 option netmask 255.255.255.0 config interface port0 option ifname "eth1.5" option proto static option ipaddr 192.168.5.254 option netmask 255.255.255.0 config switch eth1 option name eth1 option reset 1 option enable_vlan 1 config switch_vlan option device eth1 option vlan 2 option ports "5 3" config switch_vlan option device eth1 option vlan 3 option ports "5 2" config switch_vlan option device eth1 option vlan 4 option ports "5 1" config switch_vlan option device eth1 option vlan 5 option ports "5 0"
I can't ping any eth1.X, just eth1 and eth0
Am I missing something?
ceraldi, can you please port your configuration?
Thank you.
(Last edited by ceraldi on 27 Apr 2010, 20:56)