国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 網絡通信 > 正文

在CISCO路由器上配置NAT功能(下)

2019-11-05 00:34:14
字體:
來源:轉載
供稿:網友

  實例2:  
  
    本實例中硬件配置同上,運用了動態NAT地址轉換功能。將2501的以太口作為內部端口,同步端口0作為外部端口。其中10.1.1.0網段采用動態地址轉換。對應內部合法地址為192.1.1.2~192.1.1.10    
  
    Current  configuration:  
  
    version  11.3  
  
    no  service  passWord-encryption  
  
    hostname  2501  
  
    ip  nat  pool  aaa  192.1.1.2  192.1.1.10  netmask  255.255.255.0  
  
    ip  nat  inside  source  list  1  pool  aaa  
  
    interface  Ethernet0  
  
    ip  address  10.1.1.1  255.255.255.0  
  
    ip  nat  inside  
  
    interface  Serial0  
  
    ip  address  192.1.1.1  255.255.255.0  
  
    ip  nat  outside  
  
    no  ip  mroute-cache  
  
    bandwidth  2000  
  
    no  fair-queue  
  
    clockrate  2000000  
  
    interface  Serial1  
  
    no  ip  address  
  
    shutdown  
  
    no  ip  classless  
  
    ip  route  0.0.0.0  0.0.0.0  Serial0  
  
    access-list  1  permit  10.1.1.0  0.0.0.255  
  
    line  con  0  
  
    line  aux  0  
  
    line  vty  0  4  
  
    password  cisco  
  
    end  
  3、復用動態地址轉換適用的環境:  
  
    復用動態地址轉換首先是一種動態地址轉換,但是它可以答應多個內部本地地址共用一個內部合法地址。只申請到少量IP地址但卻經常同時有多于合法地址個數的用戶上外部網絡的情況,這種轉換極為有用。    
  
    注重:當多個用戶同時使用一個IP地址,外部網絡通過路由器內部利用上層的如TCP或UDP端口號等唯一標識某臺計算機。  
  
    復用動態地址轉換配置步驟:  
  
    在全局設置模式下,定義內部合地址池  
  
    ip  nat  pool  地址池名字  起始IP地址  終止IP地址  子網掩碼  
  
    其中地址池名字可以任意設定。  
  
    在全局設置模式下,定義一個標準的access-list規則以答應哪些內部本地地址可以進行動態地址轉換。  
  
    access-list  標號  permit  源地址  通配符  
  
    其中標號為1-99之間的整數。  
  
    在全局設置模式下,設置在內部的本地地址與內部合法IP地址間建立復用動態地址轉換。  
  
      ip  nat  inside  source  list  訪問列表標號  pool  內部合法地址池名字  overload  
  
    在端口設置狀態下,指定與內部網絡相連的內部端口  
  
    ip  nat  inside  
  
    在端口設置狀態下,指定與外部網絡相連的外部端口  
  
    ip  nat  outside  
  實例:應用了復用動態NAT地址轉換功能。將2501的以太口作為內部端口,同步端口0作為外部端口。10.1.1.0網段采用復用動態地址轉換。假設企業只申請了一個合法的IP地址192.1.1.1。    
  
    2501的配置  
  
    Current  configuration:  
  
    version  11.3  
  
    no  service  password-encryption  
  
    hostname  2501  
  
    ip  nat  pool  bbb  192.1.1.1  192.1.1.1  netmask  255.255.255.0  
  
    ip  nat  inside  source  list  1  pool  bbb  overload  
  
    interface  Ethernet0  
  
    ip  address  10.1.1.1  255.255.255.0  
  
    ip  nat  inside  
  
    interface  Serial0  
  
    ip  address  192.1.1.1  255.255.255.0  
  
    ip  nat  outside  
  
    no  ip  mroute-cache  
  
    bandwidth  2000  
  
    no  fair-queue  
  
    clockrate  2000000  
  
    interface  Serial1  
  
    no  ip  address  
  
    shutdown  
  
    no  ip  classless  
  
    ip  route  0.0.0.0  0.0.0.0  Serial0  
  
    access-list  1  permit  10.1.1.0  0.0.0.255  
  
    line  con  0  
  
    line  aux  0  
  
    line  vty  0  4  
  
    password  cisco  
  
    end


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 正镶白旗| 台北市| 清远市| 德令哈市| 和田市| 胶州市| 鄯善县| 遂溪县| 石棉县| 通城县| 仙桃市| 新乐市| 永春县| 始兴县| 高青县| 东光县| 革吉县| 镇雄县| 长丰县| 乌拉特前旗| 蓬安县| 克什克腾旗| 长宁县| 临沧市| 拉萨市| 离岛区| 岐山县| 宜宾市| 凤城市| 尉犁县| 出国| 宾川县| 新野县| 探索| 四子王旗| 准格尔旗| 太仓市| 交口县| 新竹市| 耒阳市| 珠海市|