•Virata is a registered trademark of Virata Corporation.
•All other company or product names are trademarks or registered trademarks or
service marks of their respective owners and are hereby recognized as such.
Product warranty does not apply to damage caused by lightning, power surges or wrong
voltage usage.
Safety Guidelines
Adhere to the following safety guidelines when using your unit to reduce the risk of
fire, electric shock and injury.
Understand all instructions in the manual. Follow all instruction labels found
!
on the unit.
Except for the power adapter supplied, the unit should not be connected to
!
other adapters/power supplies.
Never spill liquid of any kind on the unit.
!
Do not place the unit on an unstable stand or table. The unit may drop and
!
become damaged.
Do not expose the unit to direct sunlight.
!
Do not put any heat generating devices close to the unit as it may degrade or
!
cause damage to it.
Do not stack the unit on top of each other. / Do not put any heavy object on
!
top of the unit
Do not use liquid cleaners or aerosol cleaners. Use a soft, dry cloth for
!
cleaning.
○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○
iii
Contents
Safety Guidelines ......................................................................... iii
About This Manual ....................................................................... ix
Conventions Used ........................................................................ x
1.Setting Up Local Management ................................................... 2-1
1.1Setting up the Serial Link ................................................... 2-1
1.2Configuring the Serial Link .................................................. 2-1
2.Basic Commands on Running Local Management ..................... 3-1
iii)To list existing route table (not applicable for Transparent Bridge)
ip route
○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○
2-2
2 — Basic Commands on Running Local Management
2.4To Disconnect/Connect the ADSL Link
i)To disconnect the ADSL link:
bsp down
(Upon issuing this command, ADSL Link will be disconnected unless the
following command is issued.)
ii)To re-connect (establish) the ADSL link:
bsp up
2.5To Toggle between Various Modes
i)To set router to multimode (auto-detect G.dmt, G.Lite & ANSI TI.413):
bsp multi
ii)To force router into detecting G.Lite only:
bsp glite
iii)To force router into detecting G.dmt only:
bsp gdmt
○○○○○
iv)To force router into detecting ANSI T1.413 only:
bsp ansi
For commands in section 2.5 , changes will take effect only after
you have re-established the line by issuing a
commands (see section 2.4).
For changes to be permanent, please follow by a
command.
○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○
bsp down
and
config save
bsp up
2-3
3.Configuring Your Router
3.1Configuration Flow Chart
RFC 2684
Ethernet
Framing
[section 3.3.3, (i)]
(Chapter 1)
(section 3.3.1)
(section 3.3.2)
(section 3.3.3)
RFC 2684
IP Framing
Setup Your Serial Link
Reset Router Configurations
Configure Your LAN settings
Configure Your WAN settings
RFC 2225
[section 3.3.3, (ii)][section 3.3.3, (iii)]
Configure Routing Table
Enable IP Forwarding
Transparent
Bridge ?
No
IPoA
(section 3.3.4)
(section 3.3.5)
Yes
RFC 2364
PPPoA
RFC 2516
PPPoE
[section 3.3.3, (iv)] [section 3.3.3, (v)]
Transparent
Bridge
(Chapter 4)
NAT required ?Enable NAT
No
Config Save
Yes
(section 3.3.6)
(section 3.3.7)
Configurations Completes!
○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○
3-1
○○○○○
3 — Configuring Your Router
1.All IP addresses and PVC values stated in this manual serve
only as examples for your better understanding. You are
required to replace these values with those given by your ADSL
Service Provider /System Administrator.
2.Console commands are case-sensitive. Punctuations (examples,
'_' underscore, '-' hyphen, ' ' spacing, etc) must be adhered to
strictly.
3.For detailed description and syntax of console commands, you may
refer toAppendix A - Commonly Used Commands on this
Technical Manual.
3.2Network Setup Overview
This section gives an overview of a typical network. The addresses indicated are
used as examples throughout the whole manual. You are to replace them with
values given by your ADSL Service Provider / System Administrator.
WAN Gateway = 202.166.29.2
202.166.29.154
ADSL
PVC=0/35
WAN
LAN
WAN IP
Your Router
LAN IP
192.168.1.1
202.166.30.1 (without NAT)
(with NAT)
Hub/Switch
PC A
PC B
PC X
PCs with
Ethernet cards
(The Hub / Switch is optional if your router has more than 1 Ethernet Ports)
○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○
3-2
1.For configuration without NAT:
The range of the IP address used in this example is from
202.166.30.1 to 202.166.30.6 as restricted by subnet mask defined.
Network ID : 202.166.30.0Broadcast ID : 202.166.30.7
The ADSL Service Provider will have to create a static route:
Network ID : 202.166.30.0Subnet Mask : ff:ff:ff:f8
Next Hop Gateway : 202.166.29.154
For PPPoA and PPPoE:
2.
The WAN IP and WAN Gateway will be dynamically assigned by the
PPP server. There is no need to specify the WAN IP nor to
configure a default route to the WAN Gateway.
Configuring the PCs:
For PC A:
(with NAT)(without NAT)
IP= 192.168.1.11= 202.166.30.2
Subnet mask = 255.255.255.0 = 255.255.255.248
Gateway= 192.168.1.1= 202.166.30.1
3 — Configuring Your Router
○○○○○
For PC B:
(with NAT)(without NAT)
IP= 192.168.1.12= 202.166.30.3
Subnet mask = 255.255.255.0 = 255.255.255.248
Gateway= 192.168.1.1= 202.166.30.1
For PC X:
(with NAT)(without NAT)
IP= 192.168.1.23= 202.166.30.6
Subnet mask = 255.255.255.0 = 255.255.255.248
Gateway= 192.168.1.1= 202.166.30.1
○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○
3-3
○○○○○
3 — Configuring Your Router
3.3Configuring the Basics
Please carry out the following necessary steps to configure your router. Details of
each step can be found on the following pages.
Step 1: Resetting your Router's Configuration
Step 2: Configuring the LAN
Step 3: Configuring the WAN
Step 4: Configuring the Routing Table
Step 5: Enabling IP Forwarding
Step 6: Enabling NAT
Step 7: Saving the Configurations
With the basics configured, you may proceed also with the configurations on the
following sections.
3.4Setting Up NAT Inbound Port Forwarding
3.5Configuring DHCP Server
3.6Configuring DNS Relay
3.7Configuring SNMP
3.8Setting Up Telnet Access
3.9Configuring Autoloop for IP Interface
At the prompt for password, enter either 'stm' or 'password'
(without the quotes). These are factory default passwords.
(If you have changed the default password at the DSL Router
Commander - SNMP option, enter your new password.)
○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○
3-4
3 — Configuring Your Router
3.3.1Configuring the Basics: Step 1 - Resetting your Router's
Configuration
Your router is set as Transparent Bridge by factory default.
Before starting a new configuration, always remember to clear all previous
configurations in your router.
○○○○○
To identify your current line protocol configured, type
Check the
typedev file
ether//bridge OR //edd
ptp//bun/port=atm/rfc1483...
atm//bun
ether//ppp/DEVICE=1 mtu 1500
ether//ppp/DEVICE=1 mtu 1492
type
and
dev file
listing to identify the protocol.
Line Protocol
2684 (1483) Ethernet Framing*
Transparent Bridge*
2684 (1483) IP Framing
2225 (1577) IPoA
2364 PPPoA
2516 PPPoE
* To further identify whether it is RFC 2684 (RFC 1483) Ethernet
Framing or Transparent Bridge, type
you will see 'Routing table empty' listed.
ip route
. For Transparent Bridge,
The following gives the commands to clear:
For PPPoA or PPPoE configurations, enter:
ppp 1 clear
For the rest of the configurations, follow the instructions below:
a) To delete all the interfaces:
(You may type
ip device flush
bridge device flush
ip device/bridge device
to list existing interfaces.)
ip device
.
○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○
3-5
○○○○○
3 — Configuring Your Router
b) To delete all the subnet mask:
(You may type
ip subnet flush
ip subnet
to list existing subnet mask.)
c) To delete the route table, if any:
(You may type
ip route flush
ip route
to list existing routes.)
d) To remove NAT on a WAN interface, if any:
(See illustration shown below)
To list any existing NAT enabled WAN interface,
ip nat
If you have an existing NAT enabled WAN interface, you will see
nat add
<wan_interface>
To remove the NAT enabled WAN interface,
ip nat delete
<wan_interface>
<wan_interface>
○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○
3-6
3 — Configuring Your Router
3.3.2Configuring the Basics: Step 2 - Configuring the LAN
Configure the LAN with IP address given by your System Administrator. Assuming
that the IP address given is 192.168.1.1:
ip device add lan ether //edd
ip subnet add lan.home .
192.168.1.1
192.168.1.1 ff:ff:ff:0
3.3.3Configuring the Basics: Step 3 - Configuring the WAN
Configure the WAN with IP address given by your ADSL Service Provider. You may
configure your router to one of the following line protocols supported:
i)RFC 2684 (RFC 1483) Ethernet Framing
ii)RFC 2684 (RFC 1483) IP Framing
iii)RFC 2225 (RFC 1577) IPoA
iv)RFC 2364 PPPoA
v)RFC 2516 PPPoE
i)Configuring the WAN - For RFC 2684 (RFC 1483) Ethernet Framing
a) To add a bridge device, assuming the PVC given by your ADSL Service
For multiple PVCs, repeat the above commands with the different VPI and
VCI values.
b) To set the IP configuration of your WAN connection, assuming WAN IP
given by your ADSL Service Provider is fixed at 202.166.29.154:
ip device add wan ether //bridge
ip subnet add wan.home .
202.166.29.154
202.166.29.154 ff:ff:ff:0
OR
To obtain WAN settings automatically from your ADSL Ser vice Provider:
ip device add wan ether //bridge
○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○
dhcp
3-7
○○○○○
3 — Configuring Your Router
ii)Configuring the WAN - For RFC 2684 (RFC 1483) IP Framing
a) To set the IP configuration of your WAN connection, assuming the PVC
and WAN IP given by your ADSL Service Provider are 0/35 and
202.166.29.154 respectively:
For LLC-SNAP encapsulation:
ip device add wan ptp //bun/port=atm/rfc1483=true/mode=llcrouted/txvpi=
ip subnet add wan.home .
rxvpi=
0
/rxvci=35
202.166.29.154
(all in one line)
202.166.29.154 ff:ff:ff:0
For VCMUX encapsulation:
ip device add wan ptp //bun/port=atm/rfc1483=true/mode=vcmuxrouted/
ip subnet add wan.home .
0
/txvci=35/rxvpi=0/rxvci=35
txvpi=
202.166.29.154
202.166.29.154 ff:ff:ff:0
For multiple PVCs,
-Repeat (a) with different PVCs values.
wan
-Append
with an underscore ('_') followed by a unique digit for
each of the different PVC configured.
-Issue a unique WAN IP for each of the different PVC configured
Examples:
For first PVC value (0/35)
ip device add wan_1 ptp //bun/port=atm/rfc1483=true/mode=llcrouted/
txvpi=0/txvci=35/rxvpi=0/rxvci=35
ip subnet add wan_1.home .
202.166.29.154 ff:ff:ff:0
For second PVC value (0/100),
ip device add wan_2 ptp //bun/port=atm/rfc1483=true/mode=llcrouted/txvpi=
rxvpi=0/rxvci=
ip subnet add wan_2.home .
100 202.166.29.155
202.166.29.155 ff:ff:ff:0
unique WAN IP
append with a unique digit
202.166.29.154
append with a unique digit
(all in one line)
0
/txvci=35/
(all in one line)
(all in one line)
0
/txvci=
100
/
○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○
3-8
3 — Configuring Your Router
iii)Configuring the WAN - For RFC 2225 (RFC 1577) IPoA
a) To set the IP configuration of your WAN connection, assuming the WAN
IP given by your ADSL Service Provider is 202.166.29.154:
ip device add wan atm //atm
ip subnet add wan.home .
b) To set the atm configuration, assuming the PVC and WAN Gateway given
by your ADSL Service Provider are 0/35 and 202.166.29.2 respectively:
ip ipatm pvc add wan atm
OR
To obtain WAN settings automatically from your ADSL Ser vice Provider:
ip device add wan atm //atm
ip ipatm pvc add wan atm
For multiple PVCs,
-Repeat (b) with different PVCs values.
-Append
wan
with an underscore ('_') followed by a unique digit for
each of the different PVC configured.
-Issue a unique WAN IP for each of the different PVC configured
Examples:
For first PVC value (0/35)
ip ipatm pvc add wan_1 atm
For second PVC value (0/100),
ip ipatm pvc add wan_2 atm
202.166.29.154
202.166.29.154 ff:ff:ff:0
0/35
remoteip
202.166.29.2
dhcp
0/35
remoteip
0/35
remoteip
0/100
202.166.29.2
202.166.29.2
append with a unique digit
remoteip
202.166.29.3
○○○○○
unique WAN IP
○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○
3-9
○○○○○
3 — Configuring Your Router
iv)Configuring the WAN - For RFC 2364 PPPoA
a) To set the IP configuration of your WAN connection. The PPP module
supports multiple simultaneously connections, so we explicitly specify
Device 1 here. (This is required for PPP dial-out session):
ip device add ppp_device ether //ppp/DEVICE=
b) To set the PPP channel configuration, assuming the PVC given by your
ADSL Service Provider is 0/35. CHAP authentication is used in this
example. Replace CHAP with PAP if you are using PAP authentication.
ADSL Service Provider will supply the myuserid and mypassword.
ppp 1 pvc
ppp
ppp 1 gateway local
ppp
0 35
1
welogin
1
enable
ip
myuserid mypassword chap
c) To check the PPP connection every 10 seconds. (This is to allow the PPP
session to automatically re-establish itself after an ADSL link disruption
and re-connection.):
ppp 1 echo every 10
d) If you do not want to enable NAT, you may enable the PPP IP Unnumbered
feature (availability will depend on your router package). PPP IP
Unnumbered allows you to enable IP processing on a serial interface
without assigning it an explicit IP address. The ip unnumbered interface
can 'borrow' the IP address of another interface that is already configured
on the router, thereby conserving network and address space.
(Assuming your LAN Subnet mask is ff:ff:ff:f8.)
ppp 1 disable
1
unnumbered enable
ppp
1
lansubnet
ppp
ppp 1 enable
config save
ff:ff:ff:f8
1
When the PPP link is established, you will notice that your LAN IP
address actually changes to the address of the WAN IP obtained from
the PPP Server. Your WAN IP address now becomes 0.0.0.1, a dummy
IP address.
To maintain IP connectivity to the router's LAN Port before and after
establishing the PPP unnumbered link, you are advised to pre-configure
the LAN IP to that of the given WAN IP. (You may refer to section 3.3.2,
Step 2 - Configuring the LAN.)
○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○
3-10
3 — Configuring Your Router
v)Configuring the WAN - For RFC 2516 PPPoE
a) To set the IP configuration of your WAN connection. The PPP module
supports multiple simultaneously connections, so we explicitly specify
Device 1 here. The MTU (Maximum Transmit Unit) size for PPPoE must
also be specified as being 1492:
ip device add ppp_device ether //ppp/DEVICE=
b) To configure PPP device 1, assuming the PVC given by your ADSL Service
Provider is 0/35.
ppp 1 pppoe
0 35
c) CHAP authentication is used in this example. Replace CHAP with PAP
if you are using PAP authentication. ADSL Service Provider will supply
the myuserid and mypassword.
ppp 1 welogin
ppp 1 gateway local
1
enable
ppp
myuserid mypassword chap
d) To check the PPP connection every 10 seconds. (This is to allow the PPP
session to automatically re-establish itself after an ADSL link disruption
and re-connection.):
ppp 1 echo every 10
e) If you do not want to enable NAT, you may enable the PPP IP Unnumbered
feature (availability will depend on your router package). PPP IP
Unnumbered allows you to enable IP processing on a serial interface
without assigning it an explicit IP address. The ip unnumbered interface
can 'borrow' the IP address of another interface that is already configured
on the router, thereby conserving network and address space.
(Assuming your LAN Subnet mask is ff:ff:ff:f8.)
ppp 1 disable
1
unnumbered enable
ppp
ppp
1
lansubnet
ppp 1 enable
config save
ff:ff:ff:f8
1
mtu 1492
○○○○○
When the PPP link is established, you will notice that your LAN IP address
actually changes to the address of the WAN IP obtained from the PPP
Server. Y our WAN IP address now becomes 0.0.0.1, a dummy IP address.
To maintain IP connectivity to the router's LAN Port before and after
establishing the PPP unnumbered link, you are advised to pre-configure
the LAN IP to that of the given WAN IP. (You may refer to section 3.3.2,
Step 2 - Configuring the LAN.)
○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○
3-11
○○○○○
3 — Configuring Your Router
3.3.4Configuring the Basics: Step 4 - Configuring the Routing
Table
i)Adding a Default route through a Gateway
(No default route is required for PPPoA and PPPoE line protocols.)
Assuming the WAN Gateway given by your ADSL Service Provider is 202.166.29.2:
ip route add default 0.0.0.0
202.166.29.2
0:0:0:0
ii)Dynamic Routing
If dynamic routing is not required, it is recommended to disable this feature
to reduce unnecessary traffic:
ip rip accept all none
ip rip send all none
3.3.5Configuring the Basics: Step 5 - Enabling IP Forwarding
To enable IP for warding between your LAN and WAN,
ip relay all
3.3.6Configuring the Basics: Step 6 - Enabling NAT
To enable NAT on a WAN interface,
i)For RFC 2684 (RFC 1483) Ethernet Framing/1483 IP Framing/1577 IPoA
Assuming the WAN interface name is wan:
ip nat add
wan
ii)For RFC 2364 PPPoA / RFC 2516 PPPoE
ip nat add ppp_device
You may proceed to section 3.4 to set up your NAT Inbound Port Forwarding.
3.3.7Configuring the Basics: Step 7 - Saving the Configurations
config save
○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○
3-12
3 — Configuring Your Router
3.4Setting Up NAT Inbound Port Forwarding
(Port Address Translation)
When you have enabled NAT on the WAN interface, in order for people to reach your
HTTP (Web) Server, FTP Server and so on at your LAN, you need to activate the NAT
Inbound Port forwarding.
The following gives an illustration of a Web Server (IP=192.168.1.100) and FTP
Server (IP=192.168.1.101) connected to your router.
NAT Inbound Port Forwarding is not applicable for Transparent
Bridge configuration.
○○○○○
WAN Gateway = 202.166.29.2
WAN IP
202.166.29.154
ADSL
PVC=0/35
WAN
Your Router
LAN IP
192.168.1.1
LAN
(The Hub / Switch is optional if your router
has more than 1 Ethernet Ports)
For PC A:
IP= 192.168.1.2
Subnet mask= 255.255.255.0
Gateway= 192.168.1.1
For PC B:
IP= 192.168.1.3
Subnet mask= 255.255.255.0
Gateway= 192.168.1.1
PC A
Hub/Switch
PC B
PCs with
Ethernet
cards
Web Server
FTP Server
For Web Server:
IP= 192.168.1.100
Subnet mask= 255.255.255.0
Gateway= 192.168.1.1
For FTP Server:
IP= 192.168.1.101
Subnet mask= 255.255.255.0
Gateway= 192.168.1.1
○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○
3-13
○○○○○
3 — Configuring Your Router
i)To allow Web request to your HTTP (Web) Server (assuming the server is
using default TCP Port 80):
nat inbound add wan 80/tcp
192.168.1.100
ii)To allow FTP request to your FTP Server (assuming the server is using default
TCP Port 21):
nat inbound add wan 21/tcp
192.168.1.101
iii)To show the current IP forwarding rules:
nat inbound list
e.g.
#Interface Port/Proto New IP address
1wan80/tcp192.168.1.100
2wan21/tcp192.168.1.101
iv)To remove a rule:
nat inbound delete 1
where 1 refers to the '#' corresponding to the interface you want to remove.
v)To remove all rules:
nat inbound flush
You may refer to Appendix B - Well-Known TCP/UDP Ports for most
of the commonly used TCP/UDP Ports.
○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○
3-14
3 — Configuring Your Router
3.5Configuring DHCP Server
The following DHCP configuration information may be used with any one of the line
protocols illustrated in Section 3.3.3, Step 3 - Configuring the WAN to produce a
complete system.
DHCP is not applicable to Transparent Bridge configuration.
3.5.1Some useful commands for DHCP
i)To list down the configuration file:
dhcpserver config
ii)To delete the last command line:
dhcpserver config delete
iii)To remove all previous configuration lines:
dhcpserver config flush
○○○○○
iv)To show dhcpserver status:
dhcpserver status
v)To allow changes to take effect immediately:
dhcpserver config confirm
dhcpserver reset
vi)To save changes permanently:
config save
Any changes to the dhcpserver configurations must be followed by
dhcpserver config confirm, dhcpserver reset
○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○
and
config save
.
3-15
○○○○○
3 — Configuring Your Router
3.5.2DHCP Server Illustration
All the PCs IP addresses, subnet mask and Gateway are obtained from your router
running the DHCP Server.
i)For all PCs configuration:
From the Network Properties (right-click on Network Neighborhood / My
Network Places to select Properties) window of your Ethernet Card, set the
IP Address option at the TCP/IP Properties to 'Obtain an IP address
dhcpserver: Config changes confirmed, use “flashfs update” to
commit.
: Changes will not work correctly until restart - do this ASAP.
2 Replace with the LAN IP address of your router if you are using DNS relay. Else,
replace with the DNS provided by your ADSL Service Provider
○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○
3-16
config confirm
, you should see messages similar to the one
3 — Configuring Your Router
3.6Configuring DNS Relay
3.6.1To Enable DNS Relay (with fixed IP address from your ADSL
Service Provider)
dnsrelay server
config save
restart
For RFC 2364 / RFC 2516:
To enable DNS Relay (with IP address obtained automatically from your
ADSL Service Provider), assuming the PPP module device is 1.
ppp 1 enableprimarydns relay
config save
restart
Ensure that the DNS Server address of the DHCP Server is set to the
LAN IP address of your router.
Example, (section 3.5.2 - DHCP Server Illustration , step ii.)
:
:
config add option domain-name-servers
:
(assuming the IP address of your router is 192.168.1.1.)
IP
3
192.168.1.1
○○○○○
3.6.2To Check DNS Relay Server Status
dnsrelay status
3.6.3To Disable DNS Relay
dnsrelay config reset
3 Replace with the DNS provided by your ADSL Service Provider.
○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○
3-17
○○○○○
3 — Configuring Your Router
3.7Setting Up SNMP
3.7.1Read/Write Access
The following illustrates the commands for write/read access.
i)Add this command only when no IP has been assigned to the ether interface
of your router. The IP should have the same subnet as the Ethernet card and
must be unique in the network.:
ip device add lan ether //edd
ip subnet add lan.home .
For example,
IP for Ethernet card : Dynamic IP obtained from far end server, range:
IP for router: Fixed at 192.168.1.1
ii)To enable SNMP read and write access:
ip snmp access write
stm
4
(Assuming the IP address of the PC that you want to enable SNMP from is
192.168.1.11.)
OR
To enable SNMP read access:
ip snmp access read
public
(Assuming the IP address of the PC that you want to enable SNMP from is
192.168.1.11.)
iii)To save:
config save
restart
192.168.1.1
192.168.1.1 ff:ff:ff:0
192.168.1.2 to 192.168.1.100
192.168.1.11
4
192.168.1.11
5
5
4 SNMP community names given by your System Administrator
5 Specif ying this optional IP address will permit users to SNMP only from this specific
PC with the correct password.
○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○
3-18
3.7.2SNMP Trap
i)To add a trap destination:
snmp trap add <community> <IP addr> [<port>]
ii)To delete a trap destination:
snmp trap delete <community> <IP addr> [<port>]
iii)To delete all traps destination:
snmp trap flush
iv)To list trap(s) destination:
snmp trap list
Example:
>snmp trap add community_name 192.168.1.5 21
>snmp trap list
trap add community_name 192.168.1.5 21
>snmp trap delete community_name 192.168.1.5 21
>snmp trap list
No trap destinations set
3.8Setting up Telnet Access
3 — Configuring Your Router
○○○○○
(By factory default, Telnet Access is enabled. If the feature has been removed from
your router, you may carry out the following steps to enable it.)
Ensure that your router has SNMP write access enabled (see Section 3.7 - Setting
Up SNMP) before you proceed with the Telnet Access setup.
To enable Telnet to your router:
ip portname add telnet 23/tcp
config save
The Telnet password will be your SNMP write access community name
that you have entered during SNMP setup (section 3.7.1, step (ii)).
○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○
3-19
○○○○○
3 — Configuring Your Router
3.9Configuring Autoloop for IP Interface
ip device add loop loop 127.0.0.1
ip autoloop on
config save
By default, autoloop is disabled. Once the above commands are issued, you are able
to ping to your router's LAN IP.
○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○
3-20
4.Configuring Your Transparent Bridge
1.All IP addresses and PVC values stated in this manual serve
only as examples for your better understanding. You are
required to replace these values with those given by your
ADSL Service Provider / System Administrator.
2.Console commands are case-sensitive. Punctuations (examples,
'_' underscore, '-' hyphen, ' ' spacing, etc) must be adhered to
strictly.
3.For any queries on the console commands, you may refer to
Appendix A - Commonly Used Commands for the syntax and
descriptions.
4.1Network Setup Overview
Bridge
ADSL
Your Router
PVC=0/35
PC with Ethernet Card
4.2Configuring the Basics
Please carry out the following necessary steps to configure your router. Details of each
step can be found on the following pages.
Step 1: Resetting your Router's Configuration
Step 2: Configuring the LAN
Step 3: Saving the Configurations
○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○
4-1
○○○○○
4 — Configuring Your Transparent Bridge
Your router is set as Transparent Bridge by factory default. In
Transparent Bridge, only one of the PCs connected to your router
can have access to the Internet at any one time.
4.2.1Step 1: Resetting your Router's Configuration
Before starting a new configuration for your router, always remember to clear all
previous configurations in your router. The following shows the commands and
explanations.
For PPPoA or PPPoE configurations, enter:
ppp 1 clear
For the rest of the configurations, follow the instructions below:
a) To delete all the interfaces:
(You may type
ip device flush
bridge device flush
b) To delete all the subnet mask:
(You may type
ip subnet flush
ip device/bridge device
ip subnet
to list existing subnet mask.)
to list existing interfaces.)
c) To delete the route table, if any:
(You may type
ip route flush
ip route
to list existing routes.)
d) To remove NAT on a WAN interface, if any:
(See illustration on the following page)
To list any existing NAT enabled WAN interface,
ip nat
If you have an existing NAT enabled WAN interface, you will see
nat add
<wan_interface>
To remove the NAT enabled WAN interface,
ip nat delete
○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○
4-2
<wan_interface>
4 — Configuring Your Transparent Bridge
<wan_interface>
4.2.2Step 2:Configuring the LAN
i)To add Ethernet device to the bridge:
bridge device add edd
ii)To add a bridge device, assuming the PVC given by your ADSL Service Provider
For multiple PVCs, repeat the above commands with the different VPI and
VCI values.
iii)Set the IP address of your router ether port with the address given by your
System Administrator. (This is required in order to run the DSL Router
Commander.):
ip device add bridge ether //bridge
ip subnet add bridge.home .
192.168.1.1 ff:ff:ff:0
192.168.1.1
4.2.3Step 3:Saving the Configurations
config save
○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○
4-3
5.Router Configuration Examples
All IP addresses and PVC values stated in this manual serve only as
examples for your better understanding. You are required to replace
these values with those given by your ADSL Service Provider /
System Administrator.
For your better understanding, this section contains examples on configuring your
router. Do not duplicate these examples for your configuration. Check with your ADSL
Service Provider / System Administrator for actual IP addresses, PVC values and options
to use.
5.1Example on RFC 2684 (RFC 1483) IP Framing
i)To reset all IP configurations:
ppp 1 clear
ip device flush
bridge device flush
ip subnet flush
ip route flush
ii)Configuring the LAN:
ip device add lan ether //edd
ip subnet add lan.home .
192.168.1.1
192.168.1.1 ff:ff:ff:0
iii)Configuring the WAN (for LLC-SNAP encapsulation):
ip device add wan ptp //bun/port=atm/rfc1483=true/mode=llcrouted/
txvpi=0/txvci=35/rxvpi=0/rxvci=35
ip subnet add wan.home .
202.166.29.154 ff:ff:ff:0
202.166.29.154
(all in one line)
v)Configuring the Routing Table:
ip route add default 0.0.0.0
202.166.29.2
0:0:0:0
vi)To disable dynamic routing:
ip rip accept all none
ip rip send all none
○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○
5-1
○○○○○
5 — Router Configuration Examples
vii)Enabling IP Forwarding:
ip relay all
vii)Enabling NAT:
ip nat add wan
viii)Save configurations:
config save
5.2Example on RFC 2364 PPPoA
i)To reset all IP configurations:
ppp 1 clear
ip device flush
bridge device flush
ip subnet flush
ip route flush
ii)Configuring the LAN:
ip device add lan ether //edd
ip subnet add lan.home .
192.168.1.1
192.168.1.1 ff:ff:ff:0
iii)Configuring the WAN (for CHAP authentication):
ip device add ppp_device ether //ppp/DEVICE=1
1
pvc
0 35
ppp
1
welogin
ppp
ppp 1 enable
ppp 1 echo every 10
i
v)To disable dynamic routing:
ip rip accept all none
ip rip send all none
ip
myuserid mypassword chap
v)Enabling IP Forwarding:
ip relay all
vi)Enabling NAT:
ip nat add ppp_device
vii)Save configurations:
config save
○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○
5-2
6.Configuring PPTP (Point-to-Point
Tunnelling Protocol)
1.PPTP protocol is not supported in Windows® 95.
2.Ensure that you have already setup your local management as
described in Chapter 1 - Setting Up Local Management.
3.All IP addresses and PVC values stated in this manual serve
only as examples for your better understanding. You are
required to replace these values with those given by your
ADSL Service Provider / System Administrator.
4.Console commands are case-sensitive. Punctuations (examples,
'_' underscore, '-' hyphen, ' ' spacing, etc) must be adhered to
strictly.
5.For detailed description and syntax of console commands, you may
refer toAppendix A - Commonly Used Commands on this
Technical Manual.
6.1Running the Console Commands
6.1.1Step 1 - Configuring the LAN
Configure the LAN with IP address given by your System Administrator. Assuming
that the IP address given is 192.168.1.1:
ip device add lan ether //edd
ip subnet add lan.home .
192.168.1.1
192.168.1.1 ff:ff:ff:0
6.1.2Step 2 - Configuring PPP Client and PNS (PPTP Network
Server)
Assuming the values for channel and tunnel given by your System Administrator are
2 and 1 respectively, and the PVC values given by your ADSL Service Provider are 0/
The domain-name-servers option specifies a list of Domain Name System (STD 13,
RFC1035) name servers available to the client. Servers should be listed in order
of preference.
Example:
> dhcpserver config
-
Current DHCP server configuration
-
allow unknown-clients;
allow bootp;
A-26
○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○
A- Commonly Used Commands
○○○○○
subnet 192.168.219.0 netmask 255.255.255.0 {
range 192.168.219.10 192.168.219.30;
max-lease-time 5000;
}
dhcpserver config flush
>
Configuration file flushed.
>
dhcpserver config
—Current DHCP server configuration
(Issue
dhcpserver config confirm followed by flashfs update to confirm
new configuration)
—-
>
A.5.2dnsrelay config
Syntax:
dnsrelay config [reset]
Description:
This command displays the configuration of the DNS relay, including the DNS server
address, the number of communication retries the relay will attempt in the event of
a failed connection, and whether or not the relay has managed to connect successfully
reset
to the
config
to a DNS server. Adding the keyword
configuration being reset to factory default settings.
Example:
> dnsrelay config
Server discovery mode :MANUAL
DNS Server address : 192.168.96.200 - Connected
Max connection retries : 3
>
dnsrelay config reset
dnsrelay : Default settings restored. (Warning: Must re-connect to DNS
server,
dnsrelay : all old outstanding traffic and connections will be
dropped).
command results in the
○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○
A-27
○○○○○
A- Commonly Used Commands
A.5.3dnsrelay retry
Syntax:
dnsrelay retry <retry value>
Description:
This command sets the maximum number of retries the DNS relay is allowed to
perform in the event of connection or transmission failure. The retry value must be
a number between 1 and 10.
Example:
> dnsrelay retry 4
Connection retry value set to 4.
>
A.5.4dnsrelay server
Syntax:
dnsrelay server <DNS server IP address>
Description:
This command tells the DNS relay which DNS server to contact. Caution must be
exercised when using this command - if the DNS relay already knows which DNS
server to contact then all existing connections will be reset, all outstanding traffic
dropped, and the relay will then attempt to communicate with the newly appointed
DNS server.
Example:
> dnsrelay server 192.168.219.50
DNS server address set to 192.168.219.50.
>
A-28
○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○
A- Commonly Used Commands
A.5.5dnsrelay status
Syntax:
dnsrelay status
Description:
This command displays the status of the DNS relay, including whether or not it
knows which DNS server to try to contact and, if so, whether or not it has
successfully connected to the server.
Example:
> dnsrelay status
DNS relay status
DNS server address discovery incomplete.
dnsrelay server 192.168.219.50
>
DNS server address set to 192.168.219.50.
dnsrelay status
>
DNS relay status
DNS server address : 192.168.219.50
Connection status : Connected
>
○○○○○
○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○
A-29
○○○○○
A- Commonly Used Commands
A.5.6dnsrelay trace/untrace
Syntax:
dnsrelay <trace|untrace> [trace options]
Description:
This command enables or disables tracing for the DNS relay. If no arguments are
given the command lists the current tracing options enabled.
The following trace options are available:
socketReport ALL socket-related I/O
queryTrace DNS resolver queries
responseTrace DNS server responses
errorReport all serious, error-evel events
warnReport all minor, warning-level events
connTrace DNS server connectivity
allActivate all trace options
Trace options are disabled by using the
to be disabled.
Saving configuration does not preserve the current tracing options that are enabled.
By default tracing of
error
is enabled.
Example:
> dnsrelay trace
No tracing options currently enabled.
dnsrelay trace error warn query
>
Currently tracing: error warn query
untrace
command with the option names
A-30
○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○
A- Commonly Used Commands
A.5.7help
Syntax:
dhcpserver help <command|all>
Description:
This command provides help on the various console commands provided by the
DHCP server. Specifying a command name gives detailed help on the command.
Specifying
all
gives detailed help on all available commands.
Example:
> dhcpserver help
Help is available on the following commands:
confighelppoolstatustraceuntrace
A.5.8status
Syntax:
dhcpserver status
Description:
This command provides a summary of all leases known to the server on each
interface in turn. It also shows remaining available IP addresses (i.e. those with no
specified lease time, or client identifier).
Example:
> dhcpserver status
DHCP Server Lease Status
Interface “ethernet”
IP address | Client UID| Expiry
———————————————+—————————————————————————+—————————
192.168.219.1|01:00:20:af:20:6f:59| 11 hours
192.168.219.2|01:00:20:af:11:2a:ac| 8 hours
192.168.219.3| Myclient| 140 seconds
192.168.219.4|00:20:af:20:00:2b| 2 days
192.168.219.5| <unknown>| Never
192.168.219.6| <unknown>| Never
192.168.219.7| <unknown>| Never
192.168.219.8| <unknown>| Expired
192.168.219.9| <unknown>| Expired
192.168.219.10 | Foobarbozzle| Expired
○○○○○
○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○
A-31
○○○○○
A- Commonly Used Commands
A.5.9version
Syntax:
dhcpserver version
Description:
This command displays the current version number of the DHCP software.
Example:
> dhcpserver version
DHCP Version 1.02
>
A-32
○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○
A- Commonly Used Commands
A.6BUN Commands
Command parsing is case insensitive. Whitespace may be used to separate distinct
arguments. Any prefix of the string
A.6.1bun list channels
Syntax:
list channels
Description:
List all open connections on the specified port. If no port is nominated, all channels
on all ports will be displayed.
The channels are shown with their identification number and a selection of useful
attributes. A full attribute list can be obtained via the
All channels are shown with the Enabled attribute first, which indicates if the
channel has yet been enabled (connected) by the application code.
Example:
list channels 0
list channels atm:0
bun
to the command line is ignored.
[<portname>]
show channel
command.
○○○○○
○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○○
A-33
○○○○○
A- Commonly Used Commands
A.7PPTP Commands
A.7.1Console object types
The PPTP process provides a number of PPTP connection tunnels. A tunnel consists
of a control connection between the local PAC and a PNS, and a data connection
(known as a call) through which a number of PPP connections or channels may be
multiplexed.
The current state of each tunnel is saved by
A.7.2Console Examples
These examples are for configuration of the PPTP Access Concentrator (PAC).
Obviously the PPP client or server and the PNS must also be configured.
Dial-Out
The PPTP module uses functionality provided by the PPP module. Configure
PPP channel 2 for an outgoing PPTP connection, using PPTP tunnel 1, and