jueves, 18 de octubre de 2012

ClearOS add new network card after initial setup

Spanish Keywords: Agregar una tarjeta de red adicional a un servidor de ClearOS 5.x después de la configuración inicial

source: http://www.clearfoundation.com/component/option,com_kunena/Itemid,232/catid,24/func,view/id,4315/





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



Code:


--------------------------------------------------------------------------------

#nano ifcfg-eth2
--------------------------------------------------------------------------------


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;



Code:


--------------------------------------------------------------------------------

# ifup eth2
--------------------------------------------------------------------------------


then Alt+F7 (to go back to the GUI) and voila there it was eth2 under network->Settings->Ipsettings.....




No hay comentarios:

Publicar un comentario