Local guest configuration and management example
Network requirements
As shown in
and manage the local guest on the router as follows:
•
Configure attributes for the local guest, including the password, user group, validity period, and
sponsor information.
•
Enable the guest auto-delete feature.
•
Specify an SMTP server and email sender address for the device to send local guest email
notifications.
•
Configure email addresses for the local guest, guest sponsor, and guest manager.
•
Configure the subject and body of the email notifications to be sent to the guest, guest sponsor,
and guest manager.
•
Send email notifications of the local guest account information to the guest and guest sponsor.
Figure 24 Network diagram
Guest
Configuration procedure
1.
Manage local guests:
# Enable the guest auto-delete feature for expired local guests.
<Router> system-view
[Router] local-guest auto-delete enable
# Specify an SMTP server to send local guest email notifications.
[Router] local-guest email smtp-server smtp://192.168.0.112/smtp
# Specify the email sender address as bbb@ccc.com in the email notifications sent by the
device for local guests.
[Router] local-guest email sender bbb@ccc.com
# Specify the email address of the guest manager as guest-manager@ccc.com.
[Router] local-guest manager-email
# Configure the subject and body of the email notifications to be sent to the local guest.
[Router] local-guest email format to guest subject Guest account information
[Router] local-guest email format to guest body A guest account has been created for
your use. The username, password, and valid dates for the account are given below.
# Configure the subject and body of the email notifications to be sent to the guest sponsor.
[Router] local-guest email format to sponsor subject Guest account information
[Router] local-guest email format to sponsor body A guest account has been created.
The username, password, and valid dates for the account are given below.
# Configure the subject and body of the email notifications to be sent to the guest manager.
[Router] local-guest email format to manager subject Guest registration information
[Router] local-guest email format to manager body A guest account has been registered.
The username for the account is given below. Please approve the register information.
2.
Configure the local guest:
# Create a user group named guest1.
[Router] user-group guest1
Figure
24, create a local guest named user1 for Jack. Configure local guest attributes
Router
Internet
guest-manager@ccc.com
75