Jump to content
Калькуляторы

SNR S2970G (ip Access-list) правильная настройка

Здравствуйте всем!

Стоит задача - разрешить доступ определенному пулу адресов, запретить все остальное на 1-ом порту коммутатора.

Делал так:

conf

ip access-list standart test
permit 192.168.0.0 255.255.248.0
permit 192.168.100.0 255.255.255.0
permit 192.168.110.0 255.255.255.0
permit 192.168.120.0 255.255.255.0
deny any
!
interface GigaEthernet 0/1
ip access-group test

 

После этого все пропадает :)

Так же пробовал менять местами permit с deny, так же все пропадает и до коммутатора не достучаться, только через консоль.

Буду благодарен за помощь

Share this post


Link to post
Share on other sites

Switch_config_std_1#permit ?
 any           -- Any source host
 A.B.C.D       -- Address to match
 reverse-mask  -- IP REVERSE subnet mask
 src-range     -- The range of source address

Switch_config_std_1#permit 192.168.0.0 ?
 A.B.C.D       -- IP subnet mask

 

Говорит, что MASK

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.