2. Use ACL to restrict administrative requests other than VLAN 2 (192.168.1.0/24)
Hostname#config
Hostname(config)# interface vlan 2
Hostname(config-if-vlan2)#ip address 192.168.1.0255.255.255.0
Hostname#wr
Hostname#end
Hostname> enable
Hostname# configure terminal
Hostname(config)# ip access-list standard acl1
Hostname (config-std-nacl)# permit 192.168.1.00.0.0.255
Hostname(config-std-nacl)# exit
Hostname(config)# line v 0 6
Hostname(config-line)# access-class acl1 in
Hostname#wr
Hostname#end
Welcome to Ruijie Community (https://community.ruijienetworks.com/) | Powered by Discuz! X3.2 |