设为首页收藏本站language 语言切换
查看: 2007|回复: 5
收起左侧

网络构建问题

[复制链接]
发表于 2013-10-16 15:48:28 | 显示全部楼层 |阅读模式
小弟在校学生,学习网络专业,如今淘得cisco1812路由器一台。宿舍有台式机做服务器,上网方式为联通ADSL 4M。现在拨号和动态域名的问题已经解决掉了,内网有七台电脑通过PAT方式的NAT可以访问外网。
cisco1812这台路由器有2个路由以太网口和八个交换以太网口。(八个以太网口不能配地址)
想把内网服务器的80端口映射到外网的80端口,求教怎么做!
现在配置如下:
R1#sho run
R1#sho running-config
Building configuration...

Current configuration : 4431 bytes
!
! Last configuration change at 14:56:07 UTC Mon Jan 2 2006 by lijianwei652
! NVRAM config last updated at 14:56:24 UTC Mon Jan 2 2006 by lijianwei652
! NVRAM config last updated at 14:56:24 UTC Mon Jan 2 2006 by lijianwei652
version 15.1
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
boot-start-marker
boot system flash c181x-adventerprisek9-mz.151-4.M6.bin
boot-end-marker
!
!
no logging buffered
!
no aaa new-model
!
dot11 syslog
ip source-route
!
!
ip dhcp excluded-address 192.168.1.254
!
ip dhcp pool dhcp192
network 192.168.1.0 255.255.255.0
default-router 192.168.1.254
dns-server 202.99.216.113 202.97.131.178
!
!
!
ip cef
ip name-server 202.99.216.113
ip name-server 202.97.131.178
ip ddns update method DDNS
HTTP
  add
http://jvnet:AI521500@<s>/nic/update?system=dyndns&hostname=<h>&myip=<a>
!
no ipv6 cef
!
multilink bundle-name authenticated
!
vpdn enable
!
vpdn-group 1
! Default L2TP VPDN group
accept-dialin
  protocol l2tp
!
!
!
license udi pid CISCO1812-J/K9 sn FHK102854RD
username lijianwei652 privilege 15 secret 5 $1$BXXY$U0YNSfGtnarWu0Hj.nDUx1
!
!

interface BRI0
no ip address
encapsulation hdlc
shutdown
!
interface FastEthernet0
no ip address
duplex auto
speed auto
pppoe enable group global
pppoe-client dial-pool-number 1
!
interface FastEthernet1
description $FW_INSIDE$
ip address 192.168.2.1 255.255.255.0
ip nat inside
ip virtual-reassembly in
duplex auto
speed auto
!
interface FastEthernet2
no ip address
!
interface FastEthernet3
no ip address
!
interface FastEthernet4
no ip address
!
interface FastEthernet5
switchport access vlan 20
no ip address
!
interface FastEthernet6
no ip address
!
interface FastEthernet7
no ip address
!
interface FastEthernet8
no ip address
!
interface FastEthernet9
no ip address
!         
interface Vlan1
description $FW_INSIDE$
ip address 192.168.1.254 255.255.255.0
ip nat inside
ip virtual-reassembly in
!
interface Vlan20
description $FW_DMZ$
ip address 172.16.1.254 255.255.255.0
ip nat inside
ip virtual-reassembly in
!
interface Dialer0
description $FW_OUTSIDE$
mtu 1492
ip ddns update hostname jvnet.f3322.org
ip ddns update DDNS host members.3322.org
ip address negotiated
ip nat outside
ip virtual-reassembly in
encapsulation ppp
loopback
dialer pool 1
dialer-group 1
ppp authentication pap callin
ppp pap sent-username 888888888 password 0 123456
!
ip forward-protocol nd
no ip http server
no ip http secure-server
!
!
ip nat inside source list 1 interface Dialer0 overload
ip route 0.0.0.0 0.0.0.0 Dialer0
!         
access-list 1 permit 192.168.1.0 0.0.0.255
mac-address-table aging-time 288
!
!
!
!
!
!
control-plane
!
!
!
line con 0
line aux 0
line vty 0 4
login local
transport input all
!
end
发表于 2013-10-16 16:39:20 | 显示全部楼层
做静态NAT映射 ip nat inside source static tcp * 80 * 80
沙发 2013-10-16 16:39:20 回复 收起回复
回复 支持 反对

使用道具 举报

 楼主| 发表于 2013-10-16 17:10:52 | 显示全部楼层
897162670 发表于 2013-10-16 16:39
做静态NAT映射 ip nat inside source static tcp * 80 * 80

我这里是ADSL拨号上网,地址会变的,我用的ip nat inside source static tcp 192.168.1.1  80 interface dialer0 80,但是没有成功。。。。
板凳 2013-10-16 17:10:52 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2013-11-9 14:19:51 | 显示全部楼层
地板 2013-11-9 14:19:51 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2013-11-28 15:05:08 | 显示全部楼层
5# 2013-11-28 15:05:08 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2013-12-8 18:52:01 | 显示全部楼层
6# 2013-12-8 18:52:01 回复 收起回复
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-5-25 01:02 , Processed in 0.094598 second(s), 26 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表