Allow a Network Access to the Switch

About this task

Specify the network to which you want to allow access.

Procedure

  1. Enter Global Configuration mode:

    enable

    configure terminal

  2. Specify the network:

    access-policy <1-65535> [mode <allow|deny>] [network <A.B.C.D> <A.B.C.D>]

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.