现在的位置: 首页 > 综合 > 正文

华为2621路由器配置 静态ip 光纤接入

2013年09月09日 ⁄ 综合 ⁄ 共 893字 ⁄ 字号 评论关闭
[Router]dis cu



  Now create configuration...



  Current configuration



  !



    version 1.74



    local-user huawei service-type administrator password cipher $--_+[(77XK[*("O



4'-'.1!!



undo pos-server addr-switch



//连接池 如果是一个静态ip ip写两遍



    nat address-group xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx pool1



    firewall enable



    aaa-enable



    aaa accounting-scheme optional



  !



  acl 2000 match-order auto



    rule normal permit source 192.168.0.0 0.0.0.255



  !



  interface Aux0



    async mode flow



    link-protocol ppp



  !



  interface Ethernet0



//外网ip和子网掩码



    ip address xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx



nat outbound 2000 address-group pool1



//外网ip 端口映射 3389远程桌面



    nat server global xxx.xxx.xxx.xxx 3389 inside 192.168.0.xxx 3389 tcp



    nat server global xxx.xxx.xxx.xxx www inside 192.168.0.xxx www tcp



    nat server global xxx.xxx.xxx.xxx 8080 inside 192.168.0.xxx 8080 tcp



  !



  interface Ethernet1



    ip address 192.168.0.1 255.255.255.0



  !



  interface Serial0



    link-protocol ppp



  !



  interface Serial1



    link-protocol ppp



  !



  Quit



//表示网关



  ip route-static 0.0.0.0 0.0.0.0 xxx.xxx.xxx.xxx preference 60



  !



  return

抱歉!评论已关闭.