I am running Asterisk@home on one of my systems here. It uses Centos 4.2. It does NOT have a GUI interface. Command line only at console or via SSH (yeah, I know that I was working on another server to get GUI tools working through SSH, but I am NOT going to muck with AAH build).
yum update is potentially dangerous, when it replaces the kernel. You can loose all of your Zaptel driver setups and have to rebuild them. This is a given, the first time you install AAH and run yum update....
Now at http://www.voip-info.org/wiki/view/Asterisk%40Home+Handbook+Wiki+Chapter+3
I was instructed to use NETCONFIG to setup up my network information. Well it did for eth0, but not for eth1.
So question #1 is how to use netconfig to setup eth1 without messing with eth0.
#2) NETCONFIG did not setup my hostname and domain. I had to go in with VI to resolv.conf and sysconfig/network. Is there a tool for this?
#3) How do I figure out which board is which. Other than looking at the MAC address and using PCISNIFFER to then relate that to one of the boards (well, one 'builtin'). Also how do I determine which board is using which IRQ.
#4) Finally how can I change which IRQ a board is using. As one of the boards is using the same IRQ as one of my Zaptel clone cards (Tigerjet chips according to PCISNIFFER).
#4 leads into the 'more'.
This system has TWO FXO clone cards. One is working in AAH, the other AMP does not see. Asterisk CLI flags one as "alarm" RED. and does not report the IRQ of either board.
#5) How do I figure Centos has configured these two cards, and what IRQs are used and maybe how to change the IRQs.
#6) Then how to get genzaptelconf to properly configure this card.
Barrs Law of Recursive futility If you're smart enough to use one of these.... .....you can probably manage without one!
On Mon, 2006-01-23 at 16:57 -0500, Robert Moskowitz wrote:
I am running Asterisk@home on one of my systems here. It uses Centos 4.2. It does NOT have a GUI interface. Command line only at console or via SSH (yeah, I know that I was working on another server to get GUI tools working through SSH, but I am NOT going to muck with AAH build).
yum update is potentially dangerous, when it replaces the kernel. You can loose all of your Zaptel driver setups and have to rebuild them. This is a given, the first time you install AAH and run yum update....
Now at http://www.voip-info.org/wiki/view/Asterisk%40Home+Handbook+Wiki+Chapter+3
I was instructed to use NETCONFIG to setup up my network information. Well it did for eth0, but not for eth1.
So question #1 is how to use netconfig to setup eth1 without messing with eth0.
---- don't know - never used it.
try...
cd /etc/sysconfig/network-scripts cp ifcfg-eth0 ifcfg-eth1
and then edit ifcfg-eth1 to your liking ----
#2) NETCONFIG did not setup my hostname and domain. I had to go in with VI to resolv.conf and sysconfig/network. Is there a tool for this?
---- simply edit /etc/sysconfig/network
change the hostname to anything you want it to be - suggest that you make sure this entry also exists in /etc/hosts
Also when using 2 eth devices per above, set the gateway address here...
GATEWAYDEV=eth0 # fix for your situation GATEWAY=ip_addr_of_gateway ----
#3) How do I figure out which board is which. Other than looking at the MAC address and using PCISNIFFER to then relate that to one of the boards (well, one 'builtin'). Also how do I determine which board is using which IRQ.
---- dmesg|less
or
lspci -vv ----
#4) Finally how can I change which IRQ a board is using. As one of the boards is using the same IRQ as one of my Zaptel clone cards (Tigerjet chips according to PCISNIFFER).
#4 leads into the 'more'.
This system has TWO FXO clone cards. One is working in AAH, the other AMP does not see. Asterisk CLI flags one as "alarm" RED. and does not report the IRQ of either board.
#5) How do I figure Centos has configured these two cards, and what IRQs are used and maybe how to change the IRQs.
#6) Then how to get genzaptelconf to properly configure this card.
---- can't help with the last 4 - perhaps the asterisk lists might be of more help
Craig
Craig, you are always such a wonderful source of help.
At 05:14 PM 1/23/2006, Craig White wrote:
On Mon, 2006-01-23 at 16:57 -0500, Robert Moskowitz wrote:
So question #1 is how to use netconfig to setup eth1 without
messing with eth0.
don't know - never used it.
try...
cd /etc/sysconfig/network-scripts cp ifcfg-eth0 ifcfg-eth1
and then edit ifcfg-eth1 to your liking
VI here I come! At least now I know which files to work with.
#2) NETCONFIG did not setup my hostname and domain. I had to go in with VI to resolv.conf and sysconfig/network. Is there a tool for this?
simply edit /etc/sysconfig/network
change the hostname to anything you want it to be - suggest that you make sure this entry also exists in /etc/hosts
Also when using 2 eth devices per above, set the gateway address here...
GATEWAYDEV=eth0 # fix for your situation GATEWAY=ip_addr_of_gateway
Do these go in sysconfig/network ?
#3) How do I figure out which board is which. Other than looking at the MAC address and using PCISNIFFER to then relate that to one of the boards (well, one 'builtin'). Also how do I determine which board is using which IRQ.
dmesg|less
or
lspci -vv
The later has given me somethings to work with. Plus also some help on moding the zaptel config files from some wiki stuff I have seen on zaptel clones.
On Mon, 2006-01-23 at 17:29 -0500, Robert Moskowitz wrote:
Craig, you are always such a wonderful source of help.
At 05:14 PM 1/23/2006, Craig White wrote:
On Mon, 2006-01-23 at 16:57 -0500, Robert Moskowitz wrote:
So question #1 is how to use netconfig to setup eth1 without
messing with eth0.
don't know - never used it.
try...
cd /etc/sysconfig/network-scripts cp ifcfg-eth0 ifcfg-eth1
and then edit ifcfg-eth1 to your liking
VI here I come! At least now I know which files to work with.
#2) NETCONFIG did not setup my hostname and domain. I had to go in with VI to resolv.conf and sysconfig/network. Is there a tool for this?
simply edit /etc/sysconfig/network
change the hostname to anything you want it to be - suggest that you make sure this entry also exists in /etc/hosts
Also when using 2 eth devices per above, set the gateway address here...
GATEWAYDEV=eth0 # fix for your situation GATEWAY=ip_addr_of_gateway
Do these go in sysconfig/network ?
---- YES ---
#3) How do I figure out which board is which. Other than looking at the MAC address and using PCISNIFFER to then relate that to one of the boards (well, one 'builtin'). Also how do I determine which board is using which IRQ.
dmesg|less
or
lspci -vv
The later has given me somethings to work with. Plus also some help on moding the zaptel config files from some wiki stuff I have seen on zaptel clones.
---- good
Craig
At 05:14 PM 1/23/2006, Craig White wrote:
On Mon, 2006-01-23 at 16:57 -0500, Robert Moskowitz wrote:
I am running Asterisk@home on one of my systems here. It uses Centos 4.2. It does NOT have a GUI interface. Command line only at console or via SSH (yeah, I know that I was working on another server to get GUI tools working through SSH, but I am NOT going to muck with AAH build).
Now at http://www.voip-info.org/wiki/view/Asterisk%40Home+Handbook+Wiki+Chapter+3
I was instructed to use NETCONFIG to setup up my network information. Well it did for eth0, but not for eth1.
So question #1 is how to use netconfig to setup eth1 without
messing with eth0.
don't know - never used it.
try...
cd /etc/sysconfig/network-scripts cp ifcfg-eth0 ifcfg-eth1
and then edit ifcfg-eth1 to your liking
Well I started in on this and look at the two files before any changes:
cat ifcfg-eth0
DEVICE=eth0 ONBOOT=yes BOOTPROTO=static IPADDR=65.84.78.218 NETMASK=255.255.255.248 GATEWAY=65.84.78.217
cat ifcfg-eth1
DEVICE=eth1 HWADDR=00:50:8B:DA:BB:61 ONBOOT=no TYPE=Ethernet
Why does eth1 have HWADDR and TYPE whereas eth0 does not?
Seems I should understand this before making changes!
#2) NETCONFIG did not setup my hostname and domain. I had to go in with VI to resolv.conf and sysconfig/network. Is there a tool for this?
simply edit /etc/sysconfig/network
change the hostname to anything you want it to be - suggest that you make sure this entry also exists in /etc/hosts
Also when using 2 eth devices per above, set the gateway address here...
GATEWAYDEV=eth0 # fix for your situation GATEWAY=ip_addr_of_gateway
#3) How do I figure out which board is which. Other than looking at the MAC address and using PCISNIFFER to then relate that to one of the boards (well, one 'builtin'). Also how do I determine which board is using which IRQ.
dmesg|less
or
lspci -vv
Here is the output of that lapci command. You will see that the first ethernet and last Tiger Jet are both on IRQ5.
Is this controlled/controllable via some config file?
02:04.0 Ethernet controller: Intel Corporation 82557/8/9 [Ethernet Pro 100] (rev 01) Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- Latency: 66 (2000ns min, 14000ns max) Interrupt: pin A routed to IRQ 5 Region 0: Memory at 40700000 (32-bit, prefetchable) [size=4K] Region 1: I/O ports at 1840 [size=32] Region 2: Memory at 40000000 (32-bit, non-prefetchable) [size=1M]
02:08.0 Ethernet controller: Intel Corporation 82801BA/BAM/CA/CAM Ethernet Controller (rev 01) Subsystem: Compaq Computer Corporation EtherExpress PRO/100 VM Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- Latency: 66 (2000ns min, 14000ns max), Cache Line Size 08 Interrupt: pin A routed to IRQ 10 Region 0: Memory at 40100000 (32-bit, non-prefetchable) [size=4K] Region 1: I/O ports at 1800 [size=64] Capabilities: [dc] Power Management version 2 Flags: PMEClk- DSI+ D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold+) Status: D0 PME-Enable- DSel=0 DScale=2 PME-
02:09.0 Communication controller: Tiger Jet Network Inc. Tiger3XX Modem/ISDN interface Subsystem: Intel Corporation: Unknown device 0003 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- Latency: 66 (250ns min, 32000ns max) Interrupt: pin A routed to IRQ 11 Region 0: I/O ports at 1000 [size=256] Region 1: Memory at 40200000 (32-bit, non-prefetchable) [size=4K] Capabilities: [40] Power Management version 2 Flags: PMEClk- DSI+ D1- D2+ AuxCurrent=55mA PME(D0+,D1-,D2+,D3hot+,D3cold+) Status: D0 PME-Enable- DSel=0 DScale=0 PME-
02:0a.0 Communication controller: Tiger Jet Network Inc. Tiger3XX Modem/ISDN interface Subsystem: Intel Corporation: Unknown device 0003 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- Latency: 66 (250ns min, 32000ns max) Interrupt: pin A routed to IRQ 5 Region 0: I/O ports at 1400 [size=256] Region 1: Memory at 40300000 (32-bit, non-prefetchable) [size=4K] Capabilities: [40] Power Management version 2 Flags: PMEClk- DSI+ D1- D2+ AuxCurrent=55mA PME(D0+,D1-,D2+,D3hot+,D3cold+) Status: D0 PME-Enable- DSel=0 DScale=0 PME-
On Wed, 2006-01-25 at 22:22 -0500, Robert Moskowitz wrote:
At 05:14 PM 1/23/2006, Craig White wrote:
On Mon, 2006-01-23 at 16:57 -0500, Robert Moskowitz wrote:
I am running Asterisk@home on one of my systems here. It uses Centos 4.2. It does NOT have a GUI interface. Command line only at console or via SSH (yeah, I know that I was working on another server to get GUI tools working through SSH, but I am NOT going to muck with AAH build).
Now at http://www.voip-info.org/wiki/view/Asterisk%40Home+Handbook+Wiki+Chapter+3
I was instructed to use NETCONFIG to setup up my network information. Well it did for eth0, but not for eth1.
So question #1 is how to use netconfig to setup eth1 without
messing with eth0.
don't know - never used it.
try...
cd /etc/sysconfig/network-scripts cp ifcfg-eth0 ifcfg-eth1
and then edit ifcfg-eth1 to your liking
Well I started in on this and look at the two files before any changes:
cat ifcfg-eth0
DEVICE=eth0 ONBOOT=yes BOOTPROTO=static IPADDR=65.84.78.218 NETMASK=255.255.255.248 GATEWAY=65.84.78.217
cat ifcfg-eth1
DEVICE=eth1 HWADDR=00:50:8B:DA:BB:61 ONBOOT=no TYPE=Ethernet
Why does eth1 have HWADDR and TYPE whereas eth0 does not?
Seems I should understand this before making changes!
---- HWADDR not necessary but does sort of 'pin' down which card when the cards use the same kernel module. You can remove the HWADDR entry altogether.
ONBOOT=no #might want to change that
I heavily recommend removing 'GATEWAY' addresses from ifcfg files and putting them directly into /etc/sysconfig/network when you have multiple adaptors. ----
#2) NETCONFIG did not setup my hostname and domain. I had to go in with VI to resolv.conf and sysconfig/network. Is there a tool for this?
simply edit /etc/sysconfig/network
change the hostname to anything you want it to be - suggest that you make sure this entry also exists in /etc/hosts
Also when using 2 eth devices per above, set the gateway address here...
GATEWAYDEV=eth0 # fix for your situation GATEWAY=ip_addr_of_gateway
#3) How do I figure out which board is which. Other than looking at the MAC address and using PCISNIFFER to then relate that to one of the boards (well, one 'builtin'). Also how do I determine which board is using which IRQ.
dmesg|less
or
lspci -vv
Here is the output of that lapci command. You will see that the first ethernet and last Tiger Jet are both on IRQ5.
Is this controlled/controllable via some config file?
---- might be a DOS utility available to switch the settings...depends upon the hardware. I think it is acceptable to share IRQ's on some devices though...we are out of my league now.
Craig
At 10:57 PM 1/25/2006, Craig White wrote:
On Wed, 2006-01-25 at 22:22 -0500, Robert Moskowitz wrote:
Here is the output of that lapci command. You will see that the first ethernet and last Tiger Jet are both on IRQ5.
Is this controlled/controllable via some config file?
might be a DOS utility available to switch the settings...depends upon the hardware. I think it is acceptable to share IRQ's on some devices though...we are out of my league now.
Learned a little at:
http://www.scyld.com/pci_irq.html
So I found that I have:
cat interrupts CPU0 0: 103391 XT-PIC timer 1: 3 XT-PIC i8042 2: 0 XT-PIC cascade 5: 68774 XT-PIC wcfxo, eth0 8: 1 XT-PIC rtc 9: 0 XT-PIC acpi 10: 0 XT-PIC Intel 82801BA-ICH2 11: 68594 XT-PIC uhci_hcd, wcfxo 12: 66 XT-PIC i8042 14: 4174 XT-PIC ide0 15: 893 XT-PIC ide1 NMI: 0 ERR: 0
I turned off the internal serials on 3&4 and the Parallel on 7, buy the BIOS only allows me 5,10,&11 for these PCI devices :(
One ethernet and one FXO share 5, and the USB and the other FXO share 11
Since these are serial devices I am going to ASSUME that they will be serviced well enough.
Since I am not using my USB, I will put my main subnet on the internal ethernet and main phone on the one using irq11...