- 论坛徽章:
- 0
|
一个星期了,今天无意中PPPoE终于成功了,是因为我把FreeBSD的机器和ADSL都接到了交换机上,但是网卡直接连ADSL拨不通,在Windows 2003下以上两种连接都可以拨通。谁能告诉我这是为什么?
我不懂网络,只是想在FreeBSD下做些底层开发。
请问我在FreeBSD下用双网卡做ADSL共享,如何配置?把所有机器和ADSL都接到交换机上可以吗?老是提示ARP错误啊。
各位老大,救救我吧!
ppp.conf
default:
set log Phase tun command
set device PPPoE:re0
set speed sync
set mru 1492
set mtu 1492
nat enable yes
nat same_ports yes
nat use_sockets yes
enable dns
add! default HISADDR
adsl:
set authname USERNAME
set authkey PASSWORD
set dial
set login
rc.conf (ADSL的IP是:192.168.1.1)
usbd_enable="YES"
keyrate="fast"
ifconfig_re0="inet 192.168.1.21 netmask 255.255.255.0"
ifconfig_vr0="inet 192.168.0.1 netmask 255.255.255.0"
hostname="FreeBSD.48t.org"
#defaultrouter="192.168.1.1"
inetd_enable="YES"
geteway_enable="YES"
named_enable="YES"
ppp_enable="YES"
ppp_mode="ddial"
ppp_nat="YES"
ppp_profile="adsl"
ppp.log
Jan 10 01:19:26 newsyslog[538]: logfile first created
Jan 11 12:22:06 FreeBSD ppp[715]: Phase: Using interface: tun0
Jan 11 12:22:06 FreeBSD ppp[715]: Phase: deflink: Created in closed state
Jan 11 12:22:06 FreeBSD ppp[715]: tun0: Command: default: ident user-ppp VERSION (built COMPILATIONDATE)
Jan 11 12:22:06 FreeBSD ppp[715]: tun0: Command: default: set timeout 180
Jan 11 12:22:06 FreeBSD ppp[715]: tun0: Command: default: enable dns
Jan 11 12:22:06 FreeBSD ppp[715]: tun0: Command: adsl: set device PPPoE:re0
Jan 11 12:22:06 FreeBSD ppp[715]: tun0: Command: adsl: set authname ********
Jan 11 12:22:06 FreeBSD ppp[715]: tun0: Command: adsl: set authkey ********
Jan 11 12:22:06 FreeBSD ppp[715]: tun0: Command: adsl: set dial
Jan 11 12:22:06 FreeBSD ppp[715]: tun0: Command: adsl: set login
Jan 11 12:22:06 FreeBSD ppp[715]: tun0: Command: adsl: add default HISADDR
Jan 11 12:22:06 FreeBSD ppp[728]: tun0: Phase: PPP Started (ddial mode).
Jan 11 12:22:06 FreeBSD ppp[728]: tun0: Phase: bundle: Establish
Jan 11 12:22:06 FreeBSD ppp[728]: tun0: Phase: deflink: closed -> opening
Jan 11 12:22:06 FreeBSD ppp[728]: tun0: Phase: deflink: Connected!
Jan 11 12:22:06 FreeBSD ppp[728]: tun0: Phase: deflink: opening -> dial
Jan 11 12:22:06 FreeBSD ppp[728]: tun0: Phase: deflink: dial -> carrier
Jan 11 12:22:11 FreeBSD ppp[728]: tun0: Phase: deflink: Disconnected!
Jan 11 12:22:11 FreeBSD ppp[728]: tun0: Phase: deflink: carrier -> hangup
Jan 11 12:22:11 FreeBSD ppp[728]: tun0: Phase: deflink: Connect time: 5 secs: 0 octets in, 0 octets out
Jan 11 12:22:11 FreeBSD ppp[728]: tun0: Phase: deflink: 0 packets in, 0 packets out
Jan 11 12:22:11 FreeBSD ppp[728]: tun0: Phase: total 0 bytes/sec, peak 0 bytes/sec on Fri Jan 11 12:22:06 2008
Jan 11 12:22:11 FreeBSD ppp[728]: tun0: Phase: deflink: hangup -> opening
Jan 11 12:22:11 FreeBSD ppp[728]: tun0: Phase: deflink: Enter pause (30) for redialing.
Jan 11 12:22:42 FreeBSD ppp[728]: tun0: Chat: deflink: Redial timer expired.
Jan 11 12:22:42 FreeBSD ppp[728]: tun0: Phase: deflink: Connected!
Jan 11 12:22:42 FreeBSD ppp[728]: tun0: Phase: deflink: opening -> dial
Jan 11 12:22:42 FreeBSD ppp[728]: tun0: Phase: deflink: dial -> carrier
Jan 11 12:22:47 FreeBSD ppp[728]: tun0: Phase: deflink: Disconnected!
Jan 11 12:22:47 FreeBSD ppp[728]: tun0: Phase: deflink: carrier -> hangup
Jan 11 12:22:47 FreeBSD ppp[728]: tun0: Phase: deflink: Connect time: 5 secs: 0 octets in, 0 octets out
Jan 11 12:22:47 FreeBSD ppp[728]: tun0: Phase: deflink: 0 packets in, 0 packets out
Jan 11 12:22:47 FreeBSD ppp[728]: tun0: Phase: total 0 bytes/sec, peak 0 bytes/sec on Fri Jan 11 12:22:42 2008
Jan 11 12:22:47 FreeBSD ppp[728]: tun0: Phase: deflink: hangup -> opening
Jan 11 12:22:47 FreeBSD ppp[728]: tun0: Phase: deflink: Enter pause (30) for redialing.
Jan 11 12:23:17 FreeBSD ppp[728]: tun0: Chat: deflink: Redial timer expired.
Jan 11 12:23:17 FreeBSD ppp[728]: tun0: Phase: deflink: Connected!
Jan 11 12:23:17 FreeBSD ppp[728]: tun0: Phase: deflink: opening -> dial
Jan 11 12:23:17 FreeBSD ppp[728]: tun0: Phase: deflink: dial -> carrier
Jan 11 12:23:22 FreeBSD ppp[728]: tun0: Phase: deflink: Disconnected!
Jan 11 12:23:22 FreeBSD ppp[728]: tun0: Phase: deflink: carrier -> hangup
Jan 11 12:23:22 FreeBSD ppp[728]: tun0: Phase: deflink: Connect time: 5 secs: 0 octets in, 0 octets out
Jan 11 12:23:22 FreeBSD ppp[728]: tun0: Phase: deflink: 0 packets in, 0 packets out
Jan 11 12:23:22 FreeBSD ppp[728]: tun0: Phase: total 0 bytes/sec, peak 0 bytes/sec on Fri Jan 11 12:23:17 2008
Jan 11 12:23:22 FreeBSD ppp[728]: tun0: Phase: deflink: hangup -> opening
Jan 11 12:23:22 FreeBSD ppp[728]: tun0: Phase: deflink: Enter pause (30) for redialing.
[ 本帖最后由 pernlee 于 2008-1-13 15:11 编辑 ] |
|