互联地址: 202.96.128.1-202.96.128.4/30
其中 202.96.128.2 为客户端地址
202.96.128.3 为局端设备地址
------------------------
分配用户IP地址: 202.96.129.1----202.96.129.8/29 共8个IP
==============================
我的环境:
CISCO 1700 router 一台
配备 Serial0 / Ethernet0
Serial0 为外部接口 / Ethernet0 为内部接口
我想做到:
1. Cisco 1700 WAN ip: 202.96.128.5
LAN ip: 192.168.0.100
2. NAT 功能.
=============================
请各位帮忙配置,先谢.
就是网关了吧
interface Ethernet0
ip address 192.168.0.100 255.255.255.0
ip nat inside
half-duplex
!
interface FastEthernet0
ip address 202.96.128.5 255.255.255.248
ip nat outside
speed auto
!
ip nat pool ippool 202.96.128.5 202.96.128.5 netmask 255.255.255.248
ip nat inside source list 10 interface FastEthernet0 overload
ip classless
ip route 0.0.0.0 0.0.0.0 FastEthernet0
no ip http server
!
!
access-list 10 permit 192.168.0.0 0.0.0.255
!
interface Ethernet0
ip address 192.168.0.100 255.255.255.0
ip nat inside
half-duplex
!
interface FastEthernet0
ip address 202.96.128.5 255.255.255.248
ip nat outside
speed auto
!
ip nat pool ippool 202.96.128.5 202.96.128.5 netmask 255.255.255.248
ip nat inside source list 10 interface FastEthernet0 overload
ip classless
ip route 0.0.0.0 0.0.0.0 FastEthernet0
no ip http server
!
!
access-list 10 permit 192.168.0.0 0.0.0.255
==================
那网关呢?
(所说的:
互联地址: 202.96.128.1-202.96.128.4/30
其中 202.96.128.2 为客户端地址
202.96.128.3 为局端设备地址)
你可以确定它可以路由出去?
[ 关闭窗口 ]
