1

Temat: Działające konfiguracje xDSL

Ustawienia xDSL dla różnych linii. Proszę podać:
- model routera (np. TP-LINK TD-W8970)
- dokładną nazwę lini/usługi (np. Orange VDSL2 Neostrada Fiber)
- wynik

uci show network
Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

2 (edytowany przez Scotch 2016-03-20 23:45:22)

Odp: Działające konfiguracje xDSL

Routery: TP-Link TD-W8970, Zyxel P2812HNU-F3
Linia vdsl2, operator Orange (annex A):

Modyfikujemy 3 sekcje ('atm', 'wan', 'dsl') w pliku /etc/config/network

#config atm-bridge 'atm' - tą sekcję można usunąć
    #option vpi '1'
    #option vci '32'
    #option encaps 'llc'
    #option payload 'bridged'

config interface 'wan'
    option ifname 'ptm0.35'
    option proto 'pppoe'
    option username 'nazwa@użytkownika'
    option password 'hasło'
    option ipv6 '0'

config vdsl 'dsl'
    option firmware '/lib/firmware/vdsl.bin'
    option tone 'av'
    option xfer_mode 'ptm'

Wynik polecenia    uci show network dla TD-W8970:   

root@TD-W8970:~# uci show network
network.loopback=interface
network.loopback.ifname=lo
network.loopback.proto=static
network.loopback.ipaddr=127.0.0.1
network.loopback.netmask=255.0.0.0
network.globals=globals
network.globals.ula_prefix=fd5b:659d:811a::/48
network.lan=interface
network.lan.force_link=1
network.lan.type=bridge
network.lan.proto=static
network.lan.netmask=255.255.255.0
network.lan.ip6assign=60
network.lan.ifname=eth0.1
network.lan.macaddr=14:cc:20:57:57:e0
network.lan.ipaddr=192.168.1.100
network.@switch[0]=switch
network.@switch[0].name=switch0
network.@switch[0].reset=1
network.@switch[0].enable_vlan=1
network.@switch_vlan[0]=switch_vlan
network.@switch_vlan[0].device=switch0
network.@switch_vlan[0].vlan=1
network.@switch_vlan[0].ports=0 2 4 5 6t
network.wan=interface
network.wan.ifname=ptm0.35
network.wan.proto=pppoe
network.wan.username=nazwa@użytkownika
network.wan.password=hasło
network.wan.vci=35
network.wan.vpi=0
network.wan.ipv6=0
network.wan6=interface
network.wan6.proto=static
network.wan6.ifname=@wan
network.dsl=vdsl
network.dsl.annex=a
network.dsl.firmware=/lib/firmware/vdsl.bin
network.dsl.tone=av
network.dsl.xfer_mode=ptm
root@TD-W8970:~#

3

Odp: Działające konfiguracje xDSL

Router: Sagemcom F@st 2704 + modem ADSL
Łącza: Linia ADSL oraz lokalny operator w technologii WiMAX
Konfiguracja: Router w multiwanie z wykorzystaniem pakietu MWAN3, na Fast wydzielone dwa wany na porcie 1 i 2 switcha. Stworzony interfejs "modem" w celu możliwości wchodzenia na modem i sprawdzania aktualnych statystyk łącza adsl.

wynik polecenia uci show network dla Sagemcom F@ST 2704:

root@OpenWrt:~# uci show network
network.loopback=interface
network.loopback.ifname='lo'
network.loopback.proto='static'
network.loopback.ipaddr='127.0.0.1'
network.loopback.netmask='255.0.0.0'
network.lan=interface
network.lan.ifname='eth0.1'
network.lan.force_link='1'
network.lan.type='bridge'
network.lan.proto='static'
network.lan.ipaddr='10.0.0.1'
network.lan.netmask='255.255.255.0'
network.@switch[0]=switch
network.@switch[0].name='eth0'
network.@switch[0].reset='1'
network.@switch[0].enable_vlan='1'
network.@switch_vlan[0]=switch_vlan
network.@switch_vlan[0].device='eth0'
network.@switch_vlan[0].vlan='1'
network.@switch_vlan[0].ports='2 3 8t'
network.@switch_vlan[1]=switch_vlan
network.@switch_vlan[1].device='eth0'
network.@switch_vlan[1].vlan='2'
network.@switch_vlan[1].ports='0 8t'
network.wan=interface
network.wan.proto='pppoe'
network.wan.ifname='eth0.2'
network.wan.username='xxxxxxx@neostrada.pl'
network.wan.password='xxxxxxx'
network.wan.keeoalive='3 5'
network.wan.metric='1'
network.wan.dns='194.204.159.1 194.204.152.34'
network.modem=interface
network.modem.ifname='eth0.2'
network.modem.proto='static'
network.modem.ipaddr='192.168.10.1'
network.modem.netmask='255.255.255.0'
network.@switch_vlan[2]=switch_vlan
network.@switch_vlan[2].device='eth0'
network.@switch_vlan[2].vlan='3'
network.@switch_vlan[2].ports='1 8t'
network.wan2=interface
network.wan2.proto='dhcp'
network.wan2.ifname='eth0.3'
network.wan2.metric='2'
network.wan2.dns='217.8.168.244 157.25.5.18'
root@OpenWrt:~# 

4

Odp: Działające konfiguracje xDSL

TP-LINK TD-W8970 v1
Netia LLU ADSL2+ annex A

network.loopback=interface
network.loopback.ifname='lo'
network.loopback.proto='static'
network.loopback.ipaddr='127.0.0.1'
network.loopback.netmask='255.0.0.0'
network.globals=globals
network.globals.ula_prefix='fd43:df0a:71f3::/48'
network.lan=interface
network.lan.force_link='1'
network.lan.type='bridge'
network.lan.proto='static'
network.lan.netmask='255.255.255.0'
network.lan.ip6assign='60'
network.lan.macaddr='14:cc:20:ac:8b:b6'
network.lan.ipaddr='192.168.2.1'
network.lan._orig_ifname='eth0.1 wlan0 wlan0-1'
network.lan._orig_bridge='true'
network.lan.ifname='eth0.1'
network.@switch[0]=switch
network.@switch[0].name='switch0'
network.@switch[0].reset='1'
network.@switch[0].enable_vlan='1'
network.@switch_vlan[0]=switch_vlan
network.@switch_vlan[0].device='switch0'
network.@switch_vlan[0].vlan='1'
network.@switch_vlan[0].ports='0 2 4 5 6t'
network.wan=interface
network.wan._orig_ifname='nas0'
network.wan._orig_bridge='false'
network.wan.proto='pppoa'
network.wan.encaps='vc'
network.wan.atmdev='0'
network.wan.vci='35'
network.wan.vpi='0'
network.wan.username='uzytkownik@net24.com.pl'
network.wan.password='haslo'
network.wan.peerdns='0'
network.wan.dns='208.67.220.220 208.67.222.222'
network.wan.mtu='1478'
network.wan.metric='1'
network.wan6=interface
network.wan6.ifname='@wan'
network.wan6.proto='dhcpv6'
network.wan6.type='bridge'
network.dsl=vdsl
network.dsl.annex='a'
network.dsl.firmware='/lib/firmware/vdsl.bin'
network.dsl.tone='av'
network.dsl.xfer_mode='atm'
network.mobile=interface
network.mobile.proto='wwan'
network.mobile.apn='internet'
network.mobile.metric='2'
network.mobile.peerdns='0'
network.mobile.dns='208.67.220.220 208.67.222.222'
network.wlan=interface
network.wlan.type='bridge'
network.wlan.proto='static'
network.wlan.ipaddr='192.168.10.1'
network.wlan.netmask='255.255.255.0'
network.wlan.ip6assign='60'

5

Odp: Działające konfiguracje xDSL

TP-Link TD-W8970
Neostrada ADSL2+ (Annex A) Opcja 20480

Line State: showtime_tc_sync [0x801]
Line Speed: 19.204 Mb/s / 980 Kb/s
Line Attenuation: 15.1 dB / 7.8 dB
Noise Margin: 6.3 dB / 7.4 dB

network.loopback=interface
network.loopback.ifname='lo'
network.loopback.proto='static'
network.loopback.ipaddr='127.0.0.1'
network.loopback.netmask='255.0.0.0'
network.globals=globals
network.globals.ula_prefix='fd24:8df8:6a8e::/48'
network.lan=interface
network.lan.force_link='1'
network.lan.type='bridge'
network.lan.proto='static'
network.lan.ipaddr='192.168.1.1'
network.lan.netmask='255.255.255.0'
network.lan.ifname='eth0.1'
network.lan.macaddr='14:cc:20:ac:89:4e'
network.lan.delegate='0'
network.lan.ipv6='0'
network.guest=interface
network.guest.proto='static'
network.guest.ipaddr='10.10.10.1'
network.guest.netmask='255.255.255.0'
network.guest.delegate='0'
network.guest.ipv6='0'
network.@switch[0]=switch
network.@switch[0].name='switch0'
network.@switch[0].reset='1'
network.@switch[0].enable_vlan='1'
network.@switch_vlan[0]=switch_vlan
network.@switch_vlan[0].device='switch0'
network.@switch_vlan[0].vlan='1'
network.@switch_vlan[0].ports='0 2 4 5 6t'
network.wan=interface
network.wan._orig_ifname='nas0'
network.wan._orig_bridge='false'
network.wan.proto='pppoa'
network.wan.delegate='0'
network.wan.encaps='vc'
network.wan.atmdev='0'
network.wan.vci='35'
network.wan.vpi='0'
network.wan.username='xxx@neostrada.pl'
network.wan.password='xxx'
network.wan.pppd_options='holdoff 6'
network.wan.ipv6='0'
network.wan.peerdns='0'
network.wan.dns='208.67.220.220 208.67.222.222'
network.dsl=vdsl
network.dsl.annex='a'
network.dsl.firmware='/lib/firmware/vdsl.bin'
network.dsl.tone='av'
network.dsl.xfer_mode='atm'

6 (edytowany przez kurwicycek 2016-04-14 11:05:30)

Odp: Działające konfiguracje xDSL

ZyXEL P-2812HNU-F1
ADSL2+, Annex A, Netia, Linia TP/Orange długości ok 3km

Line State: showtime_tc_sync [0x801]
Line Speed: 11.464 Mb/s / 892 Kb/s
Line Attenuation: 41.9 dB / 22.5 dB
Noise Margin: 7 dB / 7.5 dB

http://www.speedtest.net/result/5249926700.png

network.loopback=interface
network.loopback.ifname='lo'
network.loopback.proto='static'
network.loopback.ipaddr='127.0.0.1'
network.loopback.netmask='255.0.0.0'
network.globals=globals
network.globals.ula_prefix='fd43:82a9:3b29::/48'
network.lan=interface
network.lan.force_link='1'
network.lan.type='bridge'
network.lan.proto='static'
network.lan.ipaddr='192.168.1.1'
network.lan.netmask='255.255.255.0'
network.lan.ip6assign='60'
network.lan.ifname='eth0.1'
network.lan.macaddr='00:01:02:03:04:05'
network.@switch[0]=switch
network.@switch[0].name='switch0'
network.@switch[0].reset='1'
network.@switch[0].enable_vlan='1'
network.@switch_vlan[0]=switch_vlan
network.@switch_vlan[0].device='switch0'
network.@switch_vlan[0].vlan='1'
network.@switch_vlan[0].ports='0 1 2 4 5 6t'
network.wan=interface
network.wan._orig_ifname='nas0'
network.wan._orig_bridge='false'
network.wan.proto='pppoa'
network.wan.encaps='vc'
network.wan.atmdev='0'
network.wan.vci='35'
network.wan.vpi='0'
network.wan.username='xxx@webnet24.pl'
network.wan.password='xxx'
network.dsl=vdsl
network.dsl.annex='a'
network.dsl.firmware='/lib/firmware/vdsl.bin'
network.dsl.tone='av'
network.dsl.xfer_mode='atm'

7

Odp: Działające konfiguracje xDSL

male pytanie, wszedzie macie ustawiony adres firmware na /lib/firmware/vdsl.bin
w LEDE niestety nie ma tego symlinka a upgrade (17.01) za kazdym razem go usuwa
poza tym howto nie opisuje ze trzeba wogole firmware zainstalować, a bywa
roznie - obrazy LEDE potrafily byc nawet z firmwarem annex B.

jak to powinno wygladac poprawnie?

8

Odp: Działające konfiguracje xDSL

W przypadku LEDE nie trzeba nic kombinować z firmware xdsl (zawiera firmware dla obu annexów).

Wystarczy jedynie odpowiednio skonfigurować parametry połączenia,
dla vdsl:

config dsl 'dsl'
    option xfer_mode 'ptm'
    option line_mode 'vdsl'
    option annex 'a'
    option tone 'av'

config interface 'wan'
    option ifname 'ptm0.35'
    option proto 'pppoe'
    option username 'xxx@neostrada.pl'
    option password 'xxx'
    option ipv6 '0'
    option delegate '0'

config device 'wan_dev'
    option name 'ptm0'
    option macaddr 'xx:xx:xx:xx:xx:xx'

dla adsl wg przykładu:   
https://lede-project.org/docs/user-guid … connection