Setting default gateway and DNS seversForum: Networking Topic: Setting default gateway and DNS severs started by: dallas7 Posted by dallas7 on Nov. 23 2004,02:50
Using netcardconfig, one gets the oppotunity to enter IP addresses for the default gateway and dns server(s).However, netcardconfig doesn't recognize my NIC, so I try using ifconfig. But to save my life, I can't figure out how to tell DSL the default gateway and DNS addresses. I search the WWW with google and I can find out everything there is to know about TCP/IP since its inception and how to set up my own ISP for millions of users; to make own gateways and DNS servers with good ol' Linux. But simply how to tell a Linux workstation to point to the default gateway and what the DNS servers are? Nooooooooooooo. Somebody, what's the big hint? Thanks! Posted by roberts on Nov. 23 2004,06:27
You can specify the gw and nameservers with the following commands. I usually add them to /opt/bootlocal.sh # put other system startup command here ifconfig eth0 ip 192.168.0.10 netmask 255.255.255.0 route add default gw 192.168.0.1 echo nameserver 66.51.205.100 > /etc/resolv.conf echo nameserver 66.51.206.100 >> /etc/resolv.conf Posted by dallas7 on Nov. 24 2004,01:18
THANK YOU!!After all these years, I've finally got this ol' IBM Thinkpad on my .11a network! However, I can't get to < http://127.0.0.1:6804 > which, of course, is MyDSL. I can get to it just fine when using my .11b WiFi or 3Com wired cards. The error I get is "Sorry, I can't connect to the repository right now." Yeah, I can ping 127.0.0.1. Sigh. I just do not understand. Do I need to do ifconfig something to lo? Thanks again. Posted by ico2 on Nov. 24 2004,10:03
personnally i like to edit my /etc/network/interfaces file manually (and /etc/resolv.conf for nameserver) and then use ifup -a to start device
|