PG1X WIKI

My Knowledge Base

User Tools

Site Tools


tech:network:cisco:glbp:glbp

This is an old revision of the document!


GLBP

  • ASW1
en
conf t
!
vlan 10
exit
!
int range f0/1 - 2
switchport mode access
switchport access vlan 10
no shut
exit
int f0/8
switchport mode access
switchport access vlan 10
spanning-tree portfast
no shut
exit
int gig0/1
switchport mode access
switchport access vlan 10
spanning-tree portfast
no shut
exit
!
end
  • ASW2
en
conf t
!
vlan 2
exit
!
int range f0/1 - 2
switchport mode access
switchport access vlan 2
spanning-tree portfast
no shut
exit
int gig0/1
switchport mode access
switchport access vlan 2
spanning-tree portfast
no shut
exit
!
end
  • ASW3

As a simple IP terminal.

en
conf t
!
no cdp run
no spanning-tree vlan 1-4094
spanning-tree portfast default
!
int vlan 1
ip addr 172.16.10.121 255.255.255.0
no shut
exit
!
ip default-gateway 172.16.10.254
!
end
  • SW1
en
conf t
!
ip routing
!
vlan 3,10
exit
!
int vlan 3
ip address 172.16.3.1 255.255.255.0
no shut
exit
int vlan 10
ip address 172.16.10.1 255.255.255.0
glbp 10 ip 172.16.10.254
glbp 10 priority 105
glbp 10 preempt
no shut
exit
int f1/0/1
switchport mode access
switchport access vlan 10
no shut
exit
int f1/0/2
switchport mode access
switchport access vlan 3
no shut
exit
!
router ospf 1
network 172.16.0.0 0.0.255.255 area 0
exit
!
end
  • SW2
en
conf t
!
ip routing
!
vlan 4,10
exit
!
int vlan 10
ip address 172.16.10.2 255.255.255.0
glbp 10 ip 172.16.10.254
glbp 10 preempt
no shut
exit
int vlan 4
ip address 172.16.4.2 255.255.255.0
no shut
exit
int f1/0/1
switchport mode access
switchport access vlan 10
no shut
exit
int f1/0/2
switchport mode access
switchport access vlan 4
no shut
exit
!
router ospf 1
network 172.16.0.0 0.0.255.255 area 0
exit
!
end
  • R1
en
conf t
!
int f0/0
ip address 172.16.3.3 255.255.255.0
no shut
exit
int f0/1
ip address 172.16.2.3 255.255.255.0
glbp 2 ip 172.16.2.254
glbp 2 preempt
no shut
exit
!
router ospf 1
network 172.16.0.0 0.0.255.255 area 0
exit
!
end
  • R2
en
conf t
!
int f0/0
ip address 172.16.4.4 255.255.255.0
no shut
exit
int f0/1
ip address 172.16.2.4 255.255.255.0
glbp 2 ip 172.16.2.254
glbp 2 preempt
no shut
exit
!
router ospf 1
network 172.16.0.0 0.0.255.255 area 0
exit
!
end
  • PC1
route delete 172.16.0.0 mask 255.255.0.0 172.16.10.1 metric 1 if 25
route add 172.16.0.0 mask 255.255.0.0 172.16.10.254 metric 1 if 25
  • PC2
sudo ip route del 172.16.0.0/16 via 172.16.2.3
sudo ip route add 172.16.0.0/16 via 172.16.2.254
SW1#
*Mar  1 02:14:30.318: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to down
*Mar  1 02:14:30.453: %SYS-5-CONFIG_I: Configured from console by console
SW1#
*Mar  1 02:15:21.883: %LINK-3-UPDOWN: Interface FastEthernet1/0/2, changed state to up
*Mar  1 02:15:22.890: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0/2, changed state to up
SW1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
SW1(config)#int f1
*Mar  1 02:15:49.909: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan3, changed state to up
SW1(config)#int f1/0/2
SW1(config-if)#int f0/1
                    ^
% Invalid input detected at '^' marker.

SW1(config)#int f1/0/2
SW1(config-if)#int vlan 10
SW1(config-if)#
*Mar  1 02:16:24.286: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan10, changed state to up
SW1(config-if)#
*Mar  1 02:16:30.091: %OSPF-5-ADJCHG: Process 1, Nbr 172.16.3.3 on Vlan3 from LOADING to FULL, Loading Done
SW1(config-if)#ip addr
SW1(config-if)#ip address 172.16.10.254 255.255.255.0
SW1(config-if)#glb
SW1(config-if)#glbp 10
SW1(config-if)#glbp 10 ip
SW1(config-if)#glbp 10 ip 172.16.10.254
%GLBP is not supported by the switch stack

SW1(config-if)#

Catalyst 3750 platform not supported GLBP.

redesign.








References

tech/network/cisco/glbp/glbp.1537693290.txt.gz · Last modified: 2018/09/23 18:01 by wnoguchi