Allowing a network access to the switch
About this task
Specify the network to which you want to allow access.
Procedure
Example
Specify the network to which you want to allow access:
Switch:1>enable Switch:1#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch:1(config)#access-policy 5 mode allow network 192.192.192.0 24
Variable Definitions
The following table defines parameters for the access-policy command.
Variable |
Value |
---|---|
mode <allow|deny> |
Specifies whether a designated network address is allowed or denied access through the specified access service. The default is allow. |
network <A.B.C.D> <A.B.C.D> |
Specifies the IPv4 address and subnet mask, or the IPv6 address and prefix-length, permitted or denied access through the specified access service. |