LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-18-2007, 02:31 PM   #16
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Original Poster
Rep: Reputation: 75
Thumbs up


Right I did manage to restrict the pool and I now have static IP working!

The only further problem I had was that running netconfig in Slackware, it asked for the DNS address. When I ignored it I could connect to the Home hub but not the internet. I found a DNS address on the 'Internet' page of the Home Hub and I have my Internet connection.

Thanks Tredegar.
 
Old 12-19-2007, 11:50 AM   #17
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Original Poster
Rep: Reputation: 75
Spoke to soon.

This evening I turned the PC on and I could see the router but not the Internet. Back on DHCP
 
Old 12-19-2007, 01:22 PM   #18
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
Right I did manage to restrict the pool and I now have static IP working!
Good.
Quote:
The only further problem I had was that running netconfig in Slackware, it asked for the DNS address. When I ignored it I could connect to the Home hub but not the internet. I found a DNS address on the 'Internet' page of the Home Hub and I have my Internet connection.
{SNIP}
This evening I turned the PC on and I could see the router but not the Internet. Back on DHCP
Just "ignoring" things is generally a bad idea with linux.

Your BTHH should be managing DNS for you. You send DNS lookup requests to the BTHH, and it'll forward the request to BT's DNS Server(s), get the reply and send it back to your server-PC. This is good, because if BT re-assign the IP Nos. of their DNS servers (and they do, from time to time), your modem / router will take care of it for you, because when it connects to BT, it asks for the addresses of their DNS servers, and just forwards your requests to the correct (external BT) IP number.

So, if you are asked "Where is your DNS Server" Just reply with the LAN IP.OF.MY.BTHH eg 198.162.1.1, or wherever it is now (I forget )

If you'd prefer to do this manually (and I do) just put the following line in /etc/resolv.conf

Code:
# The next line refers to the LAN IP of my modem / router
nameserver   198.162.1.1
Make sure all other PC's that need to access your server-pc have an entry for the server-pc's (now, hopefully, forever static) address in their own /etc/hosts file like this:
Code:
# The next line is essential for the proper operation of linux
127.0.0.1 localhost
# Next is the Static IP, FDQN and shortname for your server 
# The ".my.net" is arbitrary, choose anything, but be CONSISTENT!
192.168.1.128 server-pc.my.net     server-pc
Give your server-pc its Static IP back, restart networking and all should be well and stable. Hmmm. We like.

At first, Networking can seem illogical and impenetrable and stupid, but there comes a time when you suddenly understand the basics, and everything just falls into place - "Ooooo Kaaaay, I can see it now, it's really logical and sensible and pretty damn clever and completely obvious really".
Your linux networking Zen moment is due soon
A windows networking Zen moment has yet to happen to me, and I got tired of waiting for it. So I just quit windows. But am still happy.
Persevere, you'll get there
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS: multi-home client uses wrong address dkm999 Linux - Networking 7 11-29-2007 12:57 PM
NFS doesn't work work well with mounted NTFS volumes? StevenO Linux - Networking 6 02-13-2006 10:54 AM
Network Address Translation for NFS not happening! Vincent_Vega Linux - Networking 4 01-09-2004 06:57 PM
nfs server reported service unavailable: Address already in use Gargomel7 Linux - Networking 0 09-16-2003 11:10 AM
changed local net address nfs is hanging at boot spooge Linux - Networking 2 08-20-2003 01:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration