[CentOS] Two ethernet adapters and more

Robert Moskowitz rgm at htt-consult.com
Thu Jan 26 03:22:24 UTC 2006


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 at 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-






More information about the CentOS mailing list