网络设备高可用性简例
网络高可用性技术
进入系统视图, 键入Ctrl+Z退回到用户视图.
[fw-1]firewall packet-filter default permit
[fw-1]firewall zone trust
[fw-1-zone-trust]add interface e0/2
[fw-1-zone-trust]add interface e0/3
[fw-1-zone-trust]add interface e0/4
[fw-1]int Ethernet0/2
[fw-1-Ethernet0/2]ip add 192.168.2.1 24
[fw-1-Ethernet0/2]quit
[fw-1]int Ethernet 0/3
[fw-1-Ethernet0/3]ip add 192.168.3.1 24
[fw-1-Ethernet0/3]quit
[fw-1]int Ethernet 0/4
[fw-1-Ethernet0/4]ip add 192.168.4.254 24
[fw-1-Ethernet0/4]loopback
[fw-1]osp
[fw-1]ospf
[fw-1-ospf-1]area 0
[fw-1-ospf-1-area-0.0.0.0]ne
[fw-1-ospf-1-area-0.0.0.0]network 192.168.4.0 0.0.0.255
[fw-1-ospf-1-area-0.0.0.0]network 192.168.2.0 0.0.0.255
[fw-1]ip route-static 192.168.4.0 24 192.168.3.2 preference 60
<fw-3>sys
进入系统视图, 键入Ctrl+Z退回到用户视图.
[fw-3]firewall packet-filter default permit
[fw-3]firewall zone trust
[fw-3-zone-trust]add interface Ethernet 0/2
[fw-3-zone-trust]add interface Ethernet 0/3
[fw-3-zone-trust]add interface Ethernet 0/4
[fw-3]interface Ethernet 0/2
[fw-3-Ethernet0/2]ip add 192.168.2.2 24
[fw-3-Ethernet0/2]quit
[fw-3]interface Ethernet0/3
[fw-3-Ethernet0/3]ip add 192.168.3.2 24
[fw-3-Ethernet0/3]quit
[fw-3]interface Ethernet 0/4
[fw-3-Ethernet0/4]ip add 192.168.40.254 24
[fw-3-Ethernet0/4]loopback
[fw-3-Ethernet0/4]quit
[fw-3]ospf
[fw-3-ospf-1]area 0
[fw-3-ospf-1-area-0.0.0.0]network 192.168.40.0 0.0.0.255
[fw-3-ospf-1-area-0.0.0.0]network 192.168.2.0 0.0.0.255
[fw-3]ip route-static 192.168.40.0 24 192.168.3.1 preference 60
<fw-1>sys
进入系统视图, 键入Ctrl+Z退回到用户视图.
[fw-1]firewall packet-filter default permit
[fw-1]firewall zone trust
[fw-1-zone-trust]add interface e0/2
[fw-1-zone-trust]add interface e0/3
[fw-1-zone-trust]add interface e0/4
[fw-1]int Ethernet0/2
[fw-1-Ethernet0/2]ip add 192.168.2.1 24
[fw-1-Ethernet0/2]quit
[fw-1]int Ethernet 0/3
[fw-1-Ethernet0/3]ip add 192.168.3.1 24
[fw-1-Ethernet0/3]quit
[fw-1]int Ethernet 0/4
[fw-1-Ethernet0/4]ip add 192.168.4.254 24
[fw-1-Ethernet0/4]loopback
[fw-1]ip route-static 192.168.4.0 24 192.168.3.2 preference 60
[fw-1]interface Ethernet0/2
[fw-1-Ethernet0/2]standby interface Ethernet 0/3
[fw-1-Ethernet0/2]standby timer delay 10(表示打开的延时) 10(表示关闭的延时)
<fw-3>sys
进入系统视图, 键入Ctrl+Z退回到用户视图.
[fw-3]firewall packet-filter default permit
[fw-3]firewall zone trust
[fw-3-zone-trust]add interface Ethernet 0/2
[fw-3-zone-trust]add interface Ethernet 0/3
[fw-3-zone-trust]add interface Ethernet 0/4
[fw-3]interface Ethernet 0/2
[fw-3-Ethernet0/2]ip add 192.168.2.2 24
[fw-3-Ethernet0/2]quit
[fw-3]interface Ethernet0/3
[fw-3-Ethernet0/3]ip add 192.168.3.2 24
[fw-3-Ethernet0/3]quit
[fw-3]interface Ethernet 0/4
[fw-3-Ethernet0/4]ip add 192.168.40.254 24
[fw-3-Ethernet0/4]loopback
[fw-3-Ethernet0/4]quit
[fw-3]ip route-static 192.168.40.0 24 192.168.3.1 preference 60
[fw-3]interface Ethernet0/2
[fw-3-Ethernet0/2]standby interface Ethernet 0/3
[fw-3-Ethernet0/2]standby timer delay 10 10
2.二层冗余技术中
sw1
link-aggregation group 1 mode manual
int e1/0/10
port link-type trunk
port trunk permit vlan all
int e1/0/1
port link-type trunk
port trunk permit vlan all
port link-aggregation group 1
int e1/0/2
port link-type trunk
port trunk permit vlan all
port link-aggregation group 1
vlan 10
vlan 5
stp en
stp region-configuration 区域配置
region-name zzdx 区域名称
instance 1 vlan 10 映射
instance 2 vlan 5
quit
stp instance 1 root primary 作为区域1的根
stp region-configuration
check reegion-configuration 检测区域配置
revision-level 1 改修订号
active region-configuration 激活区域
[sw2]link-aggregation group 1 mode manual
int e1/0/20
port link-type trunk
port trunk permit vlan all
int e1/0/1
port link-type trunk
port trunk permit vlan all
port link-aggregation group 1
int e1/0/2
port link-type trunk
port trunk permit vlan all
port link-aggregation group 1
vlan 10
vlan 5
is link-aggregation summarty
stp en
stp region-con
reion-name zzdx
instance 1 vlan 10
instance 2 vlan 5
revision-level 1
check reegion-configuration
active region-configuration
quit
stp instance 2 root primary
stp ena
vlan 10
vlan 5
int e1/0/20
port link-type trunk
port trunk permit vlan all
int e1/0/10
port link-type trunk
port trunk permit vlan all
stp region-conf
reion-name zzdx
instance 1 vlan 10
instance 2 vlan 5
revision-leve 1
check region-conf
active region-conf
[sw2]
vlan 10
port e1/0/10
vlan 20
port e1/0/20
int e1/0/1
port link-type trunk
port trunk vlan all
int e1/0/24
port link-type trunk
port trunk vlan all
vlan 10
port e1/0/10
vlan 20
port e1/0/20
int e1/0/1
port link-type trunk
port trunk vlan all
int e1/0/24
port link-type trunk
port trunk vlan all
vrrp ping-enable
int e1.10
vlan-type dot1q vid 10
ip add 192.168.10.2 24
vrrp vrid 10 virtual-ip 192.168.10.254
int e1.20
vlan-type dot1q vid 20
ip add 192.168.20.2 24
vrrp vrid 20 virtual-ip 192.168.20.254
vrrp vrid 20 priority 120
vrrp vrid 20 track serial 1 reduce 30
acl 2000
rule permit source any
ip route 0.0.0.0 0 10.2.2.2.2
int serial 1
ip add 10.2.1.1 30
nat outbound 2000 interface
vrrp ping-enable
int e1.10
vlan-type dot1q vid 10
ip add 192.168.10.1 24
vrrp vrid 10 virtual-ip 192.168.10.254
vrrp vrid 10 priority 120
vrrp vrid 10 track serial 0 reduce 30
int e1.20
vlan-type dot1q vid 20
ip add 192.168.20.1 24
vrrp vrid 20 virtual-ip 192.168.20.254
acl 2000
rule permit source any
ip route 0.0.0.0 0 10.1.1.2
int serial0
ip add 10.1.1.1 30
nat outbound 2000 interface
int 20
ip add 202.102.224.25
int s0
ip add 10.1.1.2 30
shut
undu shut
int s1
ip add 10.2.1.2 30
shut
undu shut
sw1全局模式下
vlan database
vlan 10
vlan 20
int f0/1
swichport mode trunk
channel-group 1 mode on
int f0/2
swichport mode trunk
channel-group 1 mode on
int f0/0
swichport mode trunk
int f0/3
swichport mode access vlan 10
show int f0/0 swtichport
show int port-channel 1 switchport
show vlan swtichoport
sw2全局模式下
vlan database
vlan 10
vlan 20
int f0/1
swichport mode trunk
channel-group 1 mode on
int f0/2
swichport mode trunk
channel-group 1 mode on
int f0/0
swichport mode trunk
int f0/3
swichport mode access vlan 20
show int f0/0 swtichport
show int port-channel 1 switchport
show vlan swtic
r1全局模式下
int f0/0
no shutdown
int f0/0.10
encapsulation dot1Q 10
ip add 192.168.10.1 255.255.255.0
standby 10 ip 192.168.10.254 加入虚拟组10,设置虚拟网关
standby 10 priority 130(默认100 越大越优先)
standby 10 preempt 配置争夺
int f0/0.20
encapsulation dot1Q 20
ip add 192.168.20.1 255.255.255.0
standby 10 ip 192.168.20.254 设置虚拟网关
standby 10 priority 130(默认100 越大越优先)[no standby 20 priority 优先级还为默认]
standby 10 preempt 配置争夺[去掉抢占]
show ip rout
show standby
r2全局模式下
int f0/0
no shutdown
int f0/0.10
encapsulation dot1Q 10
ip add 192.168.10.2 255.255.255.0
standby 10 ip 192.168.10.254 设置虚拟网关
int f0/0.20
encapsulation dot1Q 20
ip add 192.168.20.2 255.255.255.0
standby 10 ip 192.168.10.254 设置虚拟网关
[standby 20 priority 130(默认100 越大越优先)
standby 20 preempt]
show ip rout
show standby
pc1
当网关指向左边路由器
int f0/0
ip add 192.168.10.100 255.255.255.0
no shut
ip route 0.0.0.0 0.0.0.0 192.168.10.1
当网关指向虚拟IP
no ip route 0.0.0.0 0.0.0.0
ip route 0.0.0.0 0.0.0.0 192.168.10.254
跟踪 traceroute 192.168.20.100
pc2
当网关指向右边路由器
int f0/0
ip add 192.168.20.100 255.255.255.0
no shut
ip route 0.0.0.0 0.0.0.0 192.168.20.2
当网关指向虚拟IP
ip route 0.0.0.0 0.0.0.0
ip route 0.0.0.0 0.0.0.0 192.168.20.254
跟踪 traceroute 192.168.10.100
[sw1]link-aggregation group 1 mode manual
[sw1]interface Ethernet 1/0/1
[sw1-Ethernet1/0/1]port link-aggregation group 1
[sw1-Ethernet1/0/1]interface Ethernet 1/0/2
[sw1-Ethernet1/0/2]port link-aggregation group 1
[sw1-Ethernet1/0/2]quit
[sw2]link-aggregation group 1 mode manual
[sw2]interface Ethernet 1/0/1
[sw2-Ethernet1/0/1]port link-aggregation group 1
[sw2-Ethernet1/0/1]interface Ethernet 1/0/2
[sw2-Ethernet1/0/2]port link-aggregation group 1
[sw2-Ethernet1/0/2]quit
R2
int e0
ip add 192.168.2.254 24
loopback
int virtual-tem 1 虚拟模板接口
ip add 192.168.6.2 24
int s0
ppp mp int vir 1 捆绑物理接口
ppp mp 启动协商功能
int s1
ppp mp int vir 1
ppp mp
quit
ip route 192.168.2.0 24 192.168.6.1
R12
int e0
ip add 192.168.4.254 24
loopback
int virtual-tem 1 虚拟模板接口
ip add 192.168.6.1 24
int s0
ppp mp int vir 1 捆绑物理接口
ppp mp 启动协商功能
int s1
ppp mp int vir 1
ppp mp
quit
ip route 192.168.4.0 24 192.168.6.2
转载于:https://blog.51cto.com/4459003/827240
网络设备高可用性简例相关推荐
- oracle供应商导入,AP供应商导入简例.pdf
AP供应商导入简例 Oracle 完全测试记录 供应商导入 吴若童 总述总述 总述总述 供应商供应商接口接口的原理的原理?? 供应商供应商接口接口的原理的原理?? 系统从三个表分别导入供应商.供应商地 ...
- Android RuntimePermissions运行时权限:单个运行时权限申请简例
Android RuntimePermissions运行时权限:单个运行时权限申请简例 Android运行时权限申请的框架结构和步骤比较简单和固定,一般现状代码启动后检查当前的Android SDK版 ...
- 5.3linux下C语言socket网络编程简例
原创文章,转载请注明转载字样和出处,谢谢! 这里给出在Linux下的简单socket网络编程的实例,使用tcp协议进行通信,服务端进行监听,在收到客户端的连接后,发送数据给客户端:客户端在接受到数据后 ...
- Ansible 入门:安装 简例 playbook应用
Mysql 内:select unix_timestamp('2016-10-20') <---> select from_unixtime(147662104) 转时间戳:date + ...
- 17.scrapy框架简例使用
17.scrapy框架简例使用 目标:创建scrapy项目 创建一个spider来抓取站点和处理数据 通过命令行将抓取内容导出 1.创建项目 scrapy startproject tutorial ...
- AMBER分子动力学简例
AMBER分子动力学简例(一) 概述 以下是使用AMBER包的简单教程,希望对开始学习分子动力学的同学有用处.申明一下,以下教程原版来自网上,是最最基本的教程,同时也非常实用,有非常好的借鉴意义. A ...
- PHP 制作微信小程序API 简例
PHP制作微信小程序API 简例 php页面: echo "要传回的数据"; echo( json_encode("要传回的数据")); exit( json_ ...
- linux下C语言socket网络编程简例
转自博文:http://blog.csdn.net/kikilizhm/article/details/7858405 在练习写网络编程时,该例给了我帮助,在写服务器时,我把while逻辑位置想法错了 ...
- iOS录音播放简例-AVFoundation
iOS录音播放简例-AVFoundation 本例简单介绍一个demo,录制一段声音,再播放它,用的是AVFoundation框架. 一.添加AVFoundation框架,在.m文件中引入 #impo ...
- 后端架构token授权认证机制:spring security JSON Web Token(JWT)简例
后端架构token授权认证机制:spring security JSON Web Token(JWT)简例 在基于token的客户端-服务器端认证授权以前,前端到服务器端的认证-授权通常是基于sess ...
最新文章
- Python从入门到入土-Python3 File(文件) 方法
- lucky前面加a还是an_“不可数”名词前何时加a/an,何时不加?来自本站教师群的两道典型题问答,揭示了规律 白话英语201931...
- Acwing 1084. 数字游戏 II
- jieba分词_Jieba.el – 在Emacs中使用jieba中文分词
- el-table 树形表格 自定义展开图标_实践一个树形组件
- python3socket非阻塞在linux里无效_利用Python中SocketServer实现客户端与服务器间非阻塞通信方法介绍...
- 人工智能__一种现代方法 绪论导读
- 大众点评产品分析报告
- 虚拟机VMware安装PhoenixOS(凤凰OS)
- 华为鸿蒙麒麟玉兔_鸿蒙、麒麟、鲲鹏……这是属于中华的浪漫
- 按键精灵可以实现c语言吗,按键精灵的原理和编写方法(1)
- Android RecyclerView实现类似于老虎机抽奖,数字滚动等动画效果
- 铜陵市商标注册申请流程以及阶段时间介绍
- HTML中表格写法,在HTML代码里面表格的写法以及表格的特性
- 快速插入100w条数据
- 大一计算机论文_大一计算机论文
- WPScan使用完整攻略:如何对WordPress站点进行安全测试
- Android检查网络
- java集合练习题十六个国家随机分为四组
- C#实现一个控制台飞行棋小游戏(附源码)
热门文章
- gm220s路由器怎么设置_教你netgear无线路由器怎么设置全图解教程
- 【离散数学III】命题逻辑——命题符号及联结词
- html插入cad,cad插件有哪些
- 韦东山ARM裸机学习笔记——S3C2440的串口驱动编程原理
- Keil5 平台 S3C2440裸机程序开发环境配置
- java个人所得税if语句_java_计算个人所得税
- win 11 无法打出中文句号问题(中/英文标点切换) 微软五笔输入法
- docker-compose up -d --build不会更新镜像;什么时候容器会变更
- (白光LED显色性)计算白光LED的显色指数(CRI)数据异常,色质指数CQS来替代
- 使用python基于git log统计开发代码量