Dhcp server commands set, Public, private – LevelOne MSL-3S79 User Manual

Page 83

Advertising
background image

77

snmp

community-string

s [Community]

right [RO/RW]

Global

configuration

mode

Add SNMP community string.

public,
private

switch(config)#snmp

community-strings public

right rw

no snmp

community-string

s [Community]

Global

configuration

mode

Remove the specified

community.

switch(config)#no snmp

community-strings public

snmp-server host

[IP address]

community

[Community-strin

g]

Global

configuration

mode

Configure SNMP trap manager

information and community

string

switch(config)#snmp-server

host 192.168.1.50 community

public

no snmp-server

host

[Host-address]

Global

configuration

mode

Remove the SNMP server

host.

switch(config)#no snmp-server

host 192.168.1.50

show snmp

Privileged

EXEC

Show snmp configuration

switch#show snmp

46B

DHCP Server Commands Set

Commands

Command

Level

Description

Example

dhcpserver [ip

start] [ip number]

Global

configuration

mode

Enable dhcp server and add

lease entry.

switch(config)#dhcpserver

192.168.1.5 5

Netmask [255.255.255.0]:

255.255.255.0

Gateway [192.168.16.254]:

192.168.16.254

DNS [192.168.16.254]:

192.168.16.254

Lease Duration [24](hours)

24

no dhcpserver

Global

configuration

mode

Disable dhcp server.

switch(config)#no dhcpserver

show dhcpserver

Privileged

EXEC

Show configuration of dhcp

server and client status.

switch#show dhcpserver

Advertising