I'm new to ClearOS and am loving it. Am no pro, but I needed to add a third NIC to create a DMZ. Sadly, Multiple reboots didn't do the trick for me.... So I had to do it manually.... and with help from posts in this forum and the web, it worked
I'm sure there are easier ways to do this, but this is how i went about it.
Logged onto a console,
Alt+F2, and did the following;
To see if the third NIC had been detected, i did;
| Code: |
# kudzu -p | grep network
|
network.hwaddr: xx:xx:xx:xx:xx:xx
network.hwaddr:yy:yy:yy:yy:yy:yy
network.hwaddr:zz:zz:zz:zz:zz:zz
so the third
network.hwaddr above is for the new card.
To find the mac address of eth0 and eth1, i did,
| Code: |
#cd /etc/sysconfig/network-scripts/
# less ifcfg-eth0
# less ifcfg-eth1
|
Better still you could do; (be sure to use caps on
HWaddr)
| Code: |
# ifconfig | grep HWaddr
|
then;
copy ifcfg-eth1 to
ifcfg-eth2
| Code: |
# cp ifcfg-eth1 ifcfg-eth2
|
then using your favourite text editor, vi, nano.....
change the lines,
DEVICE='eth1' to 'eth2'
IPADDR="192.168.X.X" to the desired ip of DMZ "10.0.x.x"
NETMASK="255.255.255.0" to desired mask
HWADDR="xx.xx.xx.xx.xx.xx" to the mac address of the new card.
save and exit.
then;
then
Alt+F7 (to go back to the GUI) and voila there it was eth2 under network->Settings->Ipsettings.....