2016年3月22日 星期二

Based Multiarea OSPF Configuration -- IPv4

簡易快速設定流程:
  1. Router 1:
      Router(config)#interface gigabitEthernet 0/0
      Router(config-if)#ip address 10.64.0.1 255.255.255.0
      Router(config-if)#ip ospf cost 10
      Router(config-if)#no shutdown
      Router(config-if)#exit
      Router(config)#router ospf 1
      Router(config-router)#network 10.64.0.0 0.0.0.255 area 0
      Router(config-router)#exit
    
  2. Router 2:
      Router(config)#interface gigabitEthernet 0/0
      Router(config-if)#ip address 10.64.0.2 255.255.255.0
      Router(config-if)#no shutdown
      Router(config-if)#exit
      Router(config)#interface gigabitEthernet 0/1
      Router(config-if)#ip address 10.2.1.2 255.255.255.0
      Router(config-if)#no shutdown
      Router(config-if)#exit
      Router(config)#router ospf 1
      Router(config-router)#network 10.64.0.0 0.0.0.255 area 0
      Router(config-router)#network 10.2.1.0 0.0.0.255 area 1
    
  3. Router 3:
      Router(config)#interface gigabitEthernet 0/1
      Router(config-if)#ip address 10.2.1.1 255.255.255.0
      Router(config-if)#ip ospf cost 10
      Router(config-if)#no shutdown
      Router(config-if)#exit
      Router(config)#router ospf 1
      Router(config-router)#network 10.2.1.0 0.0.0.255 area 1
      Router(config-router)#exit
    

2016年3月12日 星期六

HSRP & GLBP 設定範例

HSRP 設定:

Router 1 :
 interface GigabitEthernet0/0
  ip address 10.1.1.1 255.255.255.0
  duplex auto
  speed auto
 !
 interface GigabitEthernet0/1
  ip address 192.168.1.1 255.255.255.0
  duplex auto
  speed auto
  standby version 2
  standby 1 ip 192.168.1.254
  standby 1 priority 110
 !
 ip route 172.16.1.0 255.255.255.0 10.1.1.254
 !

Router 2 :
  interface GigabitEthernet0/0
   ip address 10.1.1.2 255.255.255.0
   duplex auto
   speed auto
  !
  interface GigabitEthernet0/2
   ip address 192.168.1.2 255.255.255.0
   duplex auto
   speed auto
   standby version 2
   standby 1 ip 192.168.1.254
   standby 1 priority 90
  !
  ip route 172.16.1.0 255.255.255.0 10.1.1.254
  !

Router 3 :
  interface GigabitEthernet0/0
   ip address 10.1.1.254 255.255.255.0
   duplex auto
   speed auto
  !
  interface GigabitEthernet0/1
   ip address 172.16.1.254 255.255.255.0
   duplex auto
   speed auto
  !
  ip route 192.168.1.0 255.255.255.0 10.1.1.1 
  ip route 192.168.1.0 255.255.255.0 10.1.1.2
  !

Frame Relay Switch

利用 7200 系列 Router 來模擬 Frame Relay Switch !!

基本設定如下:
當 Swtich 的 Router 設定
  R1(config)#frame-relay switching
  R1(config)#interface serial 1/1
  R1(config-if)#no ip address
  R1(config-if)#encapsulation frame-relay
  R1(config-if)#frame-relay intf-type dce
  R1(config-if)#clock rate 64000
  R1(config-if)#frame-relay route 210 interface serial 1/0 120
  R1(config-if)#exit
  R1(config)#interface serial 1/0
  R1(config-if)#no ip address
  R1(config-if)#encapsulation frame-relay
  R1(config-if)#frame-relay intf-type dce
  R1(config-if)#clock rate 64000
  R1(config-if)#frame-relay route 120 interface serial 1/1 210
  R1(config-if)#exit

當 Edge 的 Router :
  R2(config)#interface serial 3/0
  R2(config-if)#encapsulation frame-relay
  R2(config-if)#ip address 10.1.1.1 255.255.255.252
  R2(config-if)#no shutdown
  R2(config-if)#bandwidth 64
  R2(config-if)#exit