5: Commands and Levels
SGX™ 5150 IoT Device Gateway Command Reference
172
firewall enable
Enables firewall on WAN interface.
ip address filter <num-
ber>
Change to config ip filter level.
ip address filter disable
Disables IP Address filtering.
ip address filter enable
Enables IP Address filtering.
mac address filter
<num-
ber>
Change to config mac filter level.
mac address filter disable Disables MAC Address filtering.
mac address filter enable Enables MAC Address filtering.
no primary dns
Clears the name of the primary DNS server.
no secondary dns
Clears the name of the secondary DNS server.
operating mode disabled Disables routing on WAN interface.
operating mode gateway Enables routing with NAT on WAN interface.
operating mode router
Enables routing without NAT on WAN interface.
port forwarding rule
<number>
Change to config gateway port forwarding level.
primary dns
<IP ad-
dress>
Sets the IP address of the primary DNS server.
router ip address
<ip
address/cidr>
Sets the IP address of router. Formats accepted: 192.168.1.1 (default mask)
192.168.1.1/24 (CIDR) "192.168.1.1 255.255.255.0" (explicit mask)
router ipv6 address
<ipv6
address/prefix>
Sets the IPv6 address of router. IPv6 addresses are written in eight groups of four hexa-
decimal digits separated by colons, such as 2001:0db8:85a3:0000:0000:8a2e:0370:7334
Network address ranges are written in CIDR notation. A network is denoted by the first
address in the block (ending in all zeroes), a slash (/), and a decimal value equal to the
size in bits of the prefix
secondary dns
<IP ad-
dress>
Sets the IP address of the secondary DNS server.
show
Displays the current configuration.
show history
Displays the last 20 commands entered during the current CLI session.
show routing table
Show current routing table.
show status
Show gateway configuration and status.
static route
<number>
Change to config gateway static route level.
virtual ip
<number>
Change to virtual ip level.
wan interface
<text>
Sets the preferred WAN interface. <text> = interface name. NOTE: When WAN interface is
wlan0, the LAN interfaces are eth0 and usb0. When WAN interface is eth0, the LAN inter-
faces are usb0 and Access Point. When WAN interface is usb0, the LAN interfaces are
eth0 and Access Point.
write
Stores the current configuration in permanent memory.
gre 1 (config-gre:1) level commands
clrscrn
Clears the screen.
default local network
Restores the default local network name.
default mtu
Restores the default Maximum Transmission Unit (MTU) size.
exit
Exits to the config level.
gre
<instance>
Change to gre level.
ip address
<text>
Sets the IP address and network mask.
local network
<text>
Sets the local network name. <text> = local network name.
mtu
<bytes>
Sets the Maximum Transmission Unit (MTU) size.
name
<text>
Sets the name. <text> = name.