互联地址和用户地址的配置

      现在使用光纤的用户运营商一般会给用户两种地址,互联地址和用户地址。互联地址就是用户和运营商连通的地址需要配置在用户的网关上,一般是路由器。用户地址运营商一般会给一个地址段供用户自己使用。

路由器上的配置方法:

假如运营商给我的互联地址是55.55.66.110 用户地址是55.55.68.228/30

Cisco:

interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.0
ip nat inside
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 55.55.66.110 255.255.255.252
ip nat outside
duplex auto
speed auto
!
ip nat pool useraddress 55.55.68.228 55.55.68.231 netmask 255.255.255.252
ip nat inside source static tcp 192.168.1.254 80 60.29.68.228 80

华为:

#
nat address-group 0 55.55.68.228 55.55.68.231
#
interface Ethernet1/0
ip address 192.168.1.1 255.255.255.0
#
interface Ethernet2/0
description MAIN
ip address 55.55.66.110 255.255.255.252
nat outbound 3001
nat server protocol tcp global 55.55.66.229 80 inside 192.168.1.254 80

转载于:https://www.cnblogs.com/dqw3721/archive/2009/01/12/1374487.html

  • 1
    点赞
  • 17
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值