Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


add 2nd network card

Posted on 2004-04-23
Medium Priority
Last Modified: 2013-12-16
I need to put one of my Linux machines on 2 networks.  It will need to have two different ips: 10.0.x.x and 192.168.X.X.  I am running Redhat 8.0.  I installed a second ethernet card (it is compatible w/ Linux accordinf to HOWTO).  Now, I've booted the computer, and don't know what to do next.  The original card is already configured properly.  Both ethernet cards are differnt, therefore I am sure I need to do something with drivers, but don't know what.  Then I would like to configure the 2nd ethernet card as eth1 but don't know how.  The original card is eth0.  Lastly, I am sure I need to edit etc/hosts, but don't know how?

Thanks in advance!

Question by:wxman1
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2

Expert Comment

ID: 10903086
LVL 12

Accepted Solution

paullamhkg earned 1000 total points
ID: 10916025
what u need to do is ensure the driver already installed, normally the system will tell you a new hardware found and request the driver/list out network card for you to select during your RH8.0 startup (plug and play function of RH). since you said the NIC is compatible with linux, so I think the NIC should list out after the new hardware detected.

After that you have to change the /etc/sysconfig/network-scripts/ifcfg-eth1 as below


after the file saved, run ifup eth1 should bring up the new NIC.

or you can use the 'netconfig' in the command prompt/console mode to config your second NIC (eth1).

Author Comment

ID: 10917688

I changed ifcfg-eth1 as you said, with the correct settings.  Now I probably need to edit the etc/hosts but I'm not sure how.

any suggestions?
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

LVL 12

Expert Comment

ID: 10925100
       hosts - The static table lookup for host names


       This manual page describes the format of the /etc/hosts file. This file
       is a simple text file that associates IP addresses with hostnames,  one
       line per IP address. For each host a single line should be present with
       the following information:

              IP_address canonical_hostname aliases

       Fields of the entry are separated by any number of  blanks  and/or  tab
       characters.  Text  from  a "#" character until the end of the line is a
       comment, and is ignored.  Host  names  may  contain  only  alphanumeric
       characters, minus signs ("-"), and periods (".").  They must begin with
       an  alphabetic  character  and  end  with  an  alphanumeric  character.
       Aliases  provide  for  name changes, alternate spellings, shorter host-
       names, or generic hostnames (for example, localhost).   The  format  of
       the host table is described in RFC 952.

       The Berkeley Internet Name Domain (BIND) Server implements the Internet
       name server for UNIX systems. It augments or  replaces  the  /etc/hosts
       file  or  host name lookup, and frees a host from relying on /etc/hosts
       being up to date and complete.

       In modern systems, even though the host table has  been  superseded  by
       DNS, it is still widely used for:

              Most  systems  have  a  small host table containing the name and
              address information for important hosts on  the  local  network.
              This  is useful when DNS is not running, for example during sys-
              tem bootup.

       NIS    Sites that use NIS use the host table as input to the  NIS  host
              database.  Even  though NIS can be used with DNS, most NIS sites
              still use the host table with an entry for all local hosts as  a

       isolated nodes
              Very small sites that are isolated from the network use the host
              table instead of DNS. If the local information  rarely  changes,
              and  the  network  is  not connected to the Internet, DNS offers
              little advantage.

EXAMPLE       localhost  foo  bar      master

The above is the man page of /etc/hosts so you can have some idea.

can you tell us what you are planning to do with your 2 NIC linux, so that we can more specify.

Author Comment

ID: 10927607
This is what I am trying to do:

The original card will continue to be used as it has been.  It connects the Linux PC to our LAN.  It needs to be connected to our LAN, and it uses Samba to communicate with the Windows Computers that are on the LAN.

I put the 2nd card in the Linux PC because we have data that is transmitted to us via satellite.  This data comes into a satellite modem, which in turn changes the data format to TCP/IP then broadcasts the data to a proprietary ip address inherant to the satellite modem.  Because the satellite modem is looking for a particular ip address that does not conform to our LAN, I thought this would be the best way to go.

Author Comment

ID: 10929133
thanks for your help.  everything is working now!

Featured Post

Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question