Lantronix SGX 5150 IoT Device Gateway SGX 5150 Command Reference - Page 160

Restores the default Maximum Transmission Unit MTU size.

Page 160 highlights

6: Commands and Levels 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 Change to config gateway port forwarding level. primary dns Sets the IP address of the primary DNS server. router ip address 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 Sets the IPv6 address of router. IPv6 addresses are written in eight groups of four hexadecimal 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 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 Change to config gateway static route level. virtual ip Change to virtual ip level. wan interface Sets the preferred WAN interface. = interface name. NOTE: When WAN interface is wlan0, the LAN interfaces are eth0 and usb0. When WAN interface is eth0, the LAN interfaces 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 Change to gre level. ip address Sets the IP address and network mask. local network Sets the local network name. = local network name. mtu Sets the Maximum Transmission Unit (MTU) size. name Sets the name. = name. no ip address Clears the IP address. no name Clears the name. no remote host Clear the remote host. no remote network Clears the remote network IP address. remote host Sets the remote host. = remote host. remote network Sets the remote network IP address and network mask. show Displays the current configuration. show history Displays the last 20 commands entered during the current CLI session. show status Show status state disable Disables GRE tunnel. state enable Enables GRE tunnel. write Stores the current configuration in permanent memory. host 1 (tunnel-connect-host::1) level commands ( is the number of the line) address Sets the remote host to establish tunneling connections with. = IP address or host name of the remote host. aes decrypt key Sets the connect tunnel AES decrypt key with up to 16 bytes. Each byte is represented by two adjacent hex digits. Bytes may run together or be separated by optional punctuation: 123ABC "12 3A BC" 12,3A,BC 12.3a.bc 12:3a:bc Note that quotes must enclose the value if it contains spaces. SGX™ 5150 IoT Device Gateway Command Reference 160

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204
  • 205
  • 206
  • 207
  • 208
  • 209
  • 210
  • 211
  • 212
  • 213
  • 214
  • 215
  • 216
  • 217
  • 218
  • 219
  • 220
  • 221
  • 222
  • 223
  • 224
  • 225
  • 226
  • 227
  • 228
  • 229
  • 230
  • 231
  • 232
  • 233
  • 234
  • 235
  • 236
  • 237
  • 238
  • 239
  • 240
  • 241
  • 242
  • 243
  • 244
  • 245
  • 246
  • 247
  • 248
  • 249
  • 250
  • 251
  • 252
  • 253
  • 254
  • 255
  • 256
  • 257

6:
Commands and Levels
SGX™ 5150 IoT Device Gateway Command Reference
160
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 address>
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
hexadecimal 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 address>
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 interfaces 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.
no ip address
Clears the IP address.
no name
Clears the name.
no remote host
Clear the remote host.
no remote network
Clears the remote network IP address.
remote host
<text>
Sets the remote host. <text> = remote host.
remote network
<text>
Sets the remote network IP address and network mask.
show
Displays the current configuration.
show history
Displays the last 20 commands entered during the current CLI session.
show status
Show status
state disable
Disables GRE tunnel.
state enable
Enables GRE tunnel.
write
Stores the current configuration in permanent memory.
host 1 (tunnel-connect-host:
<line>
:1) level commands (
<line>
is the number of the line)
address
<text>
Sets the remote host to establish tunneling connections with. <text> = IP address or
host name of the remote host.
aes decrypt key
<hexadecimal>
Sets the connect tunnel AES decrypt key with up to 16 bytes. Each byte is
represented by two adjacent hex digits. Bytes may run together or be separated by
optional punctuation: 123ABC "12 3A BC" 12,3A,BC 12.3a.bc 12:3a:bc Note that
quotes must enclose the value if it contains spaces.