LonelyWord

not LonelyWorld bacause of YOU

Skip to: Content | Sidebar | Footer

Cisco路由器上做NAT和DHCP

2010年五月20日 (22:13) | 网络工程 | By: LonelyWord

要在路由器上做NAT,并且配置DHCP的命令

//配置DHCP

ip dhcp excluded-address 192.168.1.1 192.168.1.100
!
ip dhcp pool office
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 8.8.8.8  8.8.4.4

//配置NAT
//外部地址
int fa0/0
ip add 1.1.1.2 255.255.255.248
ip nat outside

//内部地址
int fa0/1
ip add 192.168.1.1 255.255.255.0
ip nat inside

//路由
ip route 0.0.0.0 0.0.0.0 1.1.1.1

//NAT转换
ip nat pool Net 1.1.1.2 1.1.1.7 netmask 255.255.255.248
ip nat inside source list 1 pool Net overload
!
access-list 1 permit 192.168.1.0 0.0.0.255

//端口映射
ip nat inside source static tcp 192.168.1.8 80 1.1.1.6 80

相关文章:

  1. 配置Cisco路由器交换机的日期时间
  2. weathermap配合Cacti显示网络流量图(2)
  3. 恢复cisco router密码
  4. cisco路由器恢复出厂设置
  5. 在线游戏网站之三

发表一条评论





Page 1 of 11