Newbie: Now to configure DNS and gateway
Hello,
I am running Fedora core 5 on my linux box. Usually it detected my network settings, or I would just run dhclient.
However, something went wrong with my router and it's no longer being picked up automatically as DNS and gateway. On my windows machines, I would usually go into TCP/IP settings and configure:
IP: 192.168.2.20 (IP address of my linux box)
Subnet...
Gateway: 192.168.2.2 (IP of my D-link router)
Default DNS server: 192.168.2.2
On my linux box:
I just run
ifconfig eth0 192.168.2.20
to set the IP, not sure how to set up DNS and Gateway
How do I do this in linux, is there a quick command do set these things: specify the gateway and the Default DNS so the internet works?
Thank you very much for your help in advance!!
Best Regards
MK
|