This is a tutorial for configuring Allied Telesyn Residential Gateway device written specially for the "634" model and compatible with the other 6x4 models.
The AT-RG634 is a home/office device that can connect ot your ADSL line, can be used as a small router (and can receive Internet connection as from the ADSL, so and trought Ethernet/LAN), can be configured to use both SIP and/or H323VoIP protocols to connect to Asterisk/VoIP server and has 2 RJ 11 phone ports.
Specifications according to the manufacturer:
Features:
ADSL G.992.1/2 Annex A/B
ADSL2 G.992.3 Annex A/B
ADSL2+ G.992.5 Annex A/B
Tagged-based VLAN (IEEE 802.1Q)
Layer 2 and Layer 3 QoS
IGMP Snooping and Proxying
PPPoEoA, PPPoA, IPoA protocol support
DHCP client, server and relay support
Stateful Inspection Firewall
Network Address Translations (NAT)
H.323, SIP or MGCP VoIP protocol support
G.711, G.726, G.729 VoIP codecs
T.38 fax operation
External Power Supply
External Battery Backup support
ZTC,Web GUI (optional), SNMP serial and
telnet CLI for management and configuration
In this tutorial we assume that you have some previous knowledge of what is "telnet" and "VoIP".
Example for connecting to the "AT-RG6x4":
Configuration for PPPoE
An easy way to configure the "AT-RG6x4" to use Sip protocol with PPPoE connection:
When logged to the AT-RG634 via telnet type in the next sequence of commands:
bridge detach pvc_0_35_if
bridge delete interface pvc_0_35_if
transports delete pvc_0_35
ip add interface ipexternal
ip list interfaces
pppoe add transport pppoe dialout pvc 2 a1 0 35
ip attach ipexternalpppoe
pppoe set transport pppoe welogin auto
pppoe set transport pppoe username ADSL_USERNAME
pppoe set transport pppoe password ADSL_PASSWORD
pppoe set transport pppoe autoconnect enabled
pppoe set transport pppoe enabled
voip sip protocol enable
voip sip protocol set netinterface ipexternal
voip sip locationserver create ls1 contact xxx.xxx.xxx.xxx
voip sip proxyserver create ps1 contact xxx.xxx.xxx.xxx
voip ep analogue create tel1 type al-fxs-del physical-port tel1
voip sip user create user1 address nnnnnn authentication xxx:yyy transport udp
voip ep analogue enable tel1
voip sip user add user1 port tel1
voip sip protocol restart
What this commands do:
-> "bridge detach pvc_0_35_if", "bridge delete interface pvc_0_35_if" and "transports delete pvc_0_35" commands are used to remove the default setting set on the device.
-> with the "ip add interface ipexternal" command we create an interface that will be used to connect to Inernet and will be uset to associate with our VoIP connection.
-> "pppoe add transport pppoe dialout pvc 2 a1 0 35" here we create the pppoe interface that will be using the ADSL connection (and we have named it "pppoe")
-> "ip attach ipexternalpppoe"
-> "pppoe set transport pppoe welogin auto"
->"pppoe set transport pppoe username ADSL_USERNAME", "pppoe set transport pppoe password ADSL_PASSWORD", "pppoe set transport pppoe autoconnect enabled" and "pppoe set transport pppoe enabled" are the basic amount of settings you neet to set up. "ADSL_USERNAME" and "ADSL_PASSWORD" is the username and password your provider have given you to connect to Internet.
->the "voip sip protocol enable" is used to activate the sip protocol for the device
->the "voip sip protocol set netinterface name_of_interface" is used to specify the connection interface (can be viewed by the "ip list interfaces" command) that the "sip/voip protocol" will use to connect to Internet/VoIP server.
->the "locationserver" is the server where the device will attempt to register the created voip users. If more than one server is specified, the one set with the "master" option ("voip sip locationserver set 'name_of_location_server' master"). On the field we marked with "xxx.xxx.xxx.xxx" you can either type the IP of your location server, or its hostname.
->the "proxyserver" option is used when the device needs to know which proxy server must be used when an outgoing call cannot be processed by a local number or by a well defined forwarding rule and must be resolved by an external proxy server.On the field we marked with "xxx.xxx.xxx.xxx" you can either type the IP of your proxy server, or its hostname.
->the "voip ep analogue create tel1 type al-fxs-del physical-port tel1" command is creating access ports (also called end points - EP) - in our case the name of the EP is the same as the port to which it is assigned - "tel1". The type of the port can be "al-fxo-del" or "al-fxs-del" according to what is going to be connected to the device's phone ports, and the port itself: "tel1" and "tel2" (they have tags written over them).
-> the "create user" command creates, as obvious as it is, creates a sip user to be used by the device. It is very important to specify the creation command as we have shown because this options are not editable later. In the "address nnnnnn" You enter the phone number (E.164) used to reach the user. The address can be 32 characters long. In the "authentication xxx:yyy" You type the username and the password (where "xxx" is the username and "yyy" is the password) with your VoIP provider have given you to authorize to his VoIP server. And the "domain xxx.xxx.xxx.xxx" part is where you specify the VoIP server where the user will register.
-> with the last few commands we enable the port ("voip ep analogue enable tel1") and attach the user we created to it("voip sip user add user1 port tel1"). Then we restart the protocol (voip sip protocol restart).
PPPoE configuration (entering the "pppoe show transport 1" command):
The Sip user configuration ("voip sip user show 1" command):
When logged to the AT-RG634 via telnet type in the next sequence of commands:
bridge detach pvc_0_35_if
bridge delete interface pvc_0_35_if
transports delete pvc_0_35
voip sip protocol enable
voip sip protocol set netinterface 1
voip sip locationserver create ls1 contact xxx.xxx.xxx.xxx
voip sip proxyserver create ps1 contact xxx.xxx.xxx.xxx
voip ep analogue create tel1 type al-fxs-del physical-port tel1
voip sip user create user1 address xxxx authentication xxx:yyy domain xxx.xxx.xxx.xxx transport udp
voip ep analogue enable tel1
voip sip user add user1 port tel1
voip sip protocol restart
What this commands do:
-> "bridge detach pvc_0_35_if", "bridge delete interface pvc_0_35_if" and "transports delete pvc_0_35" commands are used to remove the default setting set on the device.
->the "voip sip protocol enable" is used to activate the sip protocol for the device
->the "voip sip protocol set netinterface name_of_interface" is used to specify the connection interface (can be viewed by the "ip list interfaces" command) that the "sip/voip protocol" will use to connect to Internet/VoIP server.
->the "locationserver" is the server where the device will attempt to register the created voip users. If more than one server is specified, the one set with the "master" option ("voip sip locationserver set 'name_of_location_server' master"). On the field we marked with "xxx.xxx.xxx.xxx" you can either type the IP of your location server, or its hostname.
->the "proxyserver" option is used when the device needs to know which proxy server must be used when an outgoing call cannot be processed by a local number or by a well defined forwarding rule and must be resolved by an external proxy server.On the field we marked with "xxx.xxx.xxx.xxx" you can either type the IP of your proxy server, or its hostname.
->the "voip ep analogue create tel1 type al-fxs-del physical-port tel1" command is creating access ports (also called end points - EP) - in ouer case the name of the EP is the same as the port to which it is assigned - "tel1". The type of the port can be "al-fxo-del" or "al-fxs-del" according to what is going to be connected to the device's phone ports, and the port itself: "tel1" and "tel2" (they have tags written over them).
-> the "create user" command creates, as obvious as it is, creates a sip user to be used by the device. It is very important to specify the creation command as we have shown because this options are not editable later. In the "address nnnnnn" You enter the phone number (E.164) used to reach the user. The address can be 32 characters long. In the "authentication xxx:yyy" You type the username and the password (where "xxx" is the username and "yyy" is the password) with your VoIP provider have given you to authorize to his VoIP server. And the "domain xxx.xxx.xxx.xxx" part is where you specify the VoIP server where the user will register.
-> with the last few commands we enable the port ("voip ep analogue enable tel1") and attach the user we created to it("voip sip user add user1 port tel1"). Then we restart the protocol (voip sip protocol restart).
We strongly recommend that You read also the official tutorial for this device, especially the one about the "voip" configuration: Software Reference Manual Part 5 - VoIP 3.3
ashee (ashee618 at yahoo dot com) 16 August 2008 09:11:32 wats das gateway??? da 10.0.0.0 number???????
Bjorn Kristiansen (bjorn dot kr at c2i dot net) 16 August 2007 08:51:08 To access the CLI interface press and hold the Default button at the back for approx 30s while powering up. After logging in create a login name (system add login...) After that you can access the interface anytime.
Greg Kelemen (gregkelemen at hotmail dot com) 16 March 2007 01:40:02 I have a AT-RG623TX that I'm having trouble getting the GUI to come up. I can telnet to the box and browse to the IP address. But the GUI displays "Web pages not available."
I need help on what to do.
Thanks,
--
gk
adriano (leobop at tele2 dot it) 20 February 2007 13:11:37 none