アットウィキロゴ

My Virtual Labs > BSCI > OSPF Broadcast


構成

構成図


netファイル

####################################
#
# Define global router parameters 
#
####################################

autostart = False
[localhost:7200]
    
    workingdir = C:\[[My Virtual Labs]]\working
    
    [[3640]]
        image = C:\My Virtual Labs\images\c3640-js-mz.122-8.T.extracted.bin
        idlepc = 0x603c4c50
        ram = 128
        disk0 = 0
        disk1 = 0
        #mmap = true
        mmap = false
        #ghostios = false
        ghostios = true
        #sparsemem = false
        sparsemem = true
    
    ###########################
    #
    # Define router instances
    #
    ###########################
    
    [[Router TermServ]]
        model = 3640
        console = 2000
        autostart = False
        slot0 = NM-4E
        slot1 = NM-4T
        S1/1 = FRSW 21
        E0/0 = SW F0/11
        E0/3 = NIO_gen_eth:\Device\NPF_{0A0621CF-3680-4D5E-B371-681A62C2285E}
        cnfg = C:\My Virtual Labs\★CCNP\BSCI\Frame-Relay\initial.configs\TermServ.txt
    
    
    [[Router R1]]
        model = 3640
        console = 2001
        autostart = False
        slot0 = NM-1FE-TX
        slot1 = NM-4T
        F0/0 = SW F0/1
        S1/0 = FRSW 1
        cnfg = C:\My Virtual Labs\★CCNP\BSCI\Frame-Relay\initial.configs\default.config.txt
    
    [[Router R2]]
        model = 3640
        console = 2002
        autostart = False
        slot0 = NM-1FE-TX
        slot1 = NM-4T
        F0/0 = SW F0/2
        S1/0 = FRSW 2
        cnfg = C:\My Virtual Labs\★CCNP\BSCI\Frame-Relay\initial.configs\default.config.txt
    
    [[Router R3]]
        model = 3640
        console = 2003
        autostart = False
        slot0 = NM-4E
        slot1 = NM-4T
        S1/0 = FRSW 3
        S1/1 = FRSW 13
        S1/2 = R1 S1/1
        S1/3 = R2 S1/1
        E0/0 = SW F0/3
        cnfg = C:\My Virtual Labs\★CCNP\BSCI\Frame-Relay\initial.configs\default.config.txt
    
    [[Router R4]]
        model = 3640
        console = 2004
        autostart = False
        slot0 = NM-4E
        slot1 = NM-4T
        E0/0 = SW F0/4
        S1/0 = FRSW 4
        S1/1 = R5 S1/1
        cnfg = C:\My Virtual Labs\★CCNP\BSCI\Frame-Relay\initial.configs\default.config.txt
    
    [[Router R5]]
        model = 3640
        console = 2005
        autostart = False
        slot0 = NM-4E
        slot1 = NM-4T
        E0/0 = SW F0/5
        S1/0 = FRSW 5
        cnfg = C:\My Virtual Labs\★CCNP\BSCI\Frame-Relay\initial.configs\default.config.txt
    
    [[Router R6]]
        model = 3640
        console = 2006
        autostart = False
        slot0 = NM-4E
        slot1 = NM-4T
        E0/0 = SW F0/6
        S1/0 = FRSW 6
        cnfg = C:\My Virtual Labs\★CCNP\BSCI\Frame-Relay\initial.configs\default.config.txt

    [[Router SW]]
        model = 3640
        console = 2007
        autostart = False
        slot0 = NM-16ESW
        cnfg = C:\My Virtual Labs\★CCNP\BSCI\Frame-Relay\initial.configs\Switch.txt
        F0/12 = NIO_gen_eth:\Device\NPF_{0A0621CF-3680-4D5E-B371-681A62C2285E}


    [[FRSW FRSW]]
        
        # R1 to FRSW
        1:102 = 2:201
        1:103 = 3:301
        1:113 = 13:311
        1:104 = 4:401
        1:105 = 5:501
        
        # R2 to FRSW
        2:203 = 3:302
        2:213 = 13:312
        2:204 = 4:402
        2:205 = 5:502
        
        # R3 to FRSW
        3:304 = 4:403
        3:305 = 5:503
        13:314 = 4:413
        13:315 = 5:513
        
        # R4 to FRSW
        4:405 = 5:504
        
        # R6 to FRSW
        6:51 = 21:51
        6:100 = 21:100
        6:101 = 21:101
        6:201 = 21:201
        6:301 = 21:301
        6:401 = 21:401

設定内容

R1

R1#sh run
Building configuration...

Current configuration : 1428 bytes
!
version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname R1
!
!
ip subnet-zero
!
!
no ip domain-lookup
!
!
!
!
!
!
!
!
fax interface-type fax-mail
mta receive maximum-recipients 0
!
!
!
!
interface Loopback0
 ip address 1.1.1.1 255.0.0.0
!
interface FastEthernet0/0
 no ip address
 shutdown
 duplex auto
 speed auto
!
interface Serial1/0
 ip address 10.1.123.1 255.0.0.0
 encapsulation frame-relay
 ip ospf network broadcast
 serial restart_delay 0
 frame-relay map ip 10.1.123.2 102 broadcast
 frame-relay map ip 10.1.123.3 103 broadcast
 no frame-relay inverse-arp
!
interface Serial1/1
 no ip address
 shutdown
 serial restart_delay 0
!
interface Serial1/2
 no ip address
 shutdown
 serial restart_delay 0
!
interface Serial1/3
 no ip address
 shutdown
 serial restart_delay 0
!
router ospf 1
 log-adjacency-changes
 network 0.0.0.0 255.255.255.255 area 0
!
ip classless
no ip http server
ip pim bidir-enable
!
!
!
!
call rsvp-sync
!
!
mgcp profile default
!
dial-peer cor custom
!
!
!
alias exec s show ip interface brief
alias exec sr show ip route
alias exec r show running-config
alias exec sen show ip eigrp neighbor
alias exec set show ip eigrp topology
alias exec son show ip ospf neighbor
alias exec soi show ip ospf interface
!
line con 0
 exec-timeout 0 0
 privilege level 15
 logging synchronous
line aux 0
line vty 0 4
 password cisco
 login
!
!
end

R2

R2#sh run
Building configuration...

Current configuration : 1418 bytes
!
version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname R2
!
!
ip subnet-zero
!
!
no ip domain-lookup
!
!
!
!
!
!
!
!
fax interface-type fax-mail
mta receive maximum-recipients 0
!
!
!
!
interface Loopback0
 ip address 2.2.2.2 255.0.0.0
!
interface FastEthernet0/0
 no ip address
 shutdown
 duplex auto
 speed auto
!
interface Serial1/0
 ip address 10.1.123.2 255.0.0.0
 encapsulation frame-relay
 ip ospf network broadcast
 serial restart_delay 0
 frame-relay map ip 10.1.123.1 201 broadcast
 frame-relay map ip 10.1.123.3 201
 no frame-relay inverse-arp
!
interface Serial1/1
 no ip address
 shutdown
 serial restart_delay 0
!
interface Serial1/2
 no ip address
 shutdown
 serial restart_delay 0
!
interface Serial1/3
 no ip address
 shutdown
 serial restart_delay 0
!
router ospf 1
 log-adjacency-changes
 network 0.0.0.0 255.255.255.255 area 0
!
ip classless
no ip http server
ip pim bidir-enable
!
!
!
!
call rsvp-sync
!
!
mgcp profile default
!
dial-peer cor custom
!
!
!
alias exec s show ip interface brief
alias exec sr show ip route
alias exec r show running-config
alias exec sen show ip eigrp neighbor
alias exec set show ip eigrp topology
alias exec son show ip ospf neighbor
alias exec soi show ip ospf interface
!
line con 0
 exec-timeout 0 0
 privilege level 15
 logging synchronous
line aux 0
line vty 0 4
 password cisco
 login
!
!
end

R3

R3#sh run
Building configuration...

Current configuration : 1588 bytes
!
version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname R3
!
!
ip subnet-zero
!
!
no ip domain-lookup
!
!
!
!
!
!
!
!
fax interface-type fax-mail
mta receive maximum-recipients 0
!
!
!
!
interface Loopback0
 ip address 3.3.3.3 255.0.0.0
!
interface Ethernet0/0
 no ip address
 shutdown
 half-duplex
!
interface Ethernet0/1
 no ip address
 shutdown
 half-duplex
!
interface Ethernet0/2
 no ip address
 shutdown
 half-duplex
!
interface Ethernet0/3
 no ip address
 shutdown
 half-duplex
!
interface Serial1/0
 ip address 10.1.123.3 255.0.0.0
 encapsulation frame-relay
 ip ospf network broadcast
 serial restart_delay 0
 frame-relay map ip 10.1.123.1 301 broadcast
 frame-relay map ip 10.1.123.2 301
 no frame-relay inverse-arp
!
interface Serial1/1
 no ip address
 shutdown
 serial restart_delay 0
!
interface Serial1/2
 no ip address
 shutdown
 serial restart_delay 0
!
interface Serial1/3
 no ip address
 shutdown
 serial restart_delay 0
!
router ospf 1
 log-adjacency-changes
 network 0.0.0.0 255.255.255.255 area 0
!
ip classless
no ip http server
ip pim bidir-enable
!
!
!
!
call rsvp-sync
!
!
mgcp profile default
!
dial-peer cor custom
!
!
!
alias exec s show ip interface brief
alias exec sr show ip route
alias exec r show running-config
alias exec sen show ip eigrp neighbor
alias exec set show ip eigrp topology
alias exec son show ip ospf neighbor
alias exec soi show ip ospf interface
!
line con 0
 exec-timeout 0 0
 privilege level 15
 logging synchronous
line aux 0
line vty 0 4
 password cisco
 login
!
!
end

設定確認

show frame-relay map

  • R1
R1#sh frame-relay map
Serial1/0 (up): ip 10.1.123.2 dlci 102(0x66,0x1860), static,
              broadcast,
              CISCO, status defined, active
Serial1/0 (up): ip 10.1.123.3 dlci 103(0x67,0x1870), static,
              broadcast,
              CISCO, status defined, active
  • R2
R2#sh frame-relay map
Serial1/0 (up): ip 10.1.123.1 dlci 201(0xC9,0x3090), static,
              broadcast,
              CISCO, status defined, active
Serial1/0 (up): ip 10.1.123.3 dlci 201(0xC9,0x3090), static,
              CISCO, status defined, active
  • R3
R3#sh frame-relay map
Serial1/0 (up): ip 10.1.123.1 dlci 301(0x12D,0x48D0), static,
              broadcast,
              CISCO, status defined, active
Serial1/0 (up): ip 10.1.123.2 dlci 301(0x12D,0x48D0), static,
              CISCO, status defined, active

show ip route

  • R1
R1#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - [[OSPF]], IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

C    1.0.0.0/8 is directly connected, Loopback0
     2.0.0.0/32 is subnetted, 1 subnets
O       2.2.2.2 [110/65] via 10.1.123.2, 00:00:39, Serial1/0
     3.0.0.0/32 is subnetted, 1 subnets
O       3.3.3.3 [110/65] via 10.1.123.3, 00:00:39, Serial1/0
C    10.0.0.0/8 is directly connected, Serial1/0
  • R2
R2#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

     1.0.0.0/32 is subnetted, 1 subnets
O       1.1.1.1 [110/65] via 10.1.123.1, 00:00:42, Serial1/0
C    2.0.0.0/8 is directly connected, Loopback0
     3.0.0.0/32 is subnetted, 1 subnets
O       3.3.3.3 [110/65] via 10.1.123.3, 00:00:42, Serial1/0
C    10.0.0.0/8 is directly connected, Serial1/0
  • R3
R3#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

     1.0.0.0/32 is subnetted, 1 subnets
O       1.1.1.1 [110/65] via 10.1.123.1, 00:00:46, Serial1/0
     2.0.0.0/32 is subnetted, 1 subnets
O       2.2.2.2 [110/65] via 10.1.123.2, 00:00:46, Serial1/0
C    3.0.0.0/8 is directly connected, Loopback0
C    10.0.0.0/8 is directly connected, Serial1/0

show ip ospf neighbor

  • R1
R1#sh ip ospf neighbor

Neighbor ID     Pri   State           Dead Time   Address         Interface
3.3.3.3           1   FULL/BDR        00:00:39    10.1.123.3      Serial1/0
2.2.2.2           1   FULL/DROTHER    00:00:36    10.1.123.2      Serial1/0
  • R2
R2#sh ip ospf neighbor

Neighbor ID     Pri   State           Dead Time   Address         Interface
1.1.1.1           1   FULL/DR         00:00:39    10.1.123.1      Serial1/0
  • R3
R3#sh ip ospf neighbor

Neighbor ID     Pri   State           Dead Time   Address         Interface
1.1.1.1           1   FULL/DR         00:00:34    10.1.123.1      Serial1/0

show ip ospf interface

  • R1
R1#sh ip ospf interface
Loopback0 is up, line protocol is up
  Internet Address 1.1.1.1/8, Area 0
  Process ID 1, Router ID 1.1.1.1, Network Type LOOPBACK, Cost: 1
  Loopback interface is treated as a stub Host
Serial1/0 is up, line protocol is up
  Internet Address 10.1.123.1/8, Area 0
  Process ID 1, Router ID 1.1.1.1, Network Type BROADCAST, Cost: 64
  Transmit Delay is 1 sec, State DR, Priority 1
  Designated Router (ID) 1.1.1.1, Interface address 10.1.123.1
  Backup Designated router (ID) 3.3.3.3, Interface address 10.1.123.3
  Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
    Hello due in 00:00:08
  Index 1/1, flood queue length 0
  Next 0x0(0)/0x0(0)
  Last flood scan length is 0, maximum is 1
  Last flood scan time is 0 msec, maximum is 0 msec
  Neighbor Count is 2, Adjacent neighbor count is 2
    Adjacent with neighbor 3.3.3.3  (Backup Designated Router)
    Adjacent with neighbor 2.2.2.2
  Suppress hello for 0 neighbor(s)
  • R2
R2#sh ip ospf interface
Loopback0 is up, line protocol is up
  Internet Address 2.2.2.2/8, Area 0
  Process ID 1, Router ID 2.2.2.2, Network Type LOOPBACK, Cost: 1
  Loopback interface is treated as a stub Host
Serial1/0 is up, line protocol is up
  Internet Address 10.1.123.2/8, Area 0
  Process ID 1, Router ID 2.2.2.2, Network Type BROADCAST, Cost: 64
  Transmit Delay is 1 sec, State BDR, Priority 1
  Designated Router (ID) 1.1.1.1, Interface address 10.1.123.1
  Backup Designated router (ID) 2.2.2.2, Interface address 10.1.123.2
  Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
    Hello due in 00:00:04
  Index 1/1, flood queue length 0
  Next 0x0(0)/0x0(0)
  Last flood scan length is 1, maximum is 1
  Last flood scan time is 0 msec, maximum is 0 msec
  Neighbor Count is 1, Adjacent neighbor count is 1
    Adjacent with neighbor 1.1.1.1  (Designated Router)
  Suppress hello for 0 neighbor(s)
  • R3
最終更新:2010年11月28日 16:46
添付ファイル