[实战]HM-Router configuration for TP ROOM
HM-Router configuration for TP
目标: 让外网可以访问FTP server [10.1.1.2] /Telnet(这里为了方便测试,使用telnet),中间跨了2个 Router
++++CNSO-TP01 configuration +++++
conf t
service timestamps debug datetime localtime show-timezone msec
service timestamps log datetime localtime show-timezone msec
service password-encryption
service sequence-numbers
service tcp-keepalives-in
service tcp-keepalives-out
no ip http server
no ip http secure-server
no service config
no logging console
no logging monitor
password encryption aes
key config-key password-encrypt xxxxx
ip domain name hm.com
ip name-server 8.8.8.8 8.8.8.4
hostname CNSO-TP01
ip cef
ip multicast-routing
!
!
crypto key generate rsa
1024
!
!
!
ip ssh version 2
ip ssh authentication-retries 3
!
!
!
username xxxx priv 15 password 0 xxxx
enable secret 0 xxxxx
line vty 0 4
transport input all
exec-timeout 15 0
logging synchronous
login local
exit
banner exec #
*****************************************************************
*UNAUTHORIZED ACCESS TO THIS DEVICE IS PROHIBITED *
*You must have explicit, authorized permission to access or *
*configure this device. Unauthorized attempts and actions to *
*access or use this system may result in civil and/or criminal *
*penalties.All activities performed on this device are logged *
*and monitored. *
*****************************************************************#
!
!
!
interface f0/0
description *** TP WAN INTERFACE ***
ip address 12.1.1.2 255.255.255.0
no shut
exit
interface Vlan 1
description *** LAN INTERFACE ***
ip address 192.168.1.1 255.255.255.0
no shut
exit
!
!
Service DHCP
ip dhcp pool HM-CN
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
netbios-node-type h-node
dns-server 8.8.8.8 8.8.4.4
domain-name hm.com
lease 3
exit
ip dhcp excluded-address 192.168.1.1 192.168.1.10
!
!
ip route 0.0.0.0 0.0.0.0 f0/0 12.1.1.1
access-list 1 permit 192.168.1.0 0.0.0.255
ip nat inside source list 1 interface f0/0 overload
ip nat inside source static tcp 192.168.1.11 23 int f0/0 23
!
!
interface f0/0
ip nat outside
no cdp enable
no shut
exit
interface Vlan 1
ip nat inside
cdp ena
no shut
exit
!
试验结果:
在外面可以telnet R4
CNSO-TP01#sh ip nat translations
Pro Inside global Inside local Outside local Outside global
tcp 12.1.1.2:23 192.168.1.11:23 15.1.1.5:24113 15.1.1.5:24113
tcp 12.1.1.2:23 192.168.1.11:23 15.1.1.5:40245 15.1.1.5:40245
tcp 12.1.1.2:23 192.168.1.11:23 --- ---
=======以上模拟测试是否能进CNSO-TP01 router=================
CNSO-TP01(config)#ip route 10.1.1.0 255.255.255.0 vlan 1
CNSO-TP01(config)#no ip nat inside source static tcp 192.168.1.11 23 int f0/0 23
CNSO-TP01(config)#ip nat inside source static tcp 192.168.1.10 23 int f0/0 23
CT(config)#int f0/1
CT(config-if)#ip nat outside
CT(config-if)#int f0/0
CT(config-if)#ip nat inside
CT(config-if)#exit
CT(config)#access-list 1 permit 10.1.1.0 0.0.0.255
CT(config)#ip nat inside source list 1 interface f0/1 overload
CT(config)#ip nat inside source static tcp 10.1.1.2 23 int f0/1 23
测试成功如下:
CNSO-TP01#sh ip nat translations
Pro Inside global Inside local Outside local Outside global
tcp 12.1.1.2:23 192.168.1.10:23 15.1.1.5:26987 15.1.1.5:26987
tcp 12.1.1.2:23 192.168.1.10:23 --- ---
CT#sh ip nat translations
Pro Inside global Inside local Outside local Outside global
icmp 192.168.1.10:3 10.1.1.2:3 192.168.1.1:3 192.168.1.1:3
tcp 192.168.1.10:23 10.1.1.2:23 15.1.1.5:26987 15.1.1.5:26987
tcp 192.168.1.10:23 10.1.1.2:23 --- ---
总结:学要致用!
[实战]HM-Router configuration for TP ROOM相关推荐
- [实战]Router configuration for TP ROOM
Router configuration for TP 目标: 让外网可以访问FTP server [10.1.1.2] /Telnet(这里为了方便测试,使用telnet),中间跨了2个 Route ...
- mysql安装快完了报错creating mysql router configuration显示不通过,图文教程
2020-3-15:2:06:都这莫晚了(鬼mysql好烦,,终装好) 我弄出来了,在creating mysql router configuration files失败了我就点击cancel然后直 ...
- no router configuration contained in extension component metadata
Created by Wang, Jerry, last modified on May 20, 2015 要获取更多Jerry的原创文章,请关注公众号"汪子熙":
- mysql router安装教程_MySQL Router 安装与配置
1.9.2. 配置 MySQL Router 默认配置 # cat /etc/mysqlrouter/mysqlrouter.ini # Copyright (c) 2015, Oracle and/ ...
- SAP UI5 router的初始化逻辑
Sent: Wednesday, March 4, 2015 12:07 PM Subject: RE: Fiori 我debug发现那个需要的router初始化的代码没有得到执行,就是最后一张图黄 ...
- MySQL Router 测试使用 转
MySQL Router 测试使用1. 特性 MySQL Router 并没有包括一些特别新的特性, 总体上看中规中矩, 不过 first-available 和插件两个特性挺有意思, 后续会进行讲解 ...
- 19.9. MySQL Router
19.9.1. 安装 MySQL Router # yum install mysql-router -y MySQL Router 软件包中所含的文件. [root@netkiller ~]# rp ...
- 使用MySQL Router实现高可用、负载均衡、读写分离
目录 一.MySQL Router简介 1. 功能 2. 架构 3. 使用 二.安装配置 三.自动失败切换 四.负载均衡 五.读写分离 六.多实例 1. 环境 2. 配置文件 3. 功能测试 参考: ...
- 思科资料的所有资料目录
1.20140819单臂路由.pdf 2.CCNA 实验手册之Packet_Tracer使用教程.pdf 3.CCNA_Lab_Workbook_Sample_Labs(CDP,静态路由,端口安全). ...
最新文章
- 大战三回合:XGBoost、LightGBM和Catboost一决高低 | 程序员硬核算法评测
- python nginx日志分析_Nginx日志分析及脚本编写
- 导数,微积分,牛顿运动学制作创意地图
- 第七章之main函数和启动例程
- leetcode96. 不同的二叉搜索树(动态规划)
- Eclipse ,Ant编译 jbpm.war包
- 【Shell 脚本】Mysql 定时备份
- 51nod 1268最大距离
- WINCE 矩阵键盘 介绍
- brew - 切换为国内源
- PyQt5简易入门指南02,简单图片显示程序
- 只能看,不能读的文章
- pageContext对象的用法详述
- MIMIC III数据集详细介绍
- Web开发技术的演变
- Ajax之父-Jesse James Garrett
- 看这一篇就够了:写简历、面试、谈薪酬的技巧和防坑指南
- 【HTML 教程系列第 11 篇】HTML 中常用的文本格式化标签
- 拼命加班撸Excel,准点下班的新人却被升职
- 计算机应用基础 本科类 第二阶段b201609,江南大学。计算机应用基础(本科类)第一阶段B201609.doc...
热门文章
- spark 集群单词统计_最近Kafka这么火,聊一聊Kafka:Kafka与Spark的集成
- #开发catia_CATIA工程制图二次开发之15:从平面创建剖面视图
- 删除表格数据后自动刷新_表格中一键即可删除重复数据,你居然还用逐条排查?...
- 分布式锁-zk临时节点
- 好用的Span(富文本)api
- 解决Android Studio内代码乱码
- android小部件如何实时更新,android – 使用AlarmManager手动更新小部件
- mysql 分区表优化_Sql优化之Mysql表分区
- Python2和Python3除法差别
- tf.nn.softmax参数详解以及作用