I have Linksys WRT54G v2. Can I set 5 separate network interaces for each ethernet port (1-4, +wan) on it? If I can, I don't understand, how it would be done. Help me, please.
Topic: Can I set 5 separate interfaces for each ethernet port?
The content of this topic has been archived on 26 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.
You may want to take a look at the wiki:
http://wiki.openwrt.org/OpenWrtDocs/Con … dbd3a2f505
You can also use just NVRAM variables to break out your ports into their own vlans. It also works on more devices than robocfg. See:
http://wiki.openwrt.org/OpenWrtDocs/Con … f4e2929172
The variables you need to create/change are:
vlan*ports
vlan*hwname
*_ifname
*_proto
*_ipaddr
*_netmask
After adding your new interface variables you'll want to add entries for them "ifup <ifacename>" to your network startup script and duplicate some lines from the firewall script for the new interfaces (both files in /etc/init.d). This works very well and is consistent with the default interface/vlan configurations.
You may want to take a look at the wiki:
http://wiki.openwrt.org/OpenWrtDocs/Con … dbd3a2f505
As I understand, robocfg only work with BCM5325E/536x switch, but Linksys has ADM6996L one, doesn't it?
The variables you need to create/change are:
vlan*ports
vlan*hwname
*_ifname
*_proto
*_ipaddr
*_netmaskAfter adding your new interface variables you'll want to add entries for them "ifup <ifacename>" to your network startup script and duplicate some lines from the firewall script for the new interfaces (both files in /etc/init.d). This works very well and is consistent with the default interface/vlan configurations.
I already have tried this, but, perhaps, I've done something wrong and anything did not work. As result, I needed to get failsafe mode.
Well, I'll try again, may be I know where is mistake. I am just interesting, what are some minimal steps to catch main principal? Should I change lan_ifname to anything against "br0"? It's seemed to be non-changable.
Should I remove lan_ipaddr and lan_netmask values? Without them it's direct way to failsafe.
Void Main wrote:The variables you need to create/change are:
vlan*ports
vlan*hwname
*_ifname
*_proto
*_ipaddr
*_netmaskAfter adding your new interface variables you'll want to add entries for them "ifup <ifacename>" to your network startup script and duplicate some lines from the firewall script for the new interfaces (both files in /etc/init.d). This works very well and is consistent with the default interface/vlan configurations.
I already have tried this, but, perhaps, I've done something wrong and anything did not work. As result, I needed to get failsafe mode.
Well, I'll try again, may be I know where is mistake. I am just interesting, what are some minimal steps to catch main principal? Should I change lan_ifname to anything against "br0"? It's seemed to be non-changable.
Should I remove lan_ipaddr and lan_netmask values? Without them it's direct way to failsafe.
So I have 2 questions!
1) Could a person setup a wrt54g with 4 seperate ip addresses and then use a load balancer to connect 4 seperate
DLS/WISP connects to increate the max throughput?
2) Is there a 'load balancer' package for OpenWRT?
(Last edited by MrUmunhum on 8 Dec 2005, 22:49)
So, I've tried it again, but had not required results.
What I had before:
lan_ifname="br"
lan_ifnames="vlan0"
lan_ipaddr="192.168.1.1"
lan_netmask="255.255.255.0"
lan_proto="static"
vlan0hwname="et0"
vlan0ports="1 2 3 4 5*"
vlan1hwname="et0"
vlan1ports="0 5"
What I've changed:
lan_ifnames="vlan0 vlan1"
vlan0ports="1 2 5*"
vlan1ports="3 4 5*"
vlan2ports="0 5"
vlan2hwname="et0"
vlan1_ifname="vlan1"
vlan1_proto="static"
vlan1_ipaddr="192.168.0.1"
vlan1_netmask="255.255.255.0"
After reboot, I execute
ifup vlan1
and got that ifconfig result:
br0 Link encap:Ethernet HWaddr 00:12:17:BD:47:FD
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:514 errors:0 dropped:0 overruns:0 frame:0
TX packets:162 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:30090 (29.3 KiB) TX bytes:24937 (24.3 KiB)
eth0 Link encap:Ethernet HWaddr 00:12:17:BD:47:FD
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:515 errors:0 dropped:0 overruns:0 frame:0
TX packets:476 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:41480 (40.5 KiB) TX bytes:46989 (45.8 KiB)
Interrupt:5 Base address:0x2000
eth1 Link encap:Ethernet HWaddr 00:12:17:BD:47:FE
inet addr:10.254.254.229 Bcast:10.254.254.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:204 errors:0 dropped:0 overruns:0 frame:133
TX packets:156 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:13917 (13.5 KiB) TX bytes:12383 (12.0 KiB)
Interrupt:4 Base address:0x1000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:261 errors:0 dropped:0 overruns:0 frame:0
TX packets:261 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:29232 (28.5 KiB) TX bytes:29232 (28.5 KiB)
ppp0 Link encap:Point-Point Protocol
inet addr:172.18.18.2 P-t-P:172.18.18.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1400 Metric:1
RX packets:54 errors:0 dropped:0 overruns:0 frame:0
TX packets:55 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:1011 (1011.0 B) TX bytes:1055 (1.0 KiB)
vlan0 Link encap:Ethernet HWaddr 00:12:17:BD:47:FD
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:138 errors:0 dropped:0 overruns:0 frame:0
TX packets:99 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:10645 (10.3 KiB) TX bytes:17830 (17.4 KiB)
vlan1 Link encap:Ethernet HWaddr 00:12:17:BD:47:FD
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:376 errors:0 dropped:0 overruns:0 frame:0
TX packets:377 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:21501 (20.9 KiB) TX bytes:29159 (28.4 KiB)
It is seemed to work, but uplugging the network cable form port 1 and plugging it to port 3 does not make any effect. It is still working with 192.168.1.1 and not working with 192.168.0.1
As I think, It is because of br0 has one common ip address against every vlan have own one. Should I need remove lan_ipaddr value?
Take a look at these threads:
http://forum.openwrt.org/viewtopic.php?id=2438
http://forum.openwrt.org/viewtopic.php?id=2656
Also, know your switch port layout:
http://voidmain.is-a-geek.net/i/WRT54_s … ecture.png
http://voidmain.is-a-geek.net/i/WRT54_s … ecture.png
The discussion might have continued from here.