二、按照图1装上防火墙。
将从路由器到交换机上的线,改为先从路由器到防火墙,然后用防火墙的E0口接交换机。

图2
进入路由器配置模式修改,将路由器的配置改为:
Using 942 out of 7506 bytes ! version 12.1 service timestamps debug uptime service timestamps log uptime service password-encryption ! hostname router !enable secret 5 $1$FreK$4oQGtvDEF1jv8dh3NNXnN0 enable password 123455676! ! ip subnet-zero ! crypto ipsec transform-set test esp-des esp-md5-hmac ! crypto map vpnmap 1 ipsec-isakmp ! Incomplete set transform-set test match address 100 interface Ethernet0 ip address 211.97.213.41 255.255.255.248 interface Ethernet1 no ip address ip nat inside no ip route-cache no ip mroute-cache shutdown ! ! interface Serial0 description internet bandwidth 2048 ip address 211.97.209.145 255.255.255.252 ip nat outside encapsulation ppp no ip route-cache no ip mroute-cache ! ip classless ip route 0.0.0.0 0.0.0.0 Serial0 ip http server ! route-map nonat permit 10 match ip address 110 ! ! line con 0 transport input none line vty 0 4 password 123456 login ! end
|

发表评论