[Asterisk-Users] Multiple NICs on Asterisk box

James Oakley joakley at solutioninc.com
Wed Jul 13 11:03:29 MST 2005


On Wednesday 13 July 2005 12:40 pm, Zoltan Szecsei wrote:
> Hi All,
> Long time no chat ;-)
>
> Asterisk 1.0.9 (sometimes) won't authenticate IAX phones after re-boot
> of SuSE 9.3 box
>
> I've traced the problem to be with the firewall and the fact that I have
> 2 NICs in the box. Now that I have opened port 4569 on both interfaces,
> asterisk seems happy *but* does anyone know how to force SuSE 9.3 to
> always bring up a specific NIC before the otherone?
>
> On reboot sometimes my onboard gigabit nic gets eth0 and sometimes the
> pci 3COM gets eth0 and this causes havoc with another piece of SW I run.

Look at the ifcfg-* files under /etc/sysconfig/network. There should be one 
for each of your interfaces. Add a persistent name to each of them like so:

PERSISTENT_NAME='external'

Call them whatever you want. Good choices are 'external', 'internal', etc.

Now instead of eth0 and eth1 you have more logical names that will always 
refer to the same interfaces no matter which order they came up in.

Hope that helps,

-- 
James Oakley
Engineering - SolutionInc Ltd.
joakley at solutioninc.com
http://www.solutioninc.com

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
This e-mail is CONFIDENTIAL and contains information intended only for the
person(s) named. Any other distribution, copying or disclosure is strictly
prohibited. If you have received this e-mail in error, please notify me
immediately at 902 420 0077 or reply by e-mail to the sender and destroy
the original communication.
Thank You.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



More information about the asterisk-users mailing list