I have a FreeBSD router here at home whose sole function is to do things like run a small DNS server for caching and internal hostname resolution, and to do NAT, and also, I just installed a wireless NIC for purposes of being a host access point.
I need your opinion on the following question. Should I separate the wired and wireless networks (192.168.0.x for wired and 192.168.1.x for wireless) or try to configure things so that both wired and wireless are running in 192.168.0.x/24?
Right now I have 2 separate networks for wireless/wired, and all IP assignments are done statically, not over DHCP. fxp2 is my internet-facing interface. From /etc/rc.conf:
It works very smoothly. I am able to SSH from a Windows laptop which is on the wireless network directly into a Linux desktop on the wired network. My PS3 downstairs is able to download updates over the wireless network perfectly and quickly. All computers on the wireless and wired networks are able to access computers on the internet, to do this I put this in my /etc/ipnat.rules (and enabled ipnat in rc.conf):
Now, I believe that in purpose-build home routers which support wired and wireless networks, they combine both types of connections into one LAN. I think I could probably figure out how to do this (although I would question whether assigning the same IP address to both em0 and ath0 is correct), but my real question is, which way of doing things is "more correct" in the purist sense? I did notice one thing about Windows computers wanting to communicate with each other - they are not too happy if they are on the 192.168.0.x/24 and another member of their "workgroup" is in 192.158.1.x/24. I really don't know too much about Windows, and I don't really like to learn about it.
If you answer "yes" to "combine both wired and wireless networks into one", then if you could perhaps give me a very quick rundown of the correctest way to do this.
I need your opinion on the following question. Should I separate the wired and wireless networks (192.168.0.x for wired and 192.168.1.x for wireless) or try to configure things so that both wired and wireless are running in 192.168.0.x/24?
Right now I have 2 separate networks for wireless/wired, and all IP assignments are done statically, not over DHCP. fxp2 is my internet-facing interface. From /etc/rc.conf:
Code:
gateway_enable="YES"
ifconfig_fxp2="DHCP"
ifconfig_em0="inet 192.168.0.254 netmask 255.255.255.0"
ifconfig_ath0="inet 192.168.1.254 netmask 255.255.255.0 ssid speedy.i mode 11g mediaopt hostap"
It works very smoothly. I am able to SSH from a Windows laptop which is on the wireless network directly into a Linux desktop on the wired network. My PS3 downstairs is able to download updates over the wireless network perfectly and quickly. All computers on the wireless and wired networks are able to access computers on the internet, to do this I put this in my /etc/ipnat.rules (and enabled ipnat in rc.conf):
Code:
map fxp2 192.168.0.0/24 -> 0/32
map fxp2 192.168.1.0/24 -> 0/32
Now, I believe that in purpose-build home routers which support wired and wireless networks, they combine both types of connections into one LAN. I think I could probably figure out how to do this (although I would question whether assigning the same IP address to both em0 and ath0 is correct), but my real question is, which way of doing things is "more correct" in the purist sense? I did notice one thing about Windows computers wanting to communicate with each other - they are not too happy if they are on the 192.168.0.x/24 and another member of their "workgroup" is in 192.158.1.x/24. I really don't know too much about Windows, and I don't really like to learn about it.
If you answer "yes" to "combine both wired and wireless networks into one", then if you could perhaps give me a very quick rundown of the correctest way to do this.