Can I do this with subnetting? How?

skyking

Lifer
Nov 21, 2001
22,696
5,819
146
I am running a freebsd computer for a router, with the inside interface at 192.168.y.1
I'd like to add a wireless segment, but keep it as seperate as possible for security. Would I be best off to add another NIC, at 192.168.x.1, and change rc.firewall.dynip accordingly?
Or is there some other method that will get the same results, with one NIC?
Can I use subnetting, and still use only one gateway IP?

 

ScottMac

Moderator<br>Networking<br>Elite member
Mar 19, 2001
5,471
2
0
You're on the right track. Routers connect different networks / subnetworks.

"One Gateway," well, each subnet will have one "default gateway,' but each "default gateway" must be diferent. The "default gateway" for each network has to be local to that subnet, so the gateay for 192.168.X.0 must be on the 192.168.X.0 network.... the default gateway for the 192.168.Y.0 network must be on the 192.168.Y.0 network (i.e., 192.168.Y.254 and 192.168.X.254. The default route from the router will still point to the ISP.

Since the .X.0 and .Y.0 networks are directly attached, traffic destined from one to the other will be directed without the need for static routes.

Putting the wireless on a separate network will give you additional access control options to your wired LAN or Internet (from the wireless LAN). The access control options are not automatic, you'll need to make some adjustments.

Good Luck

Scott



 

skyking

Lifer
Nov 21, 2001
22,696
5,819
146
thanks Scott! I did not think I could do it with only one gateway, but I was hoping...... I'd rather not take down my router box.