On 10/9/06, Patrick - South Valley Internet <[EMAIL PROTECTED]> wrote:
1) Get two NICS for the OpenBSD box. 2) Give the first NIC an external routeable IP address, ex. 216.139.44.142 subnet 255.255.255.192 3) Give the second NIC an internal IP address, ex. 10.30.1.1 subnet mask 255.255.255.0 4) Give the second NIC an external IP address as well, ex. 216.139.44.143 subnet mask 255.255.255.192 5) Enable the gateway option in OpenBSD
Can you tell me why you want to give the second NIC IP addresses that are *not* in the same subnet? I'm going to assume that you 10.30.1.X subnet is for normal PCs, while the 216.139.44.X subnet is for the VoIP phones, am I right? If that's the case, then I assume you have a separate subnet for your VoIP phones and for your user PCs, right? With that kind of setup I think you'll need a third NIC, or else you'll need a switch than can do VLAN tagging and you'll have to create two subinterface on your second NIC so that each subnet is on its own subinterface. From there you can enable NAT for all 10.30.X.X traffic towards the 'Net and use plain old IP routing for your 216.139.44.143. Make sense? -Martin -- "Suburbia is where the developer bulldozes out the trees, then names the streets after them." --Bill Vaughan