Two ethernet adapters and more

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux