* The first if you want to install ethernet must be check your speed duplex
* Type cable networking (cat5 or cat6)
* Make a sure your connection cable (cross over or straight through):
CREATE IP STATIC on Centos:
> STEP 1
vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
HWADDR=08:00:27:75:42:D9
NM_CONTROLLED=yes
ONBOOT=yes
BOOTPROTO=static
BROADCAST=192.168.1.255
IPADDR=192.168.1.5
NETMASK=255.255.255.0
NETWORK=192.168.1.0
TYPE=Ethernet
> STEP 2:
vi /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=mylab.local
GATEWAY=192.168.1.1
> STEP 3:
vi /etc/resolv.conf
nameserver 8.8.8.8 (sample on dns server)
nameserver 8.8.4.4
vi /etc/hosts
192.168.1.5 mylab mylab.local
> STEP 4:
/etc/init.d/network restart
and test connection :
nslookup www.google.com
dig www.google.com
No comments:
Post a Comment