Прошу Вашей помощи в правильной настройке соединения pppoe.
uname -a:
Код: Выделить всё
oot@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC i386
Код: Выделить всё
hostname="srv10-nas.localhost"
#network LAN and WLAN
ipv6_network_interfaces="none"
ifconfig_alc0="DHCP"
wlans_ath0="wlan0"
create_args_wlan0="wlanmode hostap ssid G10 mode 11ng channel 11 country RU regdomain etsi txpower 30 bintval 400 "
hostapd_enable="YES"
ifconfig_aht0="up"
ifconfig_wlan0="up"
ifconfig_wlan0="192.168.20.1 255.255.255.0"
#hostapd_enable="YES"
gateway_enable="YES"
firewall_enable="NO"
#PPPoE telecom
ppp_enable="YES"
ppp_mode="ddial"
ppp_nat="NO"
ppp_profile="telecom"
sshd_enable="YES"
#dhcp server
dhcpd_enable="YES"
dhcpd_ifaces="wlan0"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
Код: Выделить всё
default:
set log Phase tun command
set ifaddr 10.0.0.1/0 10.0.0.2/0
# set mru 1492
set mtu 1492
telecom:
set device PPPoE:alc0
# set speed sync
set authname login
set authkey password
set dial
set login
# enable dns
disable ipv6
disable ipv6cp
add default HISADDR
ifconfig:
Код: Выделить всё
alc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=c3198<VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MCAST,WOL_MAG IC,VLAN_HWTSO,LINKSTATE>
ether 90:2b:34:ec:77:7f
inet 10.222.153.173 netmask 0xffffffe0 broadcast 10.222.153.191
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect (none)
status: no carrier
ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290
ether f8:1a:67:99:e0:24
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng <hostap>
status: running
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet 127.0.0.1 netmask 0xff000000
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether f8:1a:67:99:e0:24
inet 192.168.20.1 netmask 0xffffff00 broadcast 255.255.255.0
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng <hostap>
status: running
ssid G10 channel 11 (2462 MHz 11g ht/40-) bssid f8:1a:67:99:e0:24
regdomain ETSI country RU indoor ecm authmode WPA1+WPA2/802.11i
privacy MIXED deftxkey 2 TKIP 2:128-bit TKIP 3:128-bit txpower 30
scanvalid 60 protmode CTS ampdulimit 64k ampdudensity 8 shortgi wme
burst dtimperiod 1 -dfs bintval 400
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> metric 0 mtu 1492
options=80000<LINKSTATE>
inet 10.200.60.217 --> 91.185.254.56 netmask 0xffffffff
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
Opened by PID 509
Код: Выделить всё
Jan 21 21:09:13 srv10-nas ppp[509]: tun0: Phase: deflink: Connected!
Jan 21 21:09:13 srv10-nas ppp[509]: tun0: Phase: deflink: opening -> dial
Jan 21 21:09:13 srv10-nas ppp[509]: tun0: Phase: deflink: dial -> carrier
Jan 21 21:09:14 srv10-nas ppp[509]: tun0: Phase: Received NGM_PPPOE_ACNAME (hook "MX10-Neru")
Jan 21 21:09:14 srv10-nas ppp[509]: tun0: Phase: Received NGM_PPPOE_SESSIONID
Jan 21 21:09:14 srv10-nas ppp[509]: tun0: Phase: Received NGM_PPPOE_SUCCESS
Jan 21 21:09:14 srv10-nas ppp[509]: tun0: Phase: deflink: carrier -> login
Jan 21 21:09:14 srv10-nas ppp[509]: tun0: Phase: deflink: login -> lcp
Jan 21 21:09:15 srv10-nas ppp[509]: tun0: Warning: deflink: Reducing configured MRU from 1500 to 1492
Jan 21 21:09:15 srv10-nas ppp[509]: tun0: Phase: bundle: Authenticate
Jan 21 21:09:15 srv10-nas ppp[509]: tun0: Phase: deflink: his = CHAP 0x05, mine = none
Jan 21 21:09:15 srv10-nas ppp[509]: tun0: Phase: Chap Input: CHALLENGE (32 bytes from JUNOS)
Jan 21 21:09:15 srv10-nas ppp[509]: tun0: Phase: Chap Output: RESPONSE (stp11974)
Jan 21 21:09:15 srv10-nas ppp[509]: tun0: Phase: Chap Input: SUCCESS
Jan 21 21:09:15 srv10-nas ppp[509]: tun0: Phase: deflink: lcp -> open
Jan 21 21:09:15 srv10-nas ppp[509]: tun0: Phase: bundle: Network
Jan 21 21:09:15 srv10-nas ppp[509]: tun0: Warning: Add! route failed: 0.0.0.0: errno: Value too large to be stored in data type