[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: New User- Network Problem



On Fri, Feb 15, 2008 at 10:05:10AM -0500, Paul Cartwright wrote:
> On Fri February 15 2008, Douglas A. Tutty wrote:
> > > link-local????169.254.0.0
> >
> > ?
> > ?what is this ? ^^^^^^^
> 
> beats the H&LL out of me!
> >
> > It sounds like your box has conflicting config tools installed. ?If you
> > are using dhcp, then you can't go making up nameserver lines that don't
> > match or you won't have DNS.
> >
> I don't remember doing anything except the normal install. This is a Dell 
> desktop I bought back about a year ago. Duo-Core pentium, only 1 network 
> card.
> 
> > There are many possible ways to configure the network. ?You have to
> > choose one way, announce that way to us, so that only those of us
> > familiar with your method can help. ?Most of us here know about the
> > 'geeky" way (as someone put it) with just the plain files. ?If you use a
> > GUI tool, then either remove it (them) or tell us what you want to use.
> > Don't mix and match or it won't work.
> 
> I've used VI for over 25 years, used to do UNIX admin for AT&T way back when 
> 3B2's were around and we put UNIX Sys V/386 on intel boxes.. I don't use GUI 
> tools if I can help it.

OK.  "normal install".  You may have been bitten by "normal".  Even if
you don't use the GUI tool, if its installed, it will hijack your
attempts to not use them.

Do you have Gnome, KDE, or some other DTE installed?  Do you have
something called "Network Manager" installed?

If this is true, this may be your problem.

Can you use Aptitude interactively (i.e. from its text user interface)?

I'll tell you how I do an install then you'll know where I'm coming from
with my suggestions:

	I do a base install only, i.e. when the installer tells me to
	select what tasks to install, I deselect all tasks.

	I then fire up aptitude, tell it to _not_ treat "recommends" as
	strong dependancies, then go down the list of installed packages
	and ensure that anything which I don't want specifically
	installed is either marked as "automatic" or is marked for
	removal.  I then "g"o with that.

	Then I install the basic packages I do want: mc, lynx, vim, man
	pages, pinfo, less, HOWTOs, etc.  In my case, I'm on dialup so I
	also add ppp and pppconfig and the resolvconf package.

	Then I set up networking using the standard text files in /etc.
	The installer will have set the basics up anyway.  My NIC will
	be eth0 with IP, netmask, etc.  My main box is my nameserver
	(with the dnsmasq package) and ppp updates that via the
	resolvconf package.


So, if you have any desktop environments installed, I would go through
aptitude and pull out anything related to a GUI networking tool.

If necessary, pull out everything that is not basic.  Since you
installed from CD without networking, you'll still have the packages.
I'd even go so far as to ensure that you have a backup of /etc/ before
you start then purge everything you remove.  You want to get the box
back to base plus a text editor, lynx, mc, ...

At this point, you can then work with just the /etc/network/interfaces
file.

Here are my network config files which I hope may be of some use.

Let us know how things go once you get rid of the GUI network config
stuff.

Doug.



-----

Here's the /etc/network/interfaces file from one of my boxes that uses
my main box as a router/dns server (it also has the resolveconf package
installed):


# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet static
	address 192.168.1.5
	netmask 255.255.255.0
	network 192.168.1.0
	broadcast 192.168.1.255
	gateway 192.168.1.1
	# dns-* options are implemented by the resolvconf package, if installed
	dns-nameservers 192.168.1.1
	dns-search hooton


-----

I'll give you the contents of my files on my main box (that connects to
the internet via ppp)

/etc/network/interfaces:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth1
iface eth1 inet static
	address 192.168.1.1
	netmask 255.255.255.0
	network 192.168.1.0
	broadcast 192.168.1.255
	# dns-* options are implemented by the resolvconf package, if installed
	dns-search hooton


/etc/hosts

127.0.0.1	localhost.localdomain	localhost
192.168.1.1	titan.hooton	titan
192.168.1.2	reliant.hooton	reliant
192.168.1.5	rocky.hooton	rocky

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts


There's a file /etc/networks and I note that it has a link-local of
169.... I have no idea what it is, apt-file search shows nothing.  

/etc/nsswitch.conf

# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd:         compat
group:          compat
shadow:         compat

hosts:          files dns
networks:       files

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

netgroup:       nis



Reply to: