VRRP基础配置
2011-01-21 21:42
288 查看
拓扑图
实验过程
1. pc的配置
2. R1的配置
3. R2的配置
4. 查看vrrp信息
说明:现在R1[/b]是Backup Router[/b],R2[/b]是Master Router[/b],R2[/b]处于转发状态。[/b]
5. 关闭R2的f0/0,模拟故障。
说明:现在R1[/b]是Master Router[/b],处于转发状态[/b]
6. 测试连通性
本文出自 “等待” 博客,请务必保留此出处http://mxn19871215.blog.51cto.com/982365/483081
实验过程
1. pc的配置
Router>en Router#conf t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#no ip domain-lookup Router(config)#line con 0 Router(config-line)#no exec-timeout Router(config-line)#loggin syn Router(config-line)#exit Router(config)#host pc pc(config)#no ip routing pc(config)#int f0/0 pc(config-if)#no shut pc(config-if)#ip add 192.168.1.1 255.255.255.0 pc(config-if)#exit pc(config)#ip default-gateway 192.168.1.254 pc(config)#end |
Router>en Router#conf t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#no ip domain-lookup Router(config)#line con 0 Router(config-line)#no exec-timeout Router(config-line)#loggin syn Router(config-line)#exit Router(config)#host R1 R1(config)#int f0/0 R1(config-if)#no shut R1(config-if)#ip add 192.168.1.10 255.255.255.0 R1(config-if)#vrrp 10 ip 192.168.1.254 //[/b]配置vrrp[/b]组10[/b]的IP[/b] R1(config-if)#end[/b] |
Router>en Router#conf t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#no ip domain-lookup Router(config)#line con 0 Router(config-line)#no exec-timeout Router(config-line)#loggin syn Router(config-line)#exit Router(config)#host R2 R2(config)#int f0/0 R2(config-if)#no shut R2(config-if)#ip add 192.168.1.20 255.255.255.0 R2(config-if)#vrrp 10 ip 192.168.1.254[/b] R2(config-if)#end |
R1#show vrrp bri Interface Grp Pri Time Own Pre State Master addr Group addr Fa0/0 10 100 3609 Y Backup[/b] 192.168.1.20 192.168.1.254 R2#show vrrp bri Interface Grp Pri Time Own Pre State Master addr Group addr Fa0/0 10 100 3609 Y Master[/b] 192.168.1.20 192.168.1.254 |
5. 关闭R2的f0/0,模拟故障。
R2(config)#int f0/0 R2(config-if)#shut R1#show vrrp br Interface Grp Pri Time Own Pre State Master addr Group addr Fa0/0 10 100 3609 Y Master 192.168.1.10 192.168.1.254 |
6. 测试连通性
pc#ping 192.168.1.254 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.1.254, timeout is 2 seconds: .!!!![/b] Success rate is 80 percent (4/5), round-trip min/avg/max = 12/40/64 ms pc#traceroute 192.168.1.254 Type escape sequence to abort. Tracing the route to 192.168.1.254 1 192.168.1.10 56 msec * 36 msec //pc[/b]现在走R1[/b] |
相关文章推荐
- struts2基础学习之文件配置
- Horn框架笔记|基础配置
- linux下OCI基础:配置Instant Client连oracle数据库
- nginx 基础配置
- docker学习系列二:数据管理和网络基础配置
- ThinkPhp 5 目录结构及基础配置详解
- [原]java专业程序代写(qq:928900200),学习笔记之基础入门<数据库连接配置>(二十八)
- NSD基础交换-交换机的工作原理、Vlan配置
- SPS配置基础架构
- 【Nutch2.2.1基础教程之3】Nutch2.2.1配置文件
- [Emacs] 1.2 尝试配置emacs(基础与配色)
- Linux系统基础网络配置老鸟精华篇
- 小战笔记_Git(二 基础要点和配置)
- java基础之 第一步 :jdk安装配置
- openstack安装配置—— 基础环境准备
- 西加云杉700E设备AAA认证之基础配置
- 微软私有云分享(R2)22 计算机配置文件与基础设置
- NGINX 配置基础(1)
- SCM基础之SCM配置管理计划重要性
- javaweb开发基础及Tomcat服务器的简单使用、配置