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. |
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 |
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. |