求cisco模拟器大神 这道题怎么做 求详细步骤
首先:先设置PC和server的ip以及网关地址,如图:
1、PC
Server:
路由器配置如下:
R1:
int f0/0
ip address 192.168.1.254 255.255.255.0
no shutdown
int f0/1
ip address 192.168.3.1 255.255.255.0
no shutdown
!
ip route 192.168.2.0 255.255.255.0 192.168.3.2
ip route 192.168.3.0 255.255.255.0 192.168.3.2(该网络环境正该条可以不写,仍然可以完成实验,但是建议写上)
!
R2:
int f0/0
ip address 192.168.2.254 255.255.255.0
!
int f0/1
ip address 192.168.3.2 255.255.255.0
!
ip route 192.168.1.0 255.255.255.0 192.168.3.1
ip route 192.168.3.0 255.255.255.0 192.168.3.1(该网络环境正该条可以不写,仍然可以完成实验,但是建议写上)
!
access-list 100 permit tcp host 192.168.1.1 host 192.168.2.1 eq ftp
access-list 100 permit tcp host 192.168.1.1 host 192.168.2.1 eq www
access-list 100 deny tcp any host 192.168.2.1 eq www
access-list 100 deny tcp any host 192.168.2.1 eq ftp
access-list 100 permit ip any any
!
int f0/1
ip address 192.168.3.2 255.255.255.0
ip access-group 100 in
以上!完成。通过在server上使用命令ping 192.168.1.1 来测试实验是否正确。
2024-08-01 广告