LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 3103|回复: 18

ADSL猫是自路由,上不了网

[复制链接]
发表于 2003-10-20 13:55:11 | 显示全部楼层 |阅读模式
route显示:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
停在一儿一段时间后出现:
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0

ifconfig显示:
eth0 Link encap:Ethernet HWaddr 000:09:E3:B1:52
inet addr:192.168.1.3 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:22 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:10 Base address:0xd400

lo Link encapocal Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:30 errors:0 dropped:0 overruns:0 frame:0
TX packets:30 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2916 (2.8 Kb) TX bytes:2916 (2.8 Kb)


我想把我的网卡IP设置为192.168.1.3DNS设置为192.168.1.1
用netconfig设置了IP为192.168.1.3掩码为255.255.255.0 GateWay为 192.168.1.1但为什么还是上不了网呀!
我的ADSL猫是自路由功能的
我确定它已经自动拨号成功了
而且确定猫的IP为192.168.1.1
发表于 2003-10-20 13:59:40 | 显示全部楼层
我想把我的网卡IP设置为192.168.1.3DNS设置为192.168.1.1
用netconfig设置了IP为192.168.1.3掩码为255.255.255.0 GateWay为 192.168.1.1但为什么还是上不了网呀!
我的ADSL猫是自路由功能的
我确定它已经自动拨号成功了
而且确定猫的IP为192.168.1.1


这样来设置

IP:192.168.1.3
掩码:255.255.255.0
网关:192.168.1.1
第一个DNS:202.96.134.133
第二个DNS:202.96.168.68
 楼主| 发表于 2003-10-20 14:03:29 | 显示全部楼层
运行netconfig命令后出现的菜单里面没有第一个DNS和第二个DNS的设置项
我应该怎么样添加?
发表于 2003-10-20 14:07:44 | 显示全部楼层
是哪个发行版,兄弟应该看一下置顶的帖子,要学会如何提问,否则咱们把时间花在这方面上了。
 楼主| 发表于 2003-10-20 14:11:04 | 显示全部楼层
magic内测版本呀!
magic linux 1.2pre4
哈哈!看了不明白撒!

弄了两天了
还没有弄好
郁闷呀!
没有办法
自己太菜
 楼主| 发表于 2003-10-20 14:12:17 | 显示全部楼层
以前装别的linux就设置好IP和网关就行了
这个真郁闷
发表于 2003-10-20 14:17:04 | 显示全部楼层
其实和Redhat 一样的设置
直接改配制文件/etc/resolv.conf,清除里面的内容。然后加上如下的两行
nameserver 202.96.134.133
nameserver 202.96.75.68

然后执行
[root@linux01 beinan]# /sbin/service network restart
 楼主| 发表于 2003-10-20 14:49:18 | 显示全部楼层
试了,不行
可ping 192.168.1.3
ping 不到192.168.1.1
发表于 2003-10-20 15:03:40 | 显示全部楼层
请说一下网卡的型号
#lspci

另把/etc/module.conf内容帖出来一下。
 楼主| 发表于 2003-10-20 15:20:33 | 显示全部楼层
lspci显示:
00:00.0 Host bridge: Silicon Integrated Systems [SiS] 735 Host (rev 01)
00:01.0 PCI bridge: Silicon Integrated Systems [SiS] SiS 530 Virtual PCI-to-PCI bridge (AGP)
00:02.0 ISA bridge: Silicon Integrated Systems [SiS] 85C503/5513
00:02.2 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller (rev 07)
00:02.3 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller (rev 07)
00:02.5 IDE interface: Silicon Integrated Systems [SiS] 5513 [IDE] (rev d0)
00:02.7 Multimedia audio controller: Silicon Integrated Systems [SiS] Sound Controller (rev a0)
00:03.0 Ethernet controller: Silicon Integrated Systems [SiS] SiS900 10/100 Ethernet (rev 90)
00:0b.0 Communication controller: Ambient Technologies Inc HaM controllerless modem (rev 02)
01:00.0 VGA compatible controller: nVidia Corporation NV5M64 [RIVA TNT2 Model 64/Model 64 Pro] (rev 15)

module.conf如下:
alias char-major-61 lirc_gpio
alias usb-controller usb-uhci
alias char-major-188 off
options ide-cd dma=1
alias eth0 sis900
alias usb-controller1 usb-ohci

# --- BEGIN: Generated by ALSACONF, do not edit. ---
# --- ALSACONF verion 0.9.0 ---
alias char-major-116 snd
alias snd-card-0 snd-intel8x0
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
options snd major=116 cards_limit=1 device_mode=0666
options snd-intel8x0 index=0
# --- END: Generated by ALSACONF, do not edit. ---
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表