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 |
Login to your router and make sure the DHCP service is still running. Sounds like you may have accidentally shut it down.
|
Manual DNS/Gateway configuration.
Your DHCP server is probably just disabled, but I have written up terse instructions for you to follow anyway. It's a good thing to know!
Gateway if you use route to manage your routing tables like I do, seting a default gateway is easy... route add default gw 192.168.2.2 DNS dns is really easy. Edit the file /etc/resolv.conf and add the line nameserver 192.168.2.2 the routing table will need to be configured each time your computer starts. Fedora should provide a utility for setting the default gateway. /etc/resolv.conf is just a regular file, and will persist until changed by you or by automatic configuration via dhcp. Good luck. |
All times are GMT -5. The time now is 02:18 AM. |