set ip next-hop多链路负载均衡

上传人:第*** 文档编号:32696781 上传时间:2018-02-12 格式:DOCX 页数:7 大小:121.68KB
返回 下载 相关 举报
set ip next-hop多链路负载均衡_第1页
第1页 / 共7页
set ip next-hop多链路负载均衡_第2页
第2页 / 共7页
set ip next-hop多链路负载均衡_第3页
第3页 / 共7页
set ip next-hop多链路负载均衡_第4页
第4页 / 共7页
set ip next-hop多链路负载均衡_第5页
第5页 / 共7页
点击查看更多>>
资源描述

《set ip next-hop多链路负载均衡》由会员分享,可在线阅读,更多相关《set ip next-hop多链路负载均衡(7页珍藏版)》请在金锄头文库上搜索。

1、set ip next-hop 多链路负载均衡实验目的:R1 做为边界路由,通过 s1/1、s1/2 两个接口链接到远程路由 R2。在 R1 上做路由策略,实现来自 vlan10 的流量走 s1/1 接口的链路, vlan20 的流量走 s1/2 接口的链路。实验环境:GNS3 1.0三层交换机 :i86bi-linux-l2-adventerprisek9-15.1a路由器:i86bi-linux-l3-adventerprisek9-15.4.1TPC:vpcs实验步骤:1、配置三层交换机,划分 3 个 vlan,建立对应的 vlan 网关,并创建默认路由指向 192.168.4.253(

2、R3 的 e0/0)S3(config)#vlan 10 S3(config-vlan)#name vlan10S3(config-vlan)#vlan 20S3(config-vlan)#name vlan20S3(config-vlan)#vlan 30S3(config-vlan)#name vlan30S3(config-vlan)#exitS3(config)#interface e0/1 S3(config-if)#switchport mode accessS3(config-if)#switchport access vlan 10S3(config-if)#no shS3(c

3、onfig-if)#interface e0/2S3(config-if)#switchport mode accessS3(config-if)#switchport access vlan 20S3(config-if)#no shS3(config-if)#interface e0/3S3(config-if)#switchport mode accessS3(config-if)#switchport access vlan 30S3(config-if)#no shS3(config-if)#exitS3(config)#interface vlan 10 S3(config-if)

4、#ip address 192.168.1.254 255.255.255.0S3(config-if)#no shS3(config-if)#interface vlan 20 S3(config-if)#ip address 192.168.2.254 255.255.255.0S3(config-if)#no shS3(config-if)#interface vlan 30 S3(config-if)#ip address 192.168.3.254 255.2 55.255.0S3(config-if)#no shS3(config-if)#exitS3(config)#S3(con

5、fig)#interface e0/0S3(config-if)#no switchport S3(config-if)#ip address 192.168.4.254 255.255.255.0S3(config-if)#exitS3(config)#S3(config)#ip route 0.0.0.0 0.0.0.0 192.168.4.253 2、配置路由器。R1、R2 通过两根串口线相连,启用OSPF。R1 上对 192.168.1.0 、192.168.2.0、 192.168.3.0 三个网段创建静态路由,指向 192.168.4.254 (S3 的 e 0/0)R1(conf

6、ig)#interface e0/0R1(config-if)#ip address 192.168.4.253 255.255.255.0R1(config-if)#interface s1/1R1(config-if)#ip address 192.168.5.1 255.255.255.0R1(config-if)#clock rate 2000000R1(config-if)#interface s1/2R1(config-if)#ip address 12.1.1.1 255.255.255.0R1(config-if)#clock rate 64000R1(config-if)#r

7、outer ospf 1R1(config-router)#network 192.168.4.0 0.0.0.255 area 0R1(config-router)#network 192.168.5.0 0.0.0.255 area 0R1(config-router)#network 12.1.1.0 0.0.0.255 area 0R1(config-router)#exitR1(config)#ip forward-protocol ndR1(config)#ip route 192.168.1.0 255.255.255.0 192.168.4.254R1(config)#ip r

8、oute 192.168.2.0 255.255.255.0 192.168.4.254R1(config)#ip route 192.168.3.0 255.255.255.0 192.168.4.254R1(config)#router ospf 1R1(config-router)#redistribute static subnets /重发布静态路由R2(config)#interface e0/0R2(config-if)#ip address 24.1.1.254 255.255.255.0R2(config-if)#interface s1/1R2(config-if)#ip

9、address 192.168.5.254 255.255.255.0R2(config-if)#clock rate 2000000R2(config-if)#interface s1/2R2(config-if)#ip address 12.1.1.254 255.255.255.0R2(config-if)#clock rate 64000R2(config-if)#exitR2(config)#R2(config)#router ospf 1R2(config-router)#network 192.168.5.0 0.0.0.255 area 0R2(config-router)#n

10、etwork 12.1.1.0 0.0.0.255 area 0R2(config-router)#network 24.1.1.0 0.0.0.255 area 0R2(config-router)#exit3、验证配置R1#show ip routeGateway of last resort is not set12.0.0.0/8 is variably subnetted, 2 subnets, 2 masksC 12.1.1.0/24 is directly connected, Serial1/2L 12.1.1.1/32 is directly connected, Seria

11、l1/224.0.0.0/24 is subnetted, 1 subnetsO 24.1.1.0 110/74 via 192.168.5.254, 02:28:25, Serial1/1110/74 via 12.1.1.254, 02:25:44, Serial1/2S 192.168.1.0/24 1/0 via 192.168.4.254S 192.168.2.0/24 1/0 via 192.168.4.254S 192.168.3.0/24 1/0 via 192.168.4.254192.168.4.0/24 is variably subnetted, 2 subnets,

12、2 masksC 192.168.4.0/24 is directly connected, Ethernet0/0L 192.168.4.253/32 is directly connected, Ethernet0/0192.168.5.0/24 is variably subnetted, 2 subnets, 2 masksC 192.168.5.0/24 is directly connected, Serial1/1L 192.168.5.1/32 is directly connected, Serial1/1R2#show ip routeCodes: L local, C c

13、onnected, S static, R RIP, M mobile, B BGPGateway of last resort is not set12.0.0.0/8 is variably subnetted, 2 subnets, 2 masksC 12.1.1.0/24 is directly connected, Serial1/2L 12.1.1.254/32 is directly connected, Serial1/224.0.0.0/8 is variably subnetted, 2 subnets, 2 masksC 24.1.1.0/24 is directly c

14、onnected, Ethernet0/0L 24.1.1.254/32 is directly connected, Ethernet0/0O 192.168.4.0/24 110/74 via 192.168.5.1, 00:04:35, Serial1/1110/74 via 12.1.1.1, 00:01:55, Serial1/2192.168.5.0/24 is variably subnetted, 2 subnets, 2 masksC 192.168.5.0/24 is directly connected, Serial1/1L 192.168.5.254/32 is di

15、rectly connected, Serial1/14、配置 VPCSPC1 ip 192.168.1.1 /24 192.168.1.254Checking for duplicate addressPC1 : 192.168.1.1 255.255.255.0 gateway 192.168.1.254PC2PC2 ip 192.168.2.2 /24 192.168.2.254Checking for duplicate addressPC2 : 192.168.2.2 255.255.255.0 gateway 192.168.2.254PC3PC3 ip 192.168.3.3 /24 192.168.3.254Checking for duplicate addressPC3 : 192.168.3.3 255.255.255.0 gateway 192.168.3.254PC4PC4 ip 24.1.1.4 /24 24.1.1.254Checking for duplicate addressPC4 : 24.1.1.4 255.255.255.0 gateway 24.1.1.254 5、连通性测试PC1 tracer 24.1.1.4trace to 24.1.1.4, 8 hops max, press Ctrl+C to

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 中学教育 > 职业教育

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号