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

Re: Installation problem which now is network problem



On Sat, 1 Mar 1997, Daniel Karlsson wrote:
>...
> boot manager, Linux is now up and running.
> 
> Unfortunately it's not up and running to that extent I would like to. I have
> no contact at all with the network and with the Internet in particular. I
> think I have to make some changes in the network configuration. The question
> is: How do I reconfigure the network when I've already installed Linux. I
> don't want to reinstall it for a small matter like this.

   I don't know if you're having the exact same problem as i had, but
here's what happened to me: I just recently did an ftp install of debian. 
Everything was fine, but my network didn't start. If you've done the
configuration correctly, you should be able to do this: 

# ifconfig
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Bcast:127.255.255.255  Mask:255.0.0.0
          UP BROADCAST LOOPBACK RUNNING  MTU:3584  Metric:1
          RX packets:1410 errors:0 dropped:0 overruns:0
          TX packets:1410 errors:0 dropped:0 overruns:0

eth0      Link encap:10Mbps Ethernet  HWaddr 00:20:AF:51:6E:10
          inet addr:x.x.x.x  Bcast:x.x.x.255  Mask:255.255.255.0
          UP BROADCAST RUNNING  MTU:1500  Metric:1
          RX packets:2349 errors:0 dropped:0 overruns:0
          TX packets:1838 errors:0 dropped:0 overruns:0
          Interrupt:5 Base address:0x200
 
If you don't see the eth0, then you have to do something like 

ifconfig eth0 your.ip.numbers.here

or something. Read the man page.

   If your eth0 is showing correctly then you have to look at:

# netstat -r
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt 
Iface
localnet        *               255.255.255.0   U      1500 0          0 eth0
127.0.0.0       *               255.0.0.0       U      3584 0          0 lo
default         x.x.x.x         0.0.0.0         UG     1500 0          0 eth0

If you don't have a route out to the 'net through some default gateway,
then you need to add a route. See the route man pages (which i have to
say, are not very clear). 

   If that's okay, then you have to see if there's a /etc/init.d/network
file. Mine looks like: 

# more /etc/init.d/network
#!      /bin/sh
ifconfig lo 127.0.0.1
route add -net 127.0.0.0
IPADDR=x.x.x.x
NETMASK=255.255.255.0
NETWORK=x.x.x.0
BROADCAST=x.x.x.255
GATEWAY=x.x.x.x
ifconfig eth0 ${IPADDR} netmask ${NETMASK} broadcast ${BROADCAST}
route add -net ${NETWORK}
route add default gw ${GATEWAY} metric 1

You can see that it does the ifconfig and route commands for you. This was
created in the configuration correctly. If you run this network file after
bootup and you connect to the 'net properly, then you're exactly at the
same place i was. 

   Here's where the default installation failed for me: the network file
was executed and worked, but then the kerneld removed the network after
all the startup stuff was done! I don't know why it did that. I do know
that people on this list helped me to find the answer: i created a link to
the network file called /etc/rc2.d/S98network. That was it. Now the system
boots, starts the network, kerneld shuts it down and S98 restarts it and
it stays. 

   I hope this was useful in some way. Maybe some part of it will tell you
the answer to what your problem is. If not, maybe i'll learn from you when
the solution is finally posted to this list. 

   Good luck.

...
universero trio... trio@tio.net... http://tio.net/~trio
Learn and use The International Language Esperanto!


Reply to: