© Microhard
98
5.0 AT Command Line Interface
Firewall AT Commands (Continued)
AT Command
Description
Syntax
Effect
AT+MFRULE
Get/Set firewall rule
AT+MFRULE[=<Name>[,<Operation>[,<Action>,<Source>,<Src IP Format>,<Src IP From/Subnet
>, <Src IP To/Prefix>, <Destination>,<Dest IP Format>,<Dest IP From/Subnet>,<Dest IP To/
Prefix>, <Dest Port>,<Protocol>]]]
Parameters:
Name : Name of firewall rule name, 1
-
64 characters
Operation : ADD
-
Add a firewall rule
EDIT
-
Edit a firewall rule
DEL
-
Delete a firewall rule
Action : 0
-
Accept
1
-
Drop
2
-
Reject
Source : 0
-
LAN
1
-
Independent LAN
2
-
WAN
3
-
USB
4
-
None
IP Format : 0
-
IP Range
1
-
Subnet / Prefix
IP From/Subnet: Valid IP address. 0
-
Set to blank
IP To/Prefix : Valid IP address. 0
-
Set to blank; or 0 ~ 32 for Prefix
Destination : 0
-
LAN
1
-
Independent LAN
2
-
WAN
3
-
USB
4
-
None
IP Format : 0
-
IP Range
1
-
Subnet / Prefix
IP From/Subnet: Valid IP address. 0
-
Set to blank
IP To/Prefix : Valid IP address. 0
-
Set to blank; or 0 ~ 32 for Prefix
Port/Range : Port 0 ~ 65535 or Port range specified as 100:200 format
Protocol : 0
-
TCP
1
-
UDP
2
-
TCPUDP
3
-
ICMP
AT&W
AT+MFRST
Reset to default firewall
AT+MFRST <enter>
Immediate
Network AT Commands
AT Command
Description
Syntax
Effect
AT+MNLAN
Show/Add/Edit/Delete the network LAN interface
AT+MNLAN
AT+MNLAN=<LAN Name>
AT+MNLAN=<LAN Name>,DEL
AT+MNLAN=<LAN Name>,ADD/EDIT,<Protocol>[,<IP>,<Netmask>[,<Gateway>]] Where
<Protocol>=0
AT+MNLAN=<LAN Name>,ADD/EDIT,<Protocol> Where <Protocol>=1 or 3
AT+MNLAN=<LAN Name>,EDIT,<Protocol>[,<IP>,<Netmask>] Where <Protocol>=2 and
<LAN Name>="lan"
Parameters:
LAN Name : Name of Network LAN interface. System built
-
in one is "lan"
Operation : ADD
-
Add a new LAN interface
EDIT
-
Edit an exsiting LAN interface
DEL
-
Delete an existing LAN interface
Protocol : 0
-
Static IP
1
-
DHCP with LAN alias disabled
2
-
DHCP with LAN alias enabled, only for "lan"
3
-
None. Not for "lan"
IP Address : Valid IP address
Netmask : Valid netmask
Gateway : Valid IP address. 0
-
Reset
AT&W
AT+MNLANDHCP
Get/Set LAN DHCP server on LAN interface
AT+MNLANDHCP=<LAN Name>[,<Mode>[,<Start IP>,<Limit>,<Lease Time>[,<Alt. Gateway>,
<Pre. DNS>,<Alt. DNS>,<WINS/NBNS Servers>,<WINS/NBT Node>]]]
Parameters:
LAN Name : Name of Network LAN interface
Mode : 0
-
Disable DHCP Server
1
-
Enable DHCP Server
Start IP : The starting address DHCP assignable IP Addresses
Limit : The maximum number of IP addresses. min=1 max=16777214
Lease Time : The DHCP lease time in minutes. 2~2147483647 minutes. 0 means'infinity'
Alt. Gateway : Alternate Gateway for DHCP assigned devices if the default gateway is not to be used
Pre. DNS : Preferred DNS server address to be assigned to DHCP devices
Alt. DNS : Alternate DNS server address to be assigned to DHCP devices
WINS/NBNS Server : WINS/NBNS Servers
WINS/NBT Node : WINS/NBT Node Type
0
-
none
1
-
b
-
node
2
-
p
-
node
3
-
m
-
node
4
-
h
-
node
AT&W
Содержание pMDDL5824
Страница 23: ...Microhard 23 3 1 1 pMDDL5824 OEM Mechanical Drawing 3 0 Hardware Features...
Страница 24: ...Microhard 24 3 1 2 pMDDL5824 PCB PAD Placement 3 0 Hardware Features...
Страница 29: ...Microhard 29 3 0 Hardware Features 3 2 1 pMDDL5824 Development Board Mechanical Drawings...
Страница 30: ...Microhard 30 3 0 Hardware Features 3 2 2 pMDDL5824 Enclosed Mechanical Drawings...
Страница 114: ...Microhard 114 Appendix B Sample Interface Schematic...