Date: Mon, 17 Apr 2006 12:58:17 +0200 From: dick hoogendijk <dick@nagual.st> To: fbsdq <freebsd-questions@freebsd.org> Subject: wrired-wireless if_bridge question Message-ID: <20060417125817.57c63491.dick@nagual.st>
next in thread | raw e-mail | index | archive | help
The situation: A server with two wired Ethernet cards rl0 to the outside (ISP) rl1 to the local network (192.168.11.1) The server does routing NAT and DHCP; pf is enabled (quite a normal situation ;-) The NEW situation (802.11-to-ethernet bridge) I will add a wireless card to the server. This way my notebook and my (nintendo) DS will have access to the internet. As I understand it after reading articles, the handbook and man if_bridge it goes like this: NOW I have in rc.conf: defaultrouter="82.74.2.1" hostname="lothlorien.nagual.st" ifconfig_rl0="inet 82.74.2.186 netmask 255.255.254.0" ifconfig_rl1="inet 192.168.11.1 netmask 255.255.255.0" After adding the WiFi card this whould be: defaultrouter="82.74.2.1" hostname="lothlorien.nagual.st" ifconfig_rl0="inet 82.74.2.186 netmask 255.255.254.0" ifconfig_rl1="inet 192.168.11.1 netmask 255.255.255.0" ifconfig_ath0="ssid airport01 media autoselect mode 11g mediaopt \ hostap wepmode on wepkey `cat /etc/wepkey` channel 1 up" And than I bridge the two "internal" cards with: cloned_interfaces="bridge0" ifconfig_bridge0="addm ath0 addm rl1 up" Once the interfaces are bridged I should be golden (I'm told). But I still have some questions: (1) Is the above syntax OK? Did I understand it all correctly? (2) Will the IP of the wireless card be the same as the cabled (rl1) card (192.168.11.1)? So, a cabled workstation contacting 192.168.11.1 would reach rl1 and a wireless one ath0? Is this correct? I know it all sounds a bit confusing, but this reflects my feelings. It's kind of new to me and will be better in the future no doubt ;-) Hope to get some helpfull reactions from all of you for whome these things are "so easy" -- dick -- http://nagual.st/ -- PGP/GnuPG key: F86289CE ++ Running FreeBSD 6.1 ++ The Power to Serve
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060417125817.57c63491.dick>