Menambahkan nic di linux clear os
===================== Add hardware baru
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
=============================== tambah dns
vi /etc/hosts
vi /etc/resolv.conf
============================== DHCP
vi /etc/dnsmasq/dhcp.conf
No comments:
Post a Comment