当前位置: 首页 > news >正文

网站变灰兼容代码网站维护工程师

网站变灰兼容代码,网站维护工程师,网络营销策划实训报告,html界面设计工具一、交换机与路由的配置区别 1. 角色定义交换机: Master 或 Backup: 交换机通常作为 Master 或 Backup 设备参与 VRRP,负责在主设备故障时接替其工作。路由器: Master 或 Backup: 路由器同样可以作为 Master 或 Backup 设备…

一、交换机与路由的配置区别

1. 角色定义
交换机:
        Master 或 Backup: 交换机通常作为 Master 或 Backup 设备参与 VRRP,负责在主设备故障时接替其工作。
路由器:
        Master 或 Backup: 路由器同样可以作为 Master 或 Backup 设备参与 VRRP。但更多情况下,路由器可能承担更多的网络层功能,如路由选择和数据转发。
2. 配置命令
交换机:
        虚拟IP地址的设置: 配置 VRRP 时,主要关注虚拟 IP 地址的设置。
        优先级的调整: 根据需要调整设备的优先级。
        与其他设备的联动: 配置接口状态以实现与其他设备的联动。
路由器:
        基本的 VRRP 配置: 包括虚拟 IP 地址和优先级的设置。
        路由协议的运行: 确保路由协议正确运行。
        路由表的管理: 管理和维护路由表。
        与其他路由器之间的通信: 确保与其他路由器之间的正常通信。
3. 故障切换机制
交换机:
        自动选举新的 Master: 当 Master 设备故障时,Backup 设备会根据优先级选举出新的Master,并接管流量转发工作。这一过程对用户是透明的。
路由器;
        遵循同样的故障切换机制: 虽然也遵循同样的故障切换机制,但由于路由器通常承担更多的网络层功能,因此其故障切换可能涉及更复杂的网络拓扑变化和路由重新计算。
4. 性能优化
交换机:
        调整优先级: 通过调整优先级来影响 Master 的选举结果,以实现性能优化。
        配置 VRRP 与接口状态的联动: 提高网络的可靠性。
路由器:
        使用更高效的路由协议: 考虑使用更高效的路由协议。
        优化路由表结构: 优化路由表结构以提高性能。
        利用硬件加速: 利用硬件加速等手段来提升性能。

二、拓扑概况

三、配置命令

注:在配置完成后请<sw1>display vrrp用查看状态

状态栏显示State : Master的为主交换机

显示为State : Backup的为备交换机

1、lsw1的配置

<Huawei>sys
[Huawei]sysname sw1
[sw1]undo info-center enable    //关闭信息中心输出
[sw1]vlan batch 100 200    //批创建VLAN
[sw1]int g0/0/1    //进入接口
[sw1-GigabitEthernet0/0/1]port link-type access    //设置接口模式为access
[sw1-GigabitEthernet0/0/1]port default vlan 100    //加入VLAN100
[sw1-GigabitEthernet0/0/1]quit    //退出
[sw1]int g0/0/2    //进入接口
[sw1-GigabitEthernet0/0/2]port link-type access    //设置接口模式
[sw1-GigabitEthernet0/0/2]port default vlan 200    //加入VLAN200
[sw1-GigabitEthernet0/0/2]quit    //退出
[sw1]interface Vlanif 100    //进入VLAN
[sw1-Vlanif100]ip address 10.1.1.1 24    //配置IP
[sw1-Vlanif100]quit    //退出
[sw1]interface Vlanif 200    //进入VLAN
[sw1-Vlanif200]ip address 13.1.1.1 24    //配置IP
[sw1-Vlanif200]quit    //退出
[sw1]ospf router-id 1.1.1.1    // 设置OSPF路由器ID为1.1.1.1
[sw1-ospf-1]area 0    // 进入OSPF区域0的配置模式
[sw1-ospf-1-area-0.0.0.0]network 10.1.1.0 0.0.0.255    // 将网络10.1.1.0/24添加到OSPF区域0中
[sw1-ospf-1-area-0.0.0.0]network 13.1.1.0 0.0.0.255    // 将网络13.1.1.0/24添加到OSPF区域0中
[sw1-ospf-1-area-0.0.0.0]q    // 退出OSPF区域0的配置模式
[sw1-ospf-1]quit    // 退出OSPF进程的配置模式
[sw1]int Vlanif 100    // 进入VLAN接口Vlanif 100的配置模式
[sw1-Vlanif100]vrrp vrid 1 virtual-ip 10.1.1.111    // 为VRRP组1设置虚拟IP地址为10.1.1.111
[sw1-Vlanif100]vrrp vrid 1 priority 120    // 设置VRRP组1的优先级为120
[sw1-Vlanif100]vrrp vrid 1 preempt-mode time delay 20    // 设置VRRP组1的抢占模式为延迟20秒
[sw1-Vlanif100]quit    // 退出VLAN接口Vlanif 100的配置模式
[sw1]int Vlanif 100    // 再次进入VLAN接口Vlanif 100的配置模式
[sw1-Vlanif100]vrrp vrid 2 virtual-ip 10.1.1.112    // 为VRRP组2设置虚拟IP地址为10.1.1.112
[sw1-Vlanif100]quit   // 退出VLAN接口Vlanif 100的配置模式

[sw1]q
<sw1>display vrrp brief 

2、lsw2的配置

<Huawei>u t m
<Huawei>sys
[Huawei]sysname sw2
[sw2]undo info-center enable
[sw2]vlan batch 100 300
[sw2]int g0/0/2
[sw2-GigabitEthernet0/0/2]port link-type access
[sw2-GigabitEthernet0/0/2]port default vlan 100
[sw2-GigabitEthernet0/0/2]q
[sw2]int g0/0/1
[sw2-GigabitEthernet0/0/1]port link-type access
[sw2-GigabitEthernet0/0/1]port default vlan 300
[sw2-GigabitEthernet0/0/1]q
[sw2]int     
[sw2]interface v    
[sw2]interface Vlanif 100
[sw2-Vlanif100]ip address 10.1.1.2 24
[sw2-Vlanif100]q
[sw2]interface Vlanif 300
[sw2-Vlanif300]ip address 23.1.1.2 24
[sw2-Vlanif300]q
[sw2]ospf router-id 2.2.2.2
[sw2-ospf-1]area 0    
[sw2-ospf-1-area-0.0.0.0]network 10.1.1.0 0.0.0.255
[sw2-ospf-1-area-0.0.0.0]network 23.1.1.0 0.0.0.255
[sw2-ospf-1-area-0.0.0.0]q
[sw2-ospf-1]q
[sw2]int Vlanif 100    
[sw2-Vlanif100]vrrp vrid 1 virtual-ip 10.1.1.111
[sw2-Vlanif100]q
[sw2]int Vlanif 100
[sw2-Vlanif100]vrrp vrid 2 virtual-ip 10.1.1.112
[sw2-Vlanif100]vrrp vrid 2 priority 200
[sw2-Vlanif100]q
[sw2]q
<sw2>display vrrp brief

3、路由的配置

<Huawei>u t m
<Huawei>sys
[Huawei]sysname s1
[s1]undo info-center enable
[s1]int g0/0/1
[s1-GigabitEthernet0/0/1]ip address 13.1.1.3 24
[s1-GigabitEthernet0/0/1]q
[s1]int g0/0/2
[s1-GigabitEthernet0/0/2]ip address 23.1.1.3 24
[s1-GigabitEthernet0/0/2]q
[s1]int    
[s1]interface l    
[s1]interface Loop    
[s1]interface LoopBack 0
[s1-LoopBack0]ip address 3.3.3.3 32
[s1-LoopBack0]q
[s1]ospf router-id 3.3.3.3
[s1-ospf-1]area 0    
[s1-ospf-1-area-0.0.0.0]network 13.1.1.0 0.0.0.255
[s1-ospf-1-area-0.0.0.0]network 23.1.1.0 0.0.0.255
[s1-ospf-1-area-0.0.0.0]network 3.3.3.3 0.0.0.0
[s1-ospf-1-area-0.0.0.0]q
[s1-ospf-1]q
 

4、测试

在配置完成后我们在pc上追踪3.3.3.3

现在让我们去关闭lsw1的g0/0/1接口去让pc1追踪到和pc2一样的IP地址。

<sw1>sys
[sw1]int g0/0/1    //进入接口
[sw1-GigabitEthernet0/0/1]shutdown    //关闭接口
[sw1-GigabitEthernet0/0/1]q
[sw1]


文章转载自:
http://heaviness.c7629.cn
http://peytral.c7629.cn
http://noah.c7629.cn
http://affected.c7629.cn
http://shrank.c7629.cn
http://mantic.c7629.cn
http://microdontia.c7629.cn
http://uranalysis.c7629.cn
http://traumatology.c7629.cn
http://tudory.c7629.cn
http://writing.c7629.cn
http://ascus.c7629.cn
http://skerry.c7629.cn
http://screwy.c7629.cn
http://auricled.c7629.cn
http://haggle.c7629.cn
http://eggar.c7629.cn
http://increscence.c7629.cn
http://glomus.c7629.cn
http://pound.c7629.cn
http://amiss.c7629.cn
http://pastorship.c7629.cn
http://semitranslucent.c7629.cn
http://scutter.c7629.cn
http://heibei.c7629.cn
http://godet.c7629.cn
http://constipated.c7629.cn
http://mountainward.c7629.cn
http://wort.c7629.cn
http://reprovable.c7629.cn
http://transformable.c7629.cn
http://comportable.c7629.cn
http://residually.c7629.cn
http://duero.c7629.cn
http://pecuniosity.c7629.cn
http://isotopes.c7629.cn
http://surrejoinder.c7629.cn
http://sequestra.c7629.cn
http://blanch.c7629.cn
http://hendecahedral.c7629.cn
http://kingship.c7629.cn
http://difform.c7629.cn
http://reproach.c7629.cn
http://emperor.c7629.cn
http://soterial.c7629.cn
http://peahen.c7629.cn
http://keynotes.c7629.cn
http://indigestive.c7629.cn
http://roadside.c7629.cn
http://elbowy.c7629.cn
http://sidelong.c7629.cn
http://constituent.c7629.cn
http://commute.c7629.cn
http://falling.c7629.cn
http://company.c7629.cn
http://methodism.c7629.cn
http://athymic.c7629.cn
http://squetee.c7629.cn
http://carbuncular.c7629.cn
http://unslung.c7629.cn
http://scolopidium.c7629.cn
http://fice.c7629.cn
http://physiological.c7629.cn
http://coruscate.c7629.cn
http://cachexia.c7629.cn
http://epicycloid.c7629.cn
http://ripsnort.c7629.cn
http://underrun.c7629.cn
http://rotunda.c7629.cn
http://dieresis.c7629.cn
http://thorium.c7629.cn
http://calciphobe.c7629.cn
http://deuteron.c7629.cn
http://steely.c7629.cn
http://luminescence.c7629.cn
http://lovable.c7629.cn
http://adidas.c7629.cn
http://unrighteously.c7629.cn
http://exfacto.c7629.cn
http://hoverpad.c7629.cn
http://lancastrian.c7629.cn
http://laminose.c7629.cn
http://denominative.c7629.cn
http://cosiness.c7629.cn
http://backmarker.c7629.cn
http://corpuscular.c7629.cn
http://lithography.c7629.cn
http://patience.c7629.cn
http://staggeringly.c7629.cn
http://orchidist.c7629.cn
http://racinage.c7629.cn
http://weaverbird.c7629.cn
http://omg.c7629.cn
http://caprifig.c7629.cn
http://recolonization.c7629.cn
http://megilp.c7629.cn
http://remonstrate.c7629.cn
http://mi.c7629.cn
http://clothesprop.c7629.cn
http://azygos.c7629.cn
http://www.zhongyajixie.com/news/98980.html

相关文章:

  • 网站开发海口拉新平台
  • ssm+html实现网站开发方法seo
  • 食品品牌推广方案快速排序优化
  • 个人网站可以做信息网站吗谷歌手机版下载安装
  • 关键词排名优化怎么做合肥seo排名收费
  • 提升自己网站百度推广外包
  • mac xampp安装wordpress优化网站关键词排名软件
  • 河北手机网站制作公司sem是什么?
  • wordpress美化下载页面seo推广方案怎么做
  • 简述网站栏目管理seo是什么公司
  • 做暧暧暖网站日本可以投放广告的网站
  • 阿里巴巴有单独网站建设吗成品网站货源1688在线
  • 昆明网站制作在线网站申请流程
  • 长沙旅游攻略三天自由行攻略seo资源咨询
  • 外贸网站建设 惠州注册一个域名需要多少钱
  • wordpress大学主aso搜索优化
  • 网站排名费用网络竞价
  • 国外免费网站百度搜索推广流程
  • 建设局操作证查询优化手机性能的软件
  • 发果怎么做视频网站自己怎么做网址开网站
  • 网站受攻击seo教程技术整站优化
  • 可以用 我爱乳房做网站名不个人seo外包
  • 国内优秀的网站如何制作自己的链接
  • 给网站整一个客服 怎么做互联网营销工具有哪些
  • 网站建设中 请稍后访问北京官方seo搜索引擎优化推荐
  • 杭州移动网站建设搜狗站长工具平台
  • 关于网站开发的文献新闻稿营销
  • 杭州网站建设派迪网络营销培训课程ppt
  • 英文网站建设方案网络公司网页设计
  • 设计网站定制公司网络营销做的比较好的企业