New Debian Install / Network Settings

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Craig White
Date:  
Subject: New Debian Install / Network Settings
On Sun, 2003-11-09 at 19:44, John Tynan wrote:
> Hi all,
>
> I just wanted to write to say I was able to install a
> new hard drive and am now back up to speed with a new
> Debian install. I have the following questions:
>
> 1) When Linux starts, it goes directly into Window
> Maker (or, if I exit Window Maker I go directly into
> TWM). I tried finding and editing the .xsession file
> using Midnight Commander but with no success. Am I
> looking in the wrong place? Are there other ways
> around this?
>
> 2) The network setting issues from last time are still
> present. While I know that Marcia, Mike and others had
> proposed some solutions, my steps toward a resolution
> are a incremental at this point.
>
> I was able to send the results of netstat to a text
> file but was unable to copy the text file to a dos
> formatted floppy. Basically Netstat told me that the
> destination was 192.168.1.0 and the gateway was
> 0.0.0.0. This does not seem quite right.
>
> I am using static IP addresses on my network, as
> opposed to DHCP.
>
> Thanks for your advice. I'll keep trying.
>

----
1 - I'm not a Debian user but my settings go in ~/.Xclients-default

exec gnome-session or exec startkde

2 - obviously a gateway address of 0.0.0.0 doesn't go anywhere. I'm not
certain what these network settings issues you are having but...

netstat -an > /tmp/netstat-output.txt

will output to the file named.

ifconfig > /tmp/ifconfig-output.txt

will do likewise

Assuming that you are working with a dhcp server on a private lan and
are thus issued an ip address within the 192.168.1.0 network and a
subnet mask of 255.255.255.0 (your ip address should be 192.168.1.x
where x is equal to or greater than 1 and less than or equal to 254),
you would only need to have a gateway address.

This routing table could be printed from the command

route -n > /tmp/routing-table.txt

mine looks like this...

route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
192.168.2.0     0.0.0.0         255.255.255.0   U     0      0        0
eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0
lo
0.0.0.0         192.168.2.254   0.0.0.0         UG    0      0        0
eth0


where my default gateway is 192.168.2.254

now I could simply add the default gateway address to
/etc/sysconfig/network (This is Red Hat and Debian might be different)
by a command like...
GATEWAY=192.168.1.254

I note that a well configured DHCP server should provide a gateway
address and your DHCP client configuration should gratefully accept the
offered gateway address by the DHCP server.

if you need to add a gateway address manually, you could simply issue
the command (assuming my gateway address)

route -v add gw 192.168.2.254

Lastly - take a DOS formatted floppy disc and insert it. Try the
commands...

mount /mnt/floppy
cp /tmp/netstat-output.txt /mnt/floppy
umount /mnt/floppy

that should do the trick

Craig