2 ospf implements ecmp – PLANET XGS3-24040 User Manual

Page 345

Advertising
background image

Chapter 42 ECMP Configuration

42-3

42.3.2 OSPF Implements ECMP

R1 configuration:

R1(config)#interface Vlan100

R1(Config-if-Vlan100)# ip address 100.1.1.1 255.255.255.0

R1(config)#interface Vlan200

R1(Config-if-Vlan200)# ip address 100.1.2.1 255.255.255.0

R1(config)#interface loopback 1

R1(Config-if-loopback1)# ip address 1.1.1.1 255.255.255.255

R1(config)#router ospf 1

R1(config-router)# ospf router-id 1.1.1.1

R1(config-router)# network 100.1.1.0/24 area 0

R1(config-router)# network 100.1.2.0/24 area 0

R2 configuration:

R2(config)#interface Vlan100

R2(Config-if-Vlan100)# ip address 100.1.1.2 255.255.255.0

R2(config)#interface Vlan200

R2(Config-if-Vlan200)# ip address 100.2.1.2 255.255.255.0

R2(config)#interface loopback 1

R2(Config-if-loopback1)# ip address 2.2.2.2 255.255.255.255

R2(config)#router ospf 1

R2(config-router)# ospf router-id 2.2.2.2

R2(config-router)# network 100.1.1.0/24 area 0

R2(config-router)# network 100.2.1.0/24 area 0

R3 configuration:

R3(config)#interface Vlan100

R3(Config-if-Vlan100)# ip address 100.1.2.2 255.255.255.0

R3(config)#interface Vlan200

R3(Config-if-Vlan200)# ip address 100.2.2.2 255.255.255.0

R3(config)#interface loopback 1

R3(Config-if-loopback1)# ip address 3.3.3.3 255.255.255.255

R3(config)#router ospf 1

R3(config-router)# ospf router-id 3.3.3.3

R3(config-router)# network 100.1.2.0/24 area 0

R3(config-router)# network 100.2.2.0/24 area 0

Advertising