Setting NIC in asterisk

Hello,

is it possible to define another NIC in asterisk (instead of ‘eth0’)? Maybe in source code? I don’t want (resp. it is not posible) to change the NIC in OS.

Thanks and kind regards.
TelcoBunny

Asterisk doesn’t bind to a NIC.

I suspect this is to do with the AsteriskNOW installer not Asterisk itself.

I seem to remember people having problems with systems (VMs?) which don’t use eth0.

Thanks.
It Isn’t AsteriskNow. I’ve installed Asterisk from source (asterisk-14-current.tar.gz). Starting asterisk leads to the following error: “No ethernet interface found for seeding global EID. You will have to set it manually.”

Here is my interface config:

root@h2799944:~# ifconfig -a
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:62055 errors:0 dropped:0 overruns:0 frame:0
TX packets:62055 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4030848 (4.0 MB) TX bytes:4030848 (4.0 MB)

venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:127.0.0.1 P-t-P:127.0.0.1 Bcast:0.0.0.0 Mask:255.255.255.255
inet6 addr: ::2/128 Scope:Compat
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:105476 errors:0 dropped:0 overruns:0 frame:0
TX packets:81380 errors:0 dropped:11 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:32614712 (32.6 MB) TX bytes:7185581 (7.1 MB)

venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:85.214.253.96 P-t-P:85.214.253.96 Bcast:85.214.253.96 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1

What version are you using? This appears to have been fixed 11 years ago: https://issues.asterisk.org/jira/browse/ASTERISK-10094

Version 14: asterisk-14-current.tar.gz (11-Jun-2018)