Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Setting default gateway and DNS severs< Next Oldest | Next Newest >
dallas7 Offline





Group: Members
Posts: 36
Joined: Sep. 2003
Posted: Nov. 23 2004,02:50 QUOTE

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!


--------------
Your Jedi mind tricks won't work on me, Skywalker.
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Nov. 23 2004,06:27 QUOTE

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
Back to top
Profile PM WEB 
dallas7 Offline





Group: Members
Posts: 36
Joined: Sep. 2003
Posted: Nov. 24 2004,01:18 QUOTE

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.


--------------
Your Jedi mind tricks won't work on me, Skywalker.
Back to top
Profile PM 
ico2 Offline





Group: Members
Posts: 802
Joined: July 2004
Posted: Nov. 24 2004,10:03 QUOTE

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 :)

--------------
ico2
Back to top
Profile PM MSN 
3 replies since Nov. 23 2004,02:50 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: Setting default gateway and DNS severs

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code