LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Multiple NIC cards - public and private IPs (https://www.linuxquestions.org/questions/linux-networking-3/multiple-nic-cards-public-and-private-ips-9418/)

harryinjapan 11-29-2001 09:27 PM

Multiple NIC cards - public and private IPs
 
I am trying to configure a second NIC card. I have configured the eth0 device for the public IP, and now want to configure the second device (eth1) for a private IP. The second device should use the private gatway. What are the configurations required?

Many thanks.

finegan 12-01-2001 11:50 PM

I might be a little confused as to what your asking, but if you just want to configure the second NIC to talk to a home LAN for instance, all you have to do is from the prompt as root:

/sbin/ifconfig xxx.xxx.xxx.xxx up (where the xxx is the IP, probably 192.168.0.1 if I'm guessing right)

If you want this configure on startup, there's a million ways to do this, but its probably best to configure it the way your distro wants you to. Which distro are you using?

Cheers,

Finegan

hurtsman 12-02-2001 04:25 AM

Re: Multiple NIC cards - public and private IPs
 
you could write a file "/etc/sysconfig/network-scripts/ifcfg-eth1",then use command " ifconfig eth0 up". Of course, you can run command "netconf" to finish this task.


All times are GMT -5. The time now is 01:25 AM.