Selamat datang ... Welcome ...

Ku jadikan blog ini tempat untuk menyimpan semua yang telah aku ketahui, yang masih dapat aku ingat dan yang baru aku mengetahuinya, agar disaat lupa dapat aku membacanya lagi.

I made this blog a place to save all that I already knew, that I can still remember and new ones I know, so when I forget may read it again.

Thursday, September 19, 2013

Add new network card on ClearOS

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+F1 (to go back to the GUI) and voila there it was eth2 under network->Settings->Ipsettings.....



Source