본문 바로가기

업무이야기/Network

Cisco OSPF Basic

by 쫑콩아빠 2023. 7. 26.
728x90

SW1#show running-config
Building configuration...
Current configuration : 2057 bytes
!
version 16.3.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname SW1
!
no ip cef
ip routing
!
no ipv6 cef
!no ip domain-lookup
!
spanning-tree mode pvst
!
interface GigabitEthernet1/0/1
switchport access vlan 12
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet1/0/2
switchport access vlan 13
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet1/0/3
switchport access vlan 70
switchport mode access
spanning-tree portfast
!
interface Vlan1
no ip address
shutdown
!
interface Vlan12
mac-address 00e0.a364.8001
ip address 7.7.12.254 255.255.255.0
!
interface Vlan13
mac-address 00e0.a364.8002
ip address 7.7.13.254 255.255.255.0
!
interface Vlan70
mac-address 00e0.a364.8003
ip address 7.7.7.1 255.255.255.0
!
router ospf 1
log-adjacency-changes
network 7.7.7.0 0.0.0.255 area 0
network 7.7.12.0 0.0.0.255 area 0
network 7.7.13.0 0.0.0.255 area 0
default-information originate
!
ip classless
ip route 0.0.0.0 0.0.0.0 7.7.7.254
!
ip flow-export version 9
line con 0
!
line aux 0
!
line vty 0 4
login
!
end
==================================================================================
SW2#show running-config
Building configuration...
Current configuration : 1990 bytes
!
version 16.3.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname SW2
!
no ip cef
ip routing
!
no ipv6 cef
!
no ip domain-lookup
!
spanning-tree mode pvst
!
interface GigabitEthernet1/0/1
switchport access vlan 12
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet1/0/2
switchport access vlan 24
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet1/0/3
switchport access vlan 23
switchport mode access
spanning-tree portfast
!
interface Vlan1
no ip address
shutdown
!
interface Vlan12
mac-address 00d0.d33a.8301
ip address 7.7.12.1 255.255.255.0
!
interface Vlan23
mac-address 00d0.d33a.8302
ip address 7.7.23.1 255.255.255.0
!
interface Vlan24
mac-address 00d0.d33a.8303
ip address 7.7.24.254 255.255.255.0
!
router ospf 1
log-adjacency-changes
network 7.7.12.0 0.0.0.255 area 0
network 7.7.24.0 0.0.0.255 area 0
network 7.7.23.0 0.0.0.255 area 0
!
ip classless
!
ip flow-export version 9
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
end
==================================================================================
SW3#show running-config
Building configuration...
Current configuration : 1990 bytes
!
version 16.3.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname SW3
!
no ip cef
ip routing
!
no ipv6 cef
!
no ip domain-lookup
!
spanning-tree mode pvst
!
interface GigabitEthernet1/0/1
switchport access vlan 13
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet1/0/2
switchport access vlan 35
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet1/0/3
switchport access vlan 23
switchport mode access
spanning-tree portfast
!
interface Vlan1
no ip address
shutdown
!
interface Vlan13
mac-address 0060.2f0d.7c01
ip address 7.7.13.1 255.255.255.0
!
interface Vlan23
mac-address 0060.2f0d.7c02
ip address 7.7.23.2 255.255.255.0
!
interface Vlan35
mac-address 0060.2f0d.7c03
ip address 7.7.35.254 255.255.255.0
!
router ospf 1
log-adjacency-changes
network 7.7.13.0 0.0.0.255 area 0
network 7.7.23.0 0.0.0.255 area 0
network 7.7.35.0 0.0.0.255 area 0
!
ip classless
!
ip flow-export version 9
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
end
==================================================================================
SW4#show running-config
Building configuration...
Current configuration : 1990 bytes
!
version 16.3.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname SW4
!
no ip cef
ip routing
!
no ipv6 cef
!
no ip domain-lookup
!
spanning-tree mode pvst
!
interface GigabitEthernet1/0/1
switchport access vlan 24
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet1/0/2
switchport access vlan 46
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet1/0/3
switchport access vlan 45
switchport mode access
spanning-tree portfast
!
interface Vlan1
no ip address
shutdown
!
interface Vlan24
mac-address 0090.0c39.3c01
ip address 7.7.24.1 255.255.255.0
!
interface Vlan45
mac-address 0090.0c39.3c02
ip address 7.7.45.1 255.255.255.0
!
interface Vlan46
mac-address 0090.0c39.3c03
ip address 7.7.46.254 255.255.255.0
!
router ospf 1
log-adjacency-changes
network 7.7.24.0 0.0.0.255 area 0
network 7.7.46.0 0.0.0.255 area 0
network 7.7.45.0 0.0.0.255 area 0
!
ip classless
!
ip flow-export version 9
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
end
==================================================================================
SW5#show running-config
Building configuration...
Current configuration : 1990 bytes
!
version 16.3.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname SW5
!
no ip cef
ip routing
!
no ipv6 cef
!
no ip domain-lookup
!
spanning-tree mode pvst
!
interface GigabitEthernet1/0/1
switchport access vlan 35
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet1/0/2
switchport access vlan 56
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet1/0/3
switchport access vlan 45
switchport mode access
spanning-tree portfast
!
interface Vlan1
no ip address
shutdown
!
interface Vlan35
mac-address 000b.be12.9401
ip address 7.7.35.1 255.255.255.0
!
interface Vlan45
mac-address 000b.be12.9402
ip address 7.7.45.2 255.255.255.0
!
interface Vlan56
mac-address 000b.be12.9403
ip address 7.7.56.254 255.255.255.0
!
router ospf 1
log-adjacency-changes
network 7.7.35.0 0.0.0.255 area 0
network 7.7.45.0 0.0.0.255 area 0
network 7.7.56.0 0.0.0.255 area 0
!
ip classless
!
ip flow-export version 9
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
end
==================================================================================
SW6#show running-config
Building configuration...
Current configuration : 1988 bytes
!
version 16.3.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname SW6
!
no ip cef
ip routing
!
no ipv6 cef
!
no ip domain-lookup
!
spanning-tree mode pvst
!
interface GigabitEthernet1/0/1
switchport access vlan 46
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet1/0/2
switchport access vlan 56
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet1/0/3
switchport access vlan 80
switchport mode access
spanning-tree portfast
!
interface Vlan1
no ip address
shutdown
!
interface Vlan46
mac-address 0001.97cd.4801
ip address 7.7.46.1 255.255.255.0
!
interface Vlan56
mac-address 0001.97cd.4802
ip address 7.7.56.1 255.255.255.0
!
interface Vlan80
mac-address 0001.97cd.4803
ip address 7.7.8.254 255.255.255.0
!
router ospf 1
log-adjacency-changes
network 7.7.46.0 0.0.0.255 area 0
network 7.7.56.0 0.0.0.255 area 0
network 7.7.8.0 0.0.0.255 area 0
!
ip classless
!
ip flow-export version 9
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
end

728x90

'업무이야기 > Network' 카테고리의 다른 글

Cisco Nexus 4500 시리즈 초기화  (3) 2024.10.23
Cisco Nexus 3000 시리즈 초기화  (4) 2024.10.23
Wireshark Filter  (0) 2023.07.06
Juniper EX2200 이중화  (1) 2023.05.02
Juniper Switch Virtual-Chassis (STACK)  (0) 2023.05.02