yea, i doubt many would go through the trouble to do that. and just buy an out of the box solution.
but wouldnt that just split the bandwidth of the 2.5g port over 4 ports ? there for not really 4 x 2.5g ports?
so the 2.5g can be lan, or wan, just as the 1g can be as well ? if so, thats not bad, but still limiting the band with either way if some one has better then 1 gig service... i have 4 people where i am, and i doubt the 4 of us have been able to max out the 1 gig D/L speed...
That is not how networking works .. not ... remotely.
All switches have something called backplane speed, which is the total bandwidth or packets the switch can process. Since your not likely to go anywhere near the packet limit on such a simple layer 2 device, it's the total bandwidth that is important. That bandwidth is usually measured in tens to hundreds of Gb/s. One 1Gbe port has a theoretical max bandwidth of 2Gb/s, a four port ethernet switch would only have to handle 8Gb/s backplane, which is easily done on anything made in the past couple of decades.
So a switch does not "divide bandwidth across all ports", it just routes layer 2 packets from source to destination. If device A is on port 1 and needs to send to device C on port 3, the switch to relay that packet from port 1 to port 3, ports 2 and 4 never see anything. If device A, B and C all need to send to device D, the switch will order and relay all three streams of packets down port 4 where Device D is plugged in.
If you have a 1Gb/s
internet connection then your maximum download speed, regardless of number of devices, is 125MB's. Most gateways operate under a First In First Out (FIFO) queuing system, so unless you have setup Quality of Service (QoS), then all packets are going to be handled in the order they are received in.
There is
nothing special about "the internet" port, it's just an ethernet port. My virtual router I made has four virtual ethernet ports each at 10Gbe (VMXNET3). One of those ports is on a virtual switch that has port 1 of my dual port 10GbE adapter connected to it, and that port goes to my local 10GbE switch. Another port on that virtual router goes to a another virtual switch that has the second physical port that has my FIOS ONT 1GbE connected. The other two virtual ports are connected to LAB and DMZ virtual switches that I do my projects on and never touch anything physical. When I configure my router (as in real router) I can define which port is "WAN". Now in a web gui that is what it'll show up as, while in reality it's just a set of NAT MASQ rules saying which network port to masquerade the local traffic through.
Code:
#
# Shorewall version 4 - Masq file
#
# For information about entries in this file, type "man shorewall-masq"
#
# The manpage is also online at
# [url=http://www.shorewall.net/manpages/shorewall-masq.html]http://www.shorewall.net/manpages/shorewall-masq.html[/url]
#
###############################################################################
#INTERFACE SOURCE ADDRESS PROTO PORT(S) IPSEC MARK
eth0 192.168.51.0/24
eth0 192.168.61.0/24
eth0 192.168.71.0/24
eth0 10.51.1.0/24
eth0 10.51.2.0/24
eth0 10.51.3.0/24
eth0 10.51.4.0/24
tun4 192.168.51.0/24
#LAST LINE -- ADD YOUR ENTRIES ABOVE THIS LINE -- DO NOT REMOVE
Then you just make sure your routing table has your ISP's gateway in it, which should happen automatically with DHCP and assuming you didn't try to manually add a 0.0.0.0 route to it (that's default gateway).
Code:
[root@vegarouter7 shorewall]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 70.80.100.1 0.0.0.0 UG 100 0 0 eth0
10.51.1.0 192.168.51.16 255.255.255.0 UG 20 0 0 eth1
10.51.2.0 192.168.51.16 255.255.255.0 UG 20 0 0 eth1
10.51.3.0 192.168.51.16 255.255.255.0 UG 20 0 0 eth1
10.51.4.0 192.168.51.16 255.255.255.0 UG 20 0 0 eth1
70.80.100.0 0.0.0.0 255.255.255.0 U 100 0 0 eth0
192.168.51.0 0.0.0.0 255.255.255.0 U 101 0 0 eth1
192.168.71.0 0.0.0.0 255.255.255.0 U 102 0 0 eth2
Now any traffic that reaches it from those subnets that needs to go out will be routed out the default route, which eth0 and gets masq'd on it's way out.
That OpenWRT device is for hobbyists that want to build their own stuff. It's fairly cheap and provides you with a network gateway.