[ale] Two NIC cards

David Brooks dave.brooks at disctech.net
Sun Dec 20 00:52:36 EST 1998


# ifconfig eth1 xxx.xxx.xxx.xxx netmask xxx.xxx.xxx.xxx

you may need to make a script in /etc/rc.d (?) or whatever dirctory contains
your initialization scripts in order to set that card's IP on boot.  Easy as
this:

---------- 8< snip snip >8 ----------

# /etc/rc.d/rc.eth1
#
# Sets the network information on the eth1 interface

echo "Setting up eth1:"
ifconfig eth1 xxx.xxx.xxx.xxx netmask xxx.xxx.xxx.xxx broadcast
xxx.xxx.xxx.xxx
echo "Done."

# end

---------- 8< snip snip >8 ----------


then put a line in /etc/rc.local at the bottom somewhere to call the newly
made rc.eth1, should be: '/etc/rc.d/rc.eth1'

That should do the trick.

Regards,
Dave Brooks



>I have two NIC cards in my LINUX machine that will be used primarily for
>IPmasquerading. Both eth0 and eth1 are up and working fine checking with
>(modprobe ethN).  Eth0 has an IP address bound to it but I can't get an IP
>address bound to eth1.  eth0 is set to the static internet address (cable
>modem) and eth1 should be to the private local network.
>I have tried using ipcfg with the address and still have no luck.
>
>Basically my question is how do get an IP address assigned to eth1?
>
>RedHat 5.2 (2.0.36)
>
>Thanks for any help or pointers to howtos, faqs..etc
>
>Jeff
>






More information about the Ale mailing list