第十三章 标准IP访问控制列表配置

2022-07-03  本文已影响0人  孙广宁

实验目标

实验背景

技术原理

实验步骤

实验设备

pc 3台 router-pt 2台 dce串口线,交叉线

架构图
ip 172.16.1.2
submask 255.255.255.0
gateway 172.16.1.1
ip 172.16.2.2
submask 255.255.255.0
gateway 172.16.2.1
ip 172.16.3.2
submask 255.255.255.0
gateway 172.16.3.1
en
conf t
host r0
int fa 0/0
ip address 172.16.1.1 255.255.255.0
no shutdown
int fa 1/0
ip address 172.16.2.1 255.255.255.0
no shutdown
int s 2/0
ip address 172.16.3.1 255.255.255.0
no shutdown
clock rate 64000
en
conf t
host r1
int s 2/0
ip address 172.16.3.2 255.255.255.0
no shutdown
int fa 0/0
ip address 172.16.4.1 255.255.255.0
no shutdown
exit
ip route 172.16.4.0 255.255.255.0 172.16.3.2
exit
ip route 0.0.0.0 0.0.0.0 172.16.3.1
end
show ip route
ping 172.16.4.2 success
pign 172.16.4.2 success
ip access-list standard 5ijsj
permit 172.16.1.0 0.0.0.255
deny 172.16.2.0 0.0.0.255
conf t
int s 2/0
ip access-group 5ijsj out
end
ping 172.16.4.2 success
ping 172.16.4.2 replay from 172.16.2.1
上一篇下一篇

猜你喜欢

热点阅读