原帖由 "maxzhongcn" 發(fā)表:
下面是rc.conf的內(nèi)容:
# -- sysinstall generated deltas -- # Sun Apr 6 10:38:14 2003
# Created: Sun Apr 6 10:38:14 2003
# Enable network daemons for user convenience.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# This file now contains just the overrides from /etc/defaults/rc.conf.
hostname="fb.localdomain"
ifconfig_rl0="DHCP"
kern_securelevel_enable="NO"
linux_enable="YES"
moused_enable="YES"
nfs_reserved_port_only="YES"
sendmail_enable="YES"
sshd_enable="YES"
usbd_enable="YES"
# -- sysinstall generated deltas -- # Sun Apr 6 11:07:04 2003
ifconfig_rl0="inet 192.168.10.2 netmask 255.255.255.0"
原帖由 "maxzhongcn" 發(fā)表:
剛才進去在sendmail處停了好久,應(yīng)該是在獲取IP吧?進去后ping自己(192.168.10.2)可以通了。但是ping DNS和gateway都不通。
不管為了什么目的,上網(wǎng)總該可以吧。
原帖由 "simonzhan" 發(fā)表:
你應(yīng)該還要加個路由的,可以在/etc/rc2.d下加個文件S99route,里面加一行:
route add default 網(wǎng)關(guān) 1
然后,chmod 666 S99route
原帖由 "maxzhongcn" 發(fā)表:
大俠能否明確一點啊?
defaultrouter該設(shè)為多少?
DNS怎么設(shè)置?
我在winxp里用ipconfig查看到:
Ethernet adapter Realtek:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.10.2
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.10.1
用nslookup www.sina.com.cn查看到:
Ethernet adapter Realtek:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.10.2
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.10.1
那么我該如何設(shè)置呢?
原帖由 "maxzhongcn" 發(fā)表:
越聽越暈...............
問題是我的上網(wǎng)方式是DHCP獲取IP,而且沒有公網(wǎng)IP,DNS,GateWay,IP應(yīng)該已經(jīng)確認了,現(xiàn)在的問題是該如何設(shè)置rc.conf或者還有hosts,resolv這些東西。上面有個老大說開啟DHCP Client。
?.........
原帖由 "紅袖添香" 發(fā)表:
rc.conf 中設(shè)定
ifconfig_fxp0="DHCP"
dhcp_program="/sbin/..........
原帖由 "netstar"][quote:1507734493="紅袖添香" 發(fā)表:
這個應(yīng)該沒關(guān)系, 我的 resolv.conf 中一直都是
domain non-valid.domain
原帖由 "maxzhongcn" 發(fā)表:
不會吧,這么一點小問題各位大蝦米搞不定?
暈................
原帖由 "紅袖添香" 發(fā)表:
as the
# defaults are usually fine.
#
原帖由 "紅袖添香" 發(fā)表:
...
/sbin/dhclient 這個東東你有沒有啊? 檢查一下, 好象是默認不帶的, 需要安裝.
原帖由 "ihweb"][quote:63b4ce4784="紅袖添香" 發(fā)表:
...
/sbin/dhclient 這個東東你有沒有啊? 檢查一下, 好象是默認不帶的, 需要安裝.
原帖由 "紅袖添香"][quote:88c783da89="ihweb"][quote:88c783da89="紅袖添香" 發(fā)表:
...
/sbin/dhclient 這個東東你有沒有啊? 檢查一下, 好象是默認不帶的, 需要安裝.
原帖由 "ihweb"][quote:4af3b03bbe="紅袖添香"][quote:4af3b03bbe="ihweb"][quote:4af3b03bbe="紅袖添香" 發(fā)表:
...
/sbin/dhclient 這個東東你有沒有啊? 檢查一下, 好象是默認不帶的, 需要安裝.
原帖由 "ihweb"][quote:9233d3e14c="maxzhongcn"]DHCP服務(wù)器不是自帶的。但是DHCP Client應(yīng)該是自帶的。[/quote 發(fā)表:
9494
DHCP server 是不自帶的啊!!!看來紅袖喝多了.
原帖由 "maxzhongcn" 發(fā)表:
OK,我去看看。但是我的防火墻是在安裝的時候選擇默認的中級呀,應(yīng)該不會是防火墻的問題吧。
另外用DHCP,到底需不需要設(shè)置什么dhclient呀?
原帖由 "紅袖添香"][quote:07bc208652="ihweb"]中級?!你的是LINUX。![/quote 發(fā)表:
有啊,安全級別 0 就應(yīng)該算是中級吧。。。
原帖由 "quakelee" 發(fā)表:
ft~~~
居然這么設(shè)置,真變態(tài)~
歡迎光臨 Chinaunix (http://72891.cn/) | Powered by Discuz! X3.2 |