|
|
blfs安装了ppp-2.4.3 dhcp-3.0.2 rp-pppoe-3.6
几个相关设置文件如下:
/etc/dhcpd.conf:
default-lease-time 72000;
max-lease-time 144000;
ddns-update-style ad-hoc;
subnet [192.168.1.1] netmask [255.255.255.0] {
range [192.168.5.10] [192.168.5.240];
option broadcast-address [192.168.5.255];
option routers [192.168.5.1];
}
/etc/dhclient.conf:
# dhclient.conf
interface "eth0"{
prepend domain-name-servers 127.0.0.1;
request subnet-mask, broadcast-address, time-offset, routers,
domain-name, domain-name-servers, host-name;
require subnet-mask, domain-name-servers;
}
# end dhclient.conf
hosts:
127.0.0.1 localhost
192.168.1.1 <yzq>.example.org yzq
/etc/sysconfig/network-devices/ifconfig.eth0/dhclient:
ONBOOT="yes"
SERVICE="dhclient"
DHCP_START="-q "
DHCP_STOP="-q -r "
# Set PRINTIP="yes" to have the script print
# the DHCP assigned IP address
PRINTIP="no"
# Set PRINTALL="yes" to print the DHCP assigned values for
# IP, SM, DG, and 1st NS. This requires PRINTIP="yes".
PRINTALL="no"
/etc/sysconfig/network-devices/ifconfig.eth0/ipv4:
ONBOOT=yes
SERVICE=ipv4-static
IP=192.168.1.1
GATEWAY=192.168.1.2
PREFIX=24
BROADCAST=192.168.1.255
能ping通127.0.0.1和192.168.1.1
ping 电信服务器的ip如下:
PING 61.128.128.68 (61.128.128.68): 56 data bytes
64 bytes from <yzq>.example.org (192.168.1.1): Destination Host Unreachable
Vr HL TOS Len ID Flg off TTL Pro cks Src Dst Data
4 5 c0 7000 c591 0 0000 40 01 b564 192.168.1.1 192.168.1.1
64 bytes from <yzq>.example.org (192.168.1.1): Destination Host Unreachable
Vr HL TOS Len ID Flg off TTL Pro cks Src Dst Data
4 5 c0 7000 c691 0 0000 40 01 b464 192.168.1.1 192.168.1.1
64 bytes from <yzq>.example.org (192.168.1.1): Destination Host Unreachable
Vr HL TOS Len ID Flg off TTL Pro cks Src Dst Data
4 5 c0 7000 c791 0 0000 40 01 b364 192.168.1.1 192.168.1.1
64 bytes from <yzq>.example.org (192.168.1.1): Destination Host Unreachable
Vr HL TOS Len ID Flg off TTL Pro cks Src Dst Data
4 5 c0 7000 cb91 0 0000 40 01 af64 192.168.1.1 192.168.1.1
64 bytes from <yzq>.example.org (192.168.1.1): Destination Host Unreachable
Vr HL TOS Len ID Flg off TTL Pro cks Src Dst Data
4 5 c0 7000 cc91 0 0000 40 01 ae64 192.168.1.1 192.168.1.1
64 bytes from <yzq>.example.org (192.168.1.1): Destination Host Unreachable
Vr HL TOS Len ID Flg off TTL Pro cks Src Dst Data
4 5 c0 7000 cd91 0 0000 40 01 ad64 192.168.1.1 192.168.1.1
64 bytes from <yzq>.example.org (192.168.1.1): Destination Host Unreachable
Vr HL TOS Len ID Flg off TTL Pro cks Src Dst Data
4 5 c0 7000 d191 0 0000 40 01 a964 192.168.1.1 192.168.1.1
64 bytes from <yzq>.example.org (192.168.1.1): Destination Host Unreachable
Vr HL TOS Len ID Flg off TTL Pro cks Src Dst Data
4 5 c0 7000 d291 0 0000 40 01 a864 192.168.1.1 192.168.1.1
64 bytes from <yzq>.example.org (192.168.1.1): Destination Host Unreachable
Vr HL TOS Len ID Flg off TTL Pro cks Src Dst Data
4 5 c0 7000 d391 0 0000 40 01 a764 192.168.1.1 192.168.1.1
64 bytes from <yzq>.example.org (192.168.1.1): Destination Host Unreachable
Vr HL TOS Len ID Flg off TTL Pro cks Src Dst Data
4 5 c0 7000 d791 0 0000 40 01 a364 192.168.1.1 192.168.1.1
64 bytes from <yzq>.example.org (192.168.1.1): Destination Host Unreachable
adsl-start命令后提示:time out
请教是什么地方,设置不对? |
|