!
router ospf 100
log-adjacency-changes
network 172.16.48.16 0.0.0.3 area 0 network 172.16.48.20 0.0.0.3 area 0 network 172.16.64.0 0.0.15.255 area 0 network 172.16.48.28 0.0.0.3 area 0 network 222.191.1.0 0.0.0.255 area 0 default-information originate !
ip nat pool Campus 222.191.1.3 222.191.1.251 netmask 255.255.255.0 ip nat pool Campus1 222.191.2.1 222.191.2.254 netmask 255.255.255.0 ip nat inside source list 1 pool Campus overload
ip nat inside source static 172.16.64.1 222.191.1.254 ip nat inside source static 172.16.64.2 222.191.1.253 ip nat inside source static 172.16.48.30 222.191.1.252 ip classless
ip route 0.0.0.0 0.0.0.0 222.191.1.2 !
access-list 1 permit 172.16.0.0 0.0.3.255 access-list 1 permit 172.16.4.0 0.0.3.255 access-list 1 permit any
access-list 1 permit 172.16.16.0 0.0.3.255 access-list 1 permit 172.16.20.0 0.0.3.255 access-list 1 permit 172.16.32.0 0.0.3.255 access-list 1 permit 172.16.36.0 0.0.3.255 !
line con 0
exec-timeout 0 0 logging synchronous line vty 0 4 login ! end
e.外网的路由器Router5
Building configuration...
Current configuration : 635 bytes !
version 12.4
no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption !
hostname Router !
no ip domain-lookup !
interface FastEthernet0/0
ip address 222.191.5.254 255.255.255.0 duplex auto speed auto !
interface FastEthernet0/1 no ip address duplex auto speed auto shutdown !
interface Serial0/0/0
ip address 222.191.1.2 255.255.255.0 !
interface Serial0/0/1 no ip address shutdown !
interface Vlan1 no ip address shutdown !
ip classless !
line con 0
exec-timeout 0 0 logging synchronous line vty 0 4 login ! end
(4)服务器的配置
a.WEB服务器的配置如下:
b.FTP服务器的配置如下:
c.DNS服务器的配置如下:
相关推荐: