⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 network-get-start.html

📁 学习linux的工具书
💻 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>>&nbsp;&nbsp;&nbsp; base-1.bin&nbsp; base-2.bin&nbsp; base-3.bin&nbsp;
base-4.bin&nbsp; base-5.bin
<br>>&nbsp;&nbsp;&nbsp; resc1440.bin&nbsp;&nbsp; drv1440.bin&nbsp;&nbsp;
from ftp.debian.org
<br>> and install the them on a compaq 4/66&nbsp; ,
<br>> I configed the network about ip address , gateway and ethernet
<br>> network card etc&nbsp;&nbsp; , and then install the&nbsp; 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>&nbsp;&nbsp; as modules.
<br>3, The network parameters are set correctly and net-devices are
<br>&nbsp;&nbsp; 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>&nbsp;&nbsp; Red Hat, /var/log/messages. I don't know where is the
file for
<br>&nbsp;&nbsp; debian, could you please tell us?). You can find where
is your
<br>&nbsp;&nbsp; log file by reading "/etc/syslog.conf". Check the messages
file
<br>&nbsp;&nbsp; to see if your net-card was discovered by the kernel at
boot time.
<br>&nbsp;&nbsp; If you don't see it, OK, try to see if the drivers are
compiled as
<br>&nbsp;&nbsp; modules. If they are compiled as modules you should find
a file:
<br>&nbsp;&nbsp; /etc/conf.modules. This file should contain needed modules
at boot
<br>&nbsp;&nbsp; time, for example,
<br>alias eth0 ne
<br>options ne io=0x300
<br>&nbsp;&nbsp; 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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Link encap:Local Loopback
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; inet addr:127.0.0.1&nbsp;
Bcast:127.255.255.255&nbsp; Mask:255.0.0.0
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; UP BROADCAST
LOOPBACK RUNNING&nbsp; MTU:3584&nbsp; Metric:1
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RX packets:8
errors:0 dropped:0 overruns:0
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TX packets:8
errors:0 dropped:0 overruns:0
<p>eth0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Link encap:10Mbps Ethernet&nbsp;
HWaddr 00:00:44:01:DE:E8
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; inet addr:130.233.25.41&nbsp;
Bcast:130.233.31.255
<br>Mask:255.255.240.0
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; UP BROADCAST
RUNNING MULTICAST&nbsp; MTU:1500&nbsp; Metric:1
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RX packets:22016
errors:0 dropped:0 overruns:0
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TX packets:10552
errors:0 dropped:0 overruns:0
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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,&nbsp; Check your routing by say:
<p>route
<p>You should see something like:
<p>Kernel IP routing table
<br>Destination&nbsp;&nbsp;&nbsp;&nbsp; Gateway&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Genmask&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Flags Metric Ref&nbsp;&nbsp;&nbsp;
Use
<br>Iface
<br>130.233.16.0&nbsp;&nbsp;&nbsp; *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
255.255.240.0&nbsp;&nbsp; U&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1
<br>eth0
<br>127.0.0.0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
255.0.0.0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; U&nbsp;&nbsp;&nbsp;&nbsp;
0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1
<br>lo
<br>default&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; trinet-gw.tky.h
0.0.0.0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; UG&nbsp;&nbsp;&nbsp;
0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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 &amp; Good luck,
<br>&nbsp;
<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 + -