您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

NAT DHCP和内部端口映射www和telnet服务

2024/6/1 12:16:25发布27次查看
拓扑图如下: 650) this.width=650; alt= src=http://cdn.verydemo.com/upload/2013_05_27/13696041010960.jpg border=0 /> 路由器r0作为设备内网路由器出口 r1为外网路由器 路由器r0的配置如下: hostname router ! ! ! ! ip dhcp excluded-address
拓扑图如下:
650) this.width=650; alt= src=http://cdn.verydemo.com/upload/2013_05_27/13696041010960.jpg border=0>
路由器r0作为设备内网路由器出口 r1为外网路由器
路由器r0的配置如下:
hostname router
!
!
!
!
ip dhcp excluded-address 192.168.100.1 192.168.100.10
!
ip dhcp pool zxf
 network 192.168.100.0 255.255.255.0
 default-router 192.168.100.1
!
!
!
!
!
!
!
!
!
!
!
!
!
interface fastethernet0/0
 ip address 192.168.100.1 255.255.255.0
 ip nat inside
 duplex auto
 speed auto
!
interface fastethernet0/1
 ip address 200.200.200.2 255.255.255.252
 ip nat outside
 duplex auto
 speed auto
!
interface vlan1
 no ip address
 shutdown
!
router ospf 100
 log-adjacency-changes
 network 0.0.0.0 255.255.255.255 area 0
!
ip nat pool hello 200.200.200.2 200.200.200.2 netmask 255.255.255.252
ip nat inside source list 1 pool hello overload
ip nat inside source static tcp 192.168.100.3 23 200.200.200.2 23
ip nat inside source static tcp 192.168.100.11 80 200.200.200.2 8080
ip nat inside source static tcp 192.168.100.4 80 200.200.200.2 9999
ip classless
ip route 0.0.0.0 0.0.0.0 200.200.200.1
!
!
access-list 1 permit 192.168.100.0 0.0.0.255
!
!
!
!
!
line con 0
line vty 0 4
 login
!
!
路由器r1配置如下:
interface fastethernet0/0
 ip address 200.200.200.1 255.255.255.252
 duplex auto
 speed auto
!
interface fastethernet0/1
 ip address 100.100.100.100 255.255.255.0
 duplex auto
 speed auto
!
interface vlan1
 no ip address
 shutdown
!
router ospf 100
 log-adjacency-changes
 network 0.0.0.0 255.255.255.255 area 0
!
ip classless
!!!!!!!!!!!!!!
详细配置见附件:
shanliren
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product