Page 86 / 102 Scroll up to view Page 81 - 85
NETGEAR ProSafe 802.11g Wireless Access Point WG302v2 Reference Manual
C-4
Command Line Reference
v1.0, May 2006
Entering CLI Commands
This section describes how to use CLI commands to configure the access point and how to view
system settings and information.
Table C-3
shows the commands available at the blank CLI prompt. You can type TAB twice to
display the list of commands. After you enter the command, press the TAB key twice to display a
list of available keywords and variables.
lo
Local loopback for data meant for the access point itself.
eth0
The Ethernet interface connected to the Internal network.
vlan1
The VLAN interface associated with the default security profile.
wlan0
The default security profile for the Internal network.
wlan0vap
x
The wireless interface for the
x
security profile.
wlan0wds
x
A wireless distribution system (WDS) interface where
x
indicates the number of the WDS
link. The WDS interface allows you to configure wireless bridging and repeating.
Table C-3
Commands at the Blank Prompt
Command
Description
get
Gets the property values of existing instances of a class.
set
Sets the property values of existing instances of a class.
add
Adds a new instance or group of instances of a class.
remove
Removes an existing instance of a class.
config
Uploads or downloads the running configuration.
firmware-upgrade
Upgrades the firmware.
save-running
Saves the running configuration as the startup configuration.
reboot
Restarts the access point (a “soft” reboot).
factory-reset
Resets the AP to factory defaults and reboots.
Table C-2
Interface Naming Convention (continued)
Interface
Description
Page 87 / 102
NETGEAR ProSafe 802.11g Wireless Access Point WG302v2 Reference Manual
Command Line Reference
C-5
v1.0, May 2006
The
get
,
set
,
add
, and
remove
commands are followed by one or more keywords and might
be followed by one or more optional or required name-value pairs.
You can use CLI commands to view or configure most of the features that you can view and
configure by using the Web UI.
Using the CLI to Configure the ProSafe 802.11g
This section describes the commands you use to view and configure the WG302v2. The CLI
commands correspond to tasks you can accomplish by using the Web-based user interface (UI). In
some cases, the CLI
get
command provides additional details not available through the Web UI.
Warning:
Settings updated from the CLI (with
get
,
set
,
add
, and
remove
commands) will not be saved to the startup configuration unless you explicitly save them
by issuing the
save-running
command.
Note:
CLI commands are not available to merge, import, and export the known AP list
for Rogue AP detection feature. Additionally, you cannot set the channel or
frequency by using the CLI.
Page 88 / 102
NETGEAR ProSafe 802.11g Wireless Access Point WG302v2 Reference Manual
C-6
Command Line Reference
v1.0, May 2006
Viewing General Information
Table C-4
describes the commands you use to view some of the information that you see on the
General page of the Web UI.
The commands in the following table do not correspond to a specific Web page, but they can be
Table C-4
General Information
Task
Command
Access Point Information
View Access Point Name
get host id
View the MAC Address for the Access Point
get interface brvlan1 mac
View the Country/Region
get system country
View the Firmware Version for the Access
Point
get system version
View the Access Point Mode
get interface brvlan1 type
View the Untagged VLAN ID
get untagged-vlan
Current IP Settings
View the IP Address
get interface brvlan1
View the Subnet Mask
get interface brvlan1
View the Default Gateway IP address
get ip-route gateway
View the DHCP Client status
get management dhcp-client status
Current Wireless Settings
View the Operating Mode
get radio all mode
View the Channel / Frequency
get radio all channel
View whether Rogue AP Detection is
enabled
get radio all ap-detection
View information about the Security Profiles
get vap all detail
Page 89 / 102
NETGEAR ProSafe 802.11g Wireless Access Point WG302v2 Reference Manual
Command Line Reference
C-7
v1.0, May 2006
helpful for viewing basic system information.
Configuring Basic Settings
The commands in
Table C-6
correspond to the Basic Settings page on the Web UI.
Table C-5
System Information
Task
Command
View hardware information
get system
View information about all interfaces
get interface
View information about the 802.11 radio
get radio
View information about the Security Profiles
get vap
View DNS settings
get host
Table C-6
Basic Setting s
Task
Command
Set the Access Point Name
set host id <name>
Example
:
set host id LAB_AP
Set the Country / Region
set system country <2_letter_country_code>
Example
:
set system country us
Enable the DHCP Client
set management dhcp-client status up
Disable the DHCP Client
set management dhcp-client status down
Set a Static IP Address
set interface brvlan1 static-ip <ip_address>
Example
:
set interface brvlan1 static-ip 10.10.12.221
Set a Subnet Mask
set interface brvlan1 static-mask <netmask>
Example:
set interface brvlan1 static-mask
255.255.255.0
Set the Default Gateway
set static-ip-route gateway <ip_address>
Example
:
set static-ip-route gateway 10.10.12.1
Page 90 / 102
NETGEAR ProSafe 802.11g Wireless Access Point WG302v2 Reference Manual
C-8
Command Line Reference
v1.0, May 2006
Configuring Wireless Settings
The commands in
Table C-7
correspond to the Wireless Settings page on the Web UI.
Set the Primary DNS Server
set host static-dns-1 <ip_address>
Example:
set host static-dns-1 10.10.3.10
Set the Secondary DNS Server
set host static-dns-2 <ip_address>
Enable Spanning Tree Protocol
set interface brvlan1 stp on
Disable Spanning Tree Protocol
set interface brvlan1 stp off
Set the Management VLAN ID
set management vlan-id <1-4096>
Enable Untagged VLANs and set
the VLAN ID
set untagged-vlan untagged-vlan-id <1-4096>
Set the Time Zone
set ntp timezone <timezone>
Enable the NTP Server
set ntp status up
Disable the NTP Server
set ntp status down
Use a custom NTP server
set ntp use-default-servers off
Use the default NTP server
set ntp use-default-servers on
Set the Hostname or IP Address
for the custom NTP server
Note: You can set a primary and
secondary NTP server.
set ntp-servers [primary | secondary] server
[<hostname> | <ip_address
>]
Example:
set ntp-serves primary ntp.foo.com
or
set ntp-servers primary server 192.168.1.10
View the Current Time
date
Table C-7
Wireless Setting s
Task
Command
Turn on the Radio
set interface wlan0 status up
Turn off the Radio
set interface wlan0 status down
Table C-6
Basic Setting (continued)s
Task
Command

Rate

4 / 5 based on 1 vote.

Bookmark Our Site

Press Ctrl + D to add this site to your favorites!

Share
Top