To configure source MAC-based login control over Telnet users:
Step
1.
Enter system view.
2.
Create an Ethernet frame header
ACL and enter its view.
3.
Configure rules for the ACL.
4.
Exit the advanced ACL view.
5.
Enter user interface view.
6.
Use the ACL to control user login by
source MAC address.
NOTE:
The above configuration does not take effect if the Telnet client and server are not in the same subnet.
Source MAC-based login control configuration example
Network requirements
As shown in
Figure
Host A and Host B.
Figure 9 Network diagram for configuring source MAC-based login control
Command
system-view
acl number acl-number
[ match-order { config | auto } ]
rule [ rule-id ] { permit | deny }
rule-string
quit
user-interface [ type ] first-number
[ last-number ]
acl acl-number inbound
9, configure an ACL on the Device to permit only incoming Telnet packets sourced from
79
Remarks
—
Required.
By default, no advanced
ACL exists.
Required.
—
—
Required.
inbound: Filters incoming
Telnet packets.