[asterisk-users] Binding asterisk to two static IPs
Dale Noll
dnoll at wi.rr.com
Thu Oct 13 05:51:32 CDT 2011
On 10/12/2011 06:15 PM, georg at riseup.net wrote:
>> I solved it by having two physical connections to my network.
> Yes, I thought of this too.
> I used the second nic for the drbd-communication, but I think I will have
> to change this.
If your networking equipment supports VLAN, you could add a virtual lan
to the existing ethernet device.
vconfig add eth0 42
Then assign an address to eth0.42. You can use eth0 for your endpoints
and eth0.42 for your provider or whichever way you want it.
You do then, of course, need to turn trunking onto the switch port that
is connected to eth0 and enable VLAN 1 and 42. You will need to make it
permanent via system config scripts.
For RedHat based distros, this includes /etc/sysconfig/network and
/etc/sysconfig/network-scripts/ifcfg-eth0.42 files.
I have never tried this with your exact situation, but it works well for
me in other projects.
Dale
--
"The truth speaks for itself. I'm just the messenger."
Lyta Alexander - Babylon 5
More information about the asterisk-users
mailing list