OpenWrt Forum Archive

Topic: Dynamic 1483 bridget IP, VPI, VCI, etc.

The content of this topic has been archived on 1 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Original D-Link firmware for my router had this configuration in this 504T model to access with ADSL:

VPI: 8
VCI: 32
Virtual circuit: Enabled
WAN setting: Dynamic IP Address
Connection type: 1483 Bridged IP LLC
MTU: 1400 bytes
ATM service category: UBR

How can I set this in the LuCI web interface?
(using OpenWRT 10.03 for AR7)

(Last edited by narcisgarcia on 25 May 2010, 11:54)

- Going to [Administration -> Network -> Interfaces -> WAN] you find to select protocols DHCP, PPP, PPPoE and PPPoA, but not mine (I see a help tip "You need to install "comgt" for UMTS/GPRS, "ppp-mod-pppoe" for PPPoE, "ppp-mod-pppoa" for PPPoA or "pptp" for PPtP support")

- I don't see any "dsl" or "comgt" package (Administration -> System -> Software), and all the "atm" seem to be installed.

One more question: Does openwrt-ar7-squashfs.bin come with ADSL drivers and right to make work a connection?

(Last edited by narcisgarcia on 25 May 2010, 11:54)

The Internet Service Provider has said that the most similar protocol is DHCP, but now I don't know which is the ADSL modem/interface in the available options: eth0 (used for LAN), eth1 or br-lan.
Or maybe is not detected?

I see that when this "D-Link DSL-504T" router is connected to the line, ADSL led brights as if synchronizes and connects.

Logging in with SSH;
This is the result of "ifconfig" command:

br-lan    Link encap:Ethernet  HWaddr 00:11:95:BA:00:00 
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:116 errors:0 dropped:0 overruns:0 frame:0
          TX packets:46 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:13186 (12.8 KiB)  TX bytes:5427 (5.2 KiB)

eth0      Link encap:Ethernet  HWaddr 00:11:95:BA:00:00 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:116 errors:0 dropped:0 overruns:0 frame:0
          TX packets:46 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:14810 (14.4 KiB)  TX bytes:5427 (5.2 KiB)
          Interrupt:41

eth1      Link encap:Ethernet  HWaddr 00:11:95:BA:00:00 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:90 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:36270 (35.4 KiB)
          Interrupt:27

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

This is the result of "ls -1 /dev/" command:

console
cpu_dma_latency
full
kmsg
log
mem
mtd0
mtd0ro
mtd1
mtd1ro
mtd2
mtd2ro
mtd3
mtd3ro
mtd4
mtd4ro
mtdblock0
mtdblock1
mtdblock2
mtdblock3
mtdblock4
network_latency
network_throughput
null
ppp
ptmx
pts
random
shm
tty
ttyS0
ttyS1
urandom
zero

In the LuCI interface (Administration -> Network -> Interfaces -> WAN) I can select as WAN interface: eth0, eth1, br-lan or -custom-.
How can I know which interface is the DSL modem?

(Last edited by narcisgarcia on 25 May 2010, 11:55)

ADSL driver for analog phone lines (as mine) is installed:
opkg info kmod-sangam-atm-annex-a

Package: kmod-sangam-atm-annex-a
Version: 2.6.32.10+D7.04.03.00-R1
Depends: kernel (= 2.6.32.10-1), kmod-atm
Provides:
Status: install ok installed
Section: kernel
Architecture: ar7
MD5Sum: 480af2758d3a851cac934fde4ffb6287
Size: 309009
Filename: kmod-sangam-atm-annex-a_2.6.32.10+D7.04.03.00-R1_ar7.ipk
Source: package/ar7-atm
Description: The AR7 ADSL driver for Annex A (ADSL over POTS).

How can I list the hardware detected by the system (as with lshw or lspci)?

Ok, an instant connection with this kind of "ethernet over ADSL" internet access can be done with this command in the router:

br2684ctl -b -c 0 -e 0 -p 1 -a 0.8.32

But I've found the way to save the configuration permanently for OpenWRT v10.03 in order to be loaded on boot by /etc/init.d/br2684ctl : editing the /etc/config/network file in the router.
I've left the WAN interface section as this:

config 'interface' 'wan'
#       option 'defaultroute' '0'
#       option 'peerdns' '0'
        option 'proto' 'dhcp'
#       option 'ifname' 'eth1'
        option 'ifname' 'nas0'

And added a new section for ATM bridge:

config 'atm-bridge'
        option  'atmdev'        '0'             # ATM interface nr.
        option  'unit'          '0'             # interface nas<num>
        option  'vpi'           '8'             # Virtual Path Identifier
        option  'vci'           '32'            # Virtual Channel Identifier
        option  'encaps'        'llc'           # encapsulation (llc=LLC, vc=VC Mux)
        option  'payload'       'bridged'       # payload type (routed, bridged)
#       option  'qos'                           # I don't know how is specified

I don't know if this can be done with LuCI web interface.

I edited easily that file with the "nano" editor:

opkg update; opkg install nano

The discussion might have continued from here.