এটি কনফিগারেশনটি এখানে /etc/sysconfig/network-scripts/ifcfg-eth0
:
DEVICE=eth0
TYPE=Ethernet
UUID=c7sdfsdf-dfgdgdfgdgd-dg
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=static
IPADDR=x.x.x.x
NETMASK=255.255.255.0
GATEWAY=x.x.x.y
DNS1=8.8.8.8
DNS2=4.2.2.4
ARPCHECK=no
HWADDR=00:0C:29:9D:D1:CC
এবং এছাড়াও resolv.conf
:
nameserver 8.8.8.8
nameserver 4.2.2.4
এখন আমার কাছে পিং এবং ক্যান্ট উইজেট নেই google.com:
From x.x.x.y icmp_seq=1 Destination Net Unreachable
এবং
# curl http://google.com
curl: (6) Couldn't resolve host 'google.com'
হালনাগাদ
# nslookup google.com
;; connection timed out; trying next origin
;; connection timed out; no servers could be reached
# dig ns.google.com @8.8.8.8
; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.30.rc1.el6_6.1 <<>> ns.google.com @8.8.8.8
;; global options: +cmd
;; connection timed out; no servers could be reached
ip -d route
?