How can I add new ip address and place on top of the access-list? I want to block specific ip address. But "permit ip any any" is needed to be place at the end of access-list.
example:
----------------------------------
interface GigabitEthernet1/0
ip access-group 115 in
ip access-group 115 out
access-list 115 deny ip host 222.222.222.222 any
access-list 115 permit ip any any
----------------------------------
in case if I want to block 111.111.111.111, i typed "access-list 115 deny ip host 111.111.111.111 any" and it puts at the bottom of access-list where permit is in 2nd list. I don't want to lose connection if i have to remove "access-list 115 permit ip any any" and enter it again to place at the end.
it lists as this:
access-list 115 deny ip host 222.222.222.222 any
access-list 115 permit ip any any
access-list 115 deny ip host 111.111.111.111 any
It is not blocking 111.111.111.111
example:
----------------------------------
interface GigabitEthernet1/0
ip access-group 115 in
ip access-group 115 out
access-list 115 deny ip host 222.222.222.222 any
access-list 115 permit ip any any
----------------------------------
in case if I want to block 111.111.111.111, i typed "access-list 115 deny ip host 111.111.111.111 any" and it puts at the bottom of access-list where permit is in 2nd list. I don't want to lose connection if i have to remove "access-list 115 permit ip any any" and enter it again to place at the end.
it lists as this:
access-list 115 deny ip host 222.222.222.222 any
access-list 115 permit ip any any
access-list 115 deny ip host 111.111.111.111 any
It is not blocking 111.111.111.111