[nylug-talk] configure new NIC on the command line
Sunny Dubey
dubeys at bxscience.edu
Thu May 1 10:58:00 EDT 2003
On Wednesday 30 April 2003 03:45 pm, Yang Xiao wrote:
> Hi nyluggers,
> I just added a 3com 3c905 NIC to redhat 8.0 box, it did not recognize it,
> how do I configure it from the command line? I know the
> redhat-config-network GUI tool, but just curious.
>
first you must load the module that is needed by your networking card. You
should be able to do this in /etc/modules.conf as ...
alias eth1 3c5x9
(NOTE: replace eth1 with whatever the network card is to be, and replace
3c9x5 with whatever your module is.)
RPM based distros tend to have network interface configurations in files like:
/etc/sysconfig/network-scripts/ifcfg-eth1
(NOTE: replace eth1 with whatever the network card is to be.)
An example configuration file would be ...
# Begin file
DEVICE=eth1
IPADDR=192.168.67.1
NETMASK=255.255.255.0
NETWORK=192.168.67.0
BROADCAST=192.168.67.255
ONBOOT=yes
# End of file
One you have edited the correct file .. just do:
/etc/init.d/network restart
and you should be good to go.
Sunny Dubey
PS: If you want your new network card to be the card that connects to the
rest of the network and internet, look for the file: /etc/sysconfig/network
and in it make sure it has something like GATEWAYDEV=eth1
hope that helps
More information about the nylug-talk
mailing list