>  기사  >  데이터 베이스  >  NAT DHCP和内部端口映射www和telnet服务

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

WBOY
WBOY원래의
2016-06-07 15:05:532674검색

拓扑图如下: 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

拓扑图如下:

路由器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

성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.