如何配置cisco2600让他通过固定ip61.13.15.11上网,内网ip 段是192.168.1.0

发布时间:2024-05-19 14:43 发布:上海旅游网

问题描述:

我有一台cisco
2600路由器,专线接入,固定ip
是61.154.75.111,想通过他让局域网用户上网,
内网接口配置为192.168.1.1,请问应该怎样配置!
要详细!!!1
局域网内有一台web和ftp服务器,地址为192.168.1.100,有让外网能访问服务器,地址分配采用dhcp,dns为61.134.1.4。

问题解答:

ip dhcp pool test
network 192.168.1.0 255.255.255.0
dns-server 61.134.1.4
default-router 192.168.1.1

interface Ethernet0/0
ip address 61.154.75.111 255.255.255.224

ip nat outside
!
interface Ethernet0/1
ip address 192.168.1.1 255.255.255.0

ip nat inside
!
ip nat inside source list 1 interface Ethernet0/0 overload
ip nat inside source static tcp 192.168.1.100 21 61.154.75.111 21
ip nat inside source static tcp 192.168.1.100 80 61.154.75.111 80

ip route 0.0.0.0 0.0.0.0 61.154.75.X
!
access-list 1 permit 192.168.1.0 0.0.0.255

重要部分数据配置如上所示,E0/0接外网,E0/1接内网,IP的掩码和路由下一跳均为假设.

热点新闻