You are currently viewing Neatgear M4300 CLI Commands

Neatgear M4300 CLI Commands

https://www.downloads.netgear.com/files/GDC/M4200/M4200-M4300_SSM_EN.pdf


Console Settings

Baud rate. 115,200 bps
Data bits. 8
Parity. None
Stop bit. 1
Flow control. None

Default Login

Username: admin
Password:
The password is blank. Upon login it will ask you to set a new password.


Setting the Management IP

# Privilege mode
enable

# Disable DHCP on the service port
serviceport protocol none

# Set the IP address on the service port
serviceport ip ipaddress subnetmask gateway

# Save to startup config
save

# Show the serivce port IP
show serviceport

Set the Hostname

# Set the hostname
hostname namehere

Set the CLI Banner

# Set the CLI Banner
set clibanner line

* Banner text where ““ (double quote) is a delimiting character. The banner message can be up to
2000 characters. *

Set the NTP Server

# Set the NTP Server
sntp server ipaddress priority

Set the DNS Server

# Set the DNS Server
dns-server ipaddress

Change the Default Ports

ip http port 80
ip https port 443
ip ssh port 22


Create VLANs

# Privilege mode
enable

# Enter vlan database
vlan database

# add vlan 2
vlan 2

# Delete vlan 2
no vlan 2

# Name vlan 2
vlan name 2 namehere

# Tag all ports vlan 2
vlan tagging 2

# Set pvid all ports to vlan 2
vlan pvid 1

# Show vlans
show vlan


Change Switchport Modes and VLANs

# Disable Auto Trunking
no switchport mode auto

# Enter the interface
interface ethernet 1/1

# Change the Switchport mode to Trunk
switchport mode trunk

# Set the allowed vlans
switchport trunk allowed vlan 1-4093

# Set the native vlan for the trunk
switchport trunk native vlan 1

# Change the switchport mode to access
switchport mode access

# Set the access port vlan
switchport access vlan 3

# Show interfaces status
show interfaces status


Leave a Reply