📄 network-get-start.html
字号:
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="Author" content="Edward Fu">
<meta name="GENERATOR" content="Mozilla/4.05 [zh-CN] (X11; I; Linux 2.1.127 i686) [Netscape]">
<title>Freesoft Linux FAQ -- 配置网络的基本思路</title>
</head>
<body>
Dai JianJun wrote:
<br>>
<br>> Hi,
<br>> I am a newer of Linux , I have already download the
<br>> base-1.bin base-2.bin base-3.bin
base-4.bin base-5.bin
<br>> resc1440.bin drv1440.bin
from ftp.debian.org
<br>> and install the them on a compaq 4/66 ,
<br>> I configed the network about ip address , gateway and ethernet
<br>> network card etc , and then install the base-1
to base-5
<br>> diskettes (is my installation right ), I can login as root and
<br>> my personal account , but the problem is appeared
<br>>
<br>> I CAN NOT RUN FTP/PING/TELNET etc THAT THE SYSTEM TOLD ME THE
<br>> NETWORK UNREACHABLE
<br>>
<br>> where is the problem , how can i solve it ? by the way what is the
<br>> usage of base1_3.tgz
<br>>
<br>> Regards,
<br>> JianJun
<br>> (jjdai@pek-co.cn.dhl.com)
<p>Linux networking is independent of distribution. The KEYs are,
<p>1, Besure networking is enabled with the kernel.
<br>2, The driver for your net-card is compiled either in kernel or
<br> as modules.
<br>3, The network parameters are set correctly and net-devices are
<br> up(enabled) during the system boot up.
<br>4, The route is correctly set.
<p>Try to find your problem by:
<p>1, Check your log files (For Slackware, /var/adm/messages. For
<br> Red Hat, /var/log/messages. I don't know where is the
file for
<br> debian, could you please tell us?). You can find where
is your
<br> log file by reading "/etc/syslog.conf". Check the messages
file
<br> to see if your net-card was discovered by the kernel at
boot time.
<br> If you don't see it, OK, try to see if the drivers are
compiled as
<br> modules. If they are compiled as modules you should find
a file:
<br> /etc/conf.modules. This file should contain needed modules
at boot
<br> time, for example,
<br>alias eth0 ne
<br>options ne io=0x300
<br> OK, if your net-card driver was discovered at boot up
time, then,
<p>2, Check if your network parameters are correct by:
<p>ifconfig
<p>you should see something like:
<p>lo Link encap:Local Loopback
<br> inet addr:127.0.0.1
Bcast:127.255.255.255 Mask:255.0.0.0
<br> UP BROADCAST
LOOPBACK RUNNING MTU:3584 Metric:1
<br> RX packets:8
errors:0 dropped:0 overruns:0
<br> TX packets:8
errors:0 dropped:0 overruns:0
<p>eth0 Link encap:10Mbps Ethernet
HWaddr 00:00:44:01:DE:E8
<br> inet addr:130.233.25.41
Bcast:130.233.31.255
<br>Mask:255.255.240.0
<br> UP BROADCAST
RUNNING MULTICAST MTU:1500 Metric:1
<br> RX packets:22016
errors:0 dropped:0 overruns:0
<br> TX packets:10552
errors:0 dropped:0 overruns:0
<br> Interrupt:15
Base address:0x300
<p>If you don't see your eth0 device or your parameters are not correct
<br>then correct them. If it is correct, then,
<p>3, Check your routing by say:
<p>route
<p>You should see something like:
<p>Kernel IP routing table
<br>Destination Gateway
Genmask Flags Metric Ref
Use
<br>Iface
<br>130.233.16.0 *
255.255.240.0 U 0
0 1
<br>eth0
<br>127.0.0.0 *
255.0.0.0 U
0 0
1
<br>lo
<br>default trinet-gw.tky.h
0.0.0.0 UG
0 0 10
<br>eth0
<p>If it comes out very very slow or hangs, you have broken net-parameters
<br>or broken connection or broken gateway (router). I don't recommend
use
<br>of routed, use static route instead.
<p>If this is correct you can try ping ftp.freesoft.cei.gov.cn, it sould
<br>go. If it does not go through you can traceroute ftp.freesoft.cei.gov.cn
<br>to see where is the problem. Or you can try to "ping localhost". Oh,
<br>anyway you can find out the problem by trace down the problem. You
<br>should know not only "It works this way" but also "How and why it
<br>works this way". :-)
<p>If you tell more detailed info, other people could help more.
<p>Take care & Good luck,
<br>
<p>min
<br>--
<br>----
<br>NT=No Thanks, WWW=World Wide Wait
<br>Does PnP mean "Plug and Pray"?
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -