《电子电脑》显示文章详细内容: [展开] [回复] [网址] [举报] [屏蔽]
世纪迷茫
世纪迷茫目前处于离线状态
等    级:高级居民
经 验 值:174
魅 力 值:48
龙    币:1517
积    分:548.7
注册日期:2003-11-03
 
  查看世纪迷茫个人资料   给世纪迷茫发悄悄话   将世纪迷茫加入好友   搜索世纪迷茫所有发表过的文章   给世纪迷茫发送电子邮件      

转个帖子,配置NAT
3725 IP NAT配置
由于我们不可能有太多的合法IP地址,所以我们必须在路由器上做地址转换。
1、在端口设置状态下,指定与内部网络相连的内部端口
int f0/0 (私有地址或内部地址)
  ip nat inside
  在端口设置状态下,指定与外部网络相连的外部端口
int f1/0 (合法的地址)
  ip nat outside

例:cisco#config t
config#int f0/0
config-if#ip nat inside

cisco#config t
config#int f1/0
config-if#ip nat outside
2、地址池配置:
a.定义地址池:config#ip nat pool c3745 218.97.249.252 218.97.249.252 netmask 255.255.255.0
b.使用NAT:config-if# ip nat inside source list 1 pool c3725 overload


我的实例:
ip subnet-zero
!
!
ip name-server 202.106.0.20
!
!
!
!
interface FastEthernet0/0
ip address 192.168.1.241 255.255.255.0
ip nat inside
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet1/0
ip address 218.97.249.252 255.255.255.0
ip nat outside
duplex auto
speed auto
!
interface FastEthernet1/1
no ip address
shutdown
duplex auto
speed auto
!
ip default-gateway 218.97.249.1
ip nat pool c3725 218.97.249.252 218.97.249.252
ip nat inside source list 1 pool c3725 overload
ip classless
ip route 0.0.0.0 0.0.0.0 218.97.249.1
ip http server
ip pim bidir-enable
!
!
access-list 1 permit any
access-list 1 permit 192.168.1.0 0.0.0.255
access-list 100 permit ip any any
!
line con 0
line aux 0
line vty 0 4

--
世纪迷茫之经典--绿色的太阳红色的树
2003-12-01 16:50:56   此文章已经被查看57次   
 相关文章: [回复]  [顶端] 



  您必须登录论坛才可以发表文章:
 
用户名:   密码:   记住密码:    (忘记密码 注册




版权所有 回龙观社区网 经营许可证编号:京B2-20201639 昌公网安备1101140035号

举报电话:010-86468600-5 举报邮箱: