Quote:
Originally Posted by bathory
You can always make backups of the files you edit, so you can revert back if something goes wrong. Anyway try the following:
/etc/sysconfig/network-scripts/ifcfg-eth0
Code:
DEVICE=eth0
BOOTPROTO=static
DHCPCLASS=
HWADDR=60:EB:69:A0:45:1B
IPADDR=192.168.1.102
NETMASK=255.255.255.192
ONBOOT=yes
/etc/sysconfig/network
Code:
NETWORKING=yes
GATEWAY=192.168.1.1
Note: change the gateway IP to match your router, or whatever device you use to access the internet
/etc/resolv.conf
Code:
nameserver 8.8.8.8
nameserver 208.67.222.222
Here I've used google and opendns name servers, but you can use your ISP's name servers if you want
Then restart the network service and test:
Code:
/etc/init.d/network restart
BTW you can use google to search for example "how to setup network on RHEL" and don't wait for us to answer
Regards
|
Thanks for your reply. Well i do both, i search the internet and also wait for your reply.It is just that i haven't yet found better than what i get from this forum.
Anyway i have no ifcfg-eth0 as you can see below: the ifcfg-lo that i have below is text file not a directory
[root@localhost network-scripts]# ls
ifcfg-lo ifdown-ppp ifup-ippp ifup-sit
ifdown ifdown-routes ifup-ipv6 ifup-tunnel
ifdown-bnep ifdown-sit ifup-isdn ifup-wireless
ifdown-eth ifdown-tunnel ifup-plip init.ipv6-global
ifdown-ippp ifup ifup-plusb net.hotplug
ifdown-ipv6 ifup-aliases ifup-post network-functions
ifdown-isdn ifup-bnep ifup-ppp network-functions-ipv6
ifdown-post ifup-eth ifup-routes
Moreover i have no resolv.conf under /etc