Hi Evo2,
Thanks a lot for helping.
Quote:
Originally Posted by evo2
Do you know what happens if you delete /etc/resolv.conf and then reboot server 2? What would be in /etc/resolv.conf after the reboot?
Or perhaps instead of rebooting just try a "service network restart".
|
That's actually a great idea and I didn't even think about it. probably because I'm afraid to break something.
Now I do know what happens when I deleted the /etc/resolv.conf as well as the /etc/resolv.conf.save files.
When I rebooted the server again, the content of the /etc/resolv.conf will be left with one line:
Code:
nameserver 10.1.2.90
Then, I tried adding the "search" directive and restart again.
After reboot, I'm getting 2 lines:
Code:
search wrx4.vm
nameserver 10.1.2.90
so at least this solves one mystery. the NetworkManager does not play role anymore, it is the ifcfg-eth# scripts now.
Quote:
Originally Posted by evo2
Have tried uninstalling NetworkManager?
|
I was trying to do that but I guess, after trying your first suggestion, I think I could just leave it here.
Quote:
Originally Posted by evo2
I think you have two options for getting "nameserver 103.11.48.126" in either resolv.conf are to either put it there by hand or
to put "DNS2=103.11.48.126" in you iface-eth4 files.
|
I tried this but unfortunately still it doesn't add the nameserver directive automatically to the /etc/resolv.conf file.
my intention with the eth4 was so that I'm able to connect to internet from my vm.
Apparently why I need to do was to set up the ifcfg-eth4 script by adding GATEWAY=192.168.1.1 which is the internal router IP address.
Once I did this, I can connect to the internet easily.
Quote:
Originally Posted by evo2
Please note that I'm not so experienced with network configuration on RHEL based systems, but want to help you sort this out since my first post was so unhelpful and took away your zero replies status.
Evo2.
|
Not a problem at all, I really appreciate your suggestion and willingness to help in the first place.
Thanks,
rexus