Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 11-29-2001, 10:27 PM   #1
LQ Newbie
Registered: Nov 2001
Location: Kyoto
Posts: 1

Rep: Reputation: 0
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.
Old 12-02-2001, 12:50 AM   #2
LQ Guru
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 65
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 up (where the xxx is the IP, probably 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?


Old 12-02-2001, 05:25 AM   #3
LQ Newbie
Registered: Nov 2001
Posts: 12

Rep: Reputation: 0
Red face 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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Two network cards, multihomed-public ips, not working? mikey3 Linux - Networking 5 11-04-2005 10:24 AM
Linux as a router but for multiple public IPs gnirtS Linux - Networking 8 03-07-2005 04:08 PM
two public ips on one nic for home office dns servers rioguia Linux - Networking 12 08-19-2004 04:59 PM
Router with multiple public IPs Neodymium Linux - Newbie 1 04-13-2004 07:39 PM
2 live/public ips for single NIC ehpserver Linux - Networking 3 10-08-2003 08:00 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:19 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration