![]() |
![]() |
Technical Library |
|
15 Feb 2001
Certified Hardware & Software
What You Need |
MicroRouter 900iRouting with Compatible Systems MicroRouter 900i for LAN-Dial Service CommandsCommands: Pre OS Version 4.0.1
Other Useful Commands
Show All Command Show All CommandEntering the show all command gives information similar to the following:
General Information:
====================
Software Version: MicroRouter 900i v3.0.9
SW Build Date: 10/21/96 8:56
Hardware: 384K Flash ROM, 512K RAM
Last Config Date: none
Configuration File: Command Loop
Ethernet Address: 00:00:a5:74:16:00
Up Time: 1 day 20 hours 3 minutes 27 secs
Terminal settings: 80x24, Erase <BS>, Non-Enhanced Parser, More On
Time Server: disabled
Router Name: 900dialup
Administrator:
Domain Name:
Router Location:
Runtime Configured
Logging On On
Level Notice (5) Notice (5)
AuxPort On On
Syslog Off Off
IP Configuration:
=================
Addresses
Port IP Addr Subnet Broadcast Flags
Ethernet A 38.22.143.3 255.255.255.0 38.22.143.255 <RIP:disabled>
Wan A Unnumbered interface <RIP:disabled>
Remote Address: 0.0.0.0 <>
WAN/PPP Configuration:
======================
Hardware Settings:
Port Type TX Clk Baud Rate Fcntl Flags
Wan A Async n/a 115200 HW =2<DOOK> rt=< >
Aux A Async n/a 9600 None =0<>
Connection Configuration:
Port Mode Dial ConnectOut Callback Flags
Delay Retry Inactivity Chat
Wan A Dialup AT script - rt=140000<DOOK>
15 5 10 30
LCP Configuration:
Wan A:
Want=1a4<ACCM,MAGIC,PFC,ACFC>
Allow=5ac<ACCM,AUTH,MAGIC,PFC,ACFC,PAP>
ACCM Mask=0<>
Runtime Status:
===============
Interface LP PP DV Address State Flags
1 ni_loc 0 0 0 - Probe 0
2 ni_wan0 1 0 1 - Up 20181271
3 ni_p1et 2 2 0 - Probe 203
4 ni_p2et 3 2 0 65280:2 Up 345
5 ni_ip0 4 2 0 38.22.143.3 Up 11
6 ni_ipx1 5 2 0 - Probe 3000
7 ni_ipx2 6 2 0 - Probe 5000
8 ni_ipx3 7 2 0 - Probe 9000
9 ni_ipx4 8 2 0 - Probe 11000
View the Default RouteFrom the command prompt: Testrack-900i-FrameRelay# show routing ip static Static Routes: Destination Mask Gateway Hops Refs Uses Type Interface DEFAULT Interface 1 2 1 Stat Wan A View the Number to DialFrom the command prompt: Testrack-900i-Dialup# show chat script script: send atdt9,2707020 expect CONNECT View the Username (Login)
From the command prompt:
Testrack-900i-Dialup# show ppp auth
Enter Password:
Port Proto Status Name Password
Wan A PAP Allow LD0CSG hvgi3R*
CHAP Off
Authentication Database:
Name Password Chat Script Mask
View the Filters
From the command prompt:
Router# show ip filter
Filter Spec: filterin (1)
1: deny 38.211.199.0/ffffff00 -> 0.0.0.0/00000000
Protocol: IP
Matches: 0:
2: permit 0.0.0.0/00000000 -> 0.0.0.0/00000000
Protocol: TCP, Est
Matches: 0:
3: permit 0.0.0.0/00000000 -> 0.0.0.0/00000000
Protocol: TCP Src == 20, Dst >= 1023
Matches: 0:
4: permit 0.0.0.0/00000000 -> 0.0.0.0/00000000
Protocol: TCP Dst == 23
Matches: 0:
5: permit 0.0.0.0/00000000 -> 0.0.0.0/00000000
Protocol: UDP Src == 53, Dst >= 1023
Matches: 0:
6: permit 0.0.0.0/00000000 -> 0.0.0.0/00000000
Protocol: UDP Src == 53, Dst == 53
Matches: 0:
7: permit 0.0.0.0/00000000 -> 0.0.0.0/00000000
Protocol: ICMP
Matches: 0:
8: permit 0.0.0.0/00000000 -> 0.0.0.0/00000000
Protocol: UDP Src == 161, Dst >= 1023
Matches: 0:
9: deny 0.0.0.0/00000000 -> 0.0.0.0/00000000
Protocol: IP
Matches: 0:
View the Bandwidth
From the command prompt:
Internet# show wan csu config
Port Clock Frame Code Start/#/Cont Rate DataInv LBO PRM_TX LineLUP V54LUP
Wan0 Slave ESF B8ZS 1/ 8/cont 64k no 0dB Yes Yes Yes
Wan1 n/a
Number of Channels
Speed
2
128k
4
256k
8
512k
24
1536k = T1
View and Set the Idle Timeout
From the command prompt:
To view the Idle Timeout, type:
Testrack-900i-Dialup# show wan connect config
Port Mode Dial ConnectOut Callback Flags
Delay Retry Inactivity Chat
Wan A Dialup AT script - rt=40001
15 5 10 30
The idle time is in minutes (Example above: 10 minutes)
To set the Idle Timeout, type:
Testrack-900i-Dialup# interface wan a
Wan A# set WAN connect timeout inactivity 20 (however many minutes)
*Wan A# save
Save configuration to flash and restart router? y
Once the router restarts, the new idle timeout is set.
Add a Static RouteFrom the command prompt: MicroRouter 900i# add ip route 38.20.14.0 255.255.255.0 38.12.14.2 1 Updating runtime ip routing parameters. MicroRouter 900i# save Change the Dial NumberFrom the 900i prompt, type: Type en to put the router in enable mode: *900dialup> en The password should be the same as the one used to telnet in. Enter Password: 1. Show the chat script Now view the chat script: *900dialup# show chat script script: send atdt14154424600 expect CONNECT In this case, the number the router is dialing is 14154424600. As an example, we will remove the area code and dial 4424600. Now edit the script: 2. Edit the chat script *900dialup# edit chat script Editing "script"... a. send atdt14154424600 b. expect CONNECT End of buffer 3. Append the chat script. Append or a is valid for APPEND. Edit script> a Enter lines at the prompt. To terminate input, enter a . on a line by itself. 4. Add the new atdt line with the new phone number. Append> send atdt4424600 5. Leave the append mode. Type a period on a line by itself to stop the APPEND. Append> . 6. Clean up the chat script. Look again at the chat script. To view the script while in edit mode, type: Edit script> print 1 10 The 1 10 represents the range of chat script lines to print. It does NOT matter if there are not actually ten lines in the chat script. 1: send atdt14154424600 2: send atdt4424600 3: expect CONNECT End of buffer 7. Delete the unwanted line(s) from the chat script. Delete the line(s) by specifying the line number(s). Delete or d is for DELETE. Edit script> d 1 (Since line 1 is the old phone number) NOTE: You can delete a range of chat script lines by typing: delete [beginning line number] [ending line number] or d [beginning line number] [ending line number] 8. Exit the edit mode for the chat script. Type exit to exit edit mode. Edit script> exit 9. Save the changes. *900dialup#save Answer yes to restart router. Force the Router to Dial
Once connected, put the router in enable mode by typing:
900dialup> en
The password should be the same as the original (the default being letmein).
Enter Password:
Now bring the link up by typing
900dialup# sys upline 0
WAN0: attempting to bring link up
NOTE: The 0 refers to the Wan Port Number. Example:
900dialup# sys upline ?
upline command information:
Upline Force a WAN connect attempt
Usage: upline [Wan Port Number]
We need to put the appropriate Wan Port Number.
NOTE: To drop the line, type sys dropline 0.
Turn Filters On and OffFrom the command prompt: Router#interface wan 0 Wan A# set ip filter off Input filterin Wan A# set ip filter off Output filterout Wan A# save Save configuration to flash and restart router?y The router will automatically reboot to take the changes. To turn on the filters: Router#interface wan 0 Wan A# set ip filter on Input filterin Wan A# set ip filter on Output filterout Wan A# save Save configuration to flash and restart router?y The router will automatically reboot to take the changes. Ping from the RouterFrom the command prompt: MicroRouter 900i#ping <hostname> Example: MicroRouter 900i#ping 38.8.14.2 |