Содержимое базы данных vlan
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/3, Fa0/4, Fa0/5, Fa0/6
Fa0/7, Fa0/8, Fa0/9, Fa0/10
Fa0/11, Fa0/12, Fa0/13, Fa0/14
Fa0/15, Fa0/16, Fa0/17, Fa0/18
Fa0/19, Fa0/20, Fa0/21, Fa0/22
Fa0/23
2 Management active
11 1Otdel active
13 3Otdel active
17 7Otdel active
18 8Otdel active
100 native active
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup
Второй коммутатор уровня ядра конфигурируется аналогично с соответствующими ему ip-адресом management vlan, адресом шлюза по умолчанию, именем vtp-домена и именами vlan.
Конфигурация маршрутизатора ospf
Building configuration...
Current configuration : 3188 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
service password-encryption
!
hostname 3.7.1.8-rtmain
!
!
!
enable password 7 08701E1D
!
!
ip dhcp excluded-address 172.16.0.1
ip dhcp excluded-address 172.16.0.129
ip dhcp excluded-address 172.16.1.1
!
ip dhcp pool 3otdel
network 172.16.0.0 255.255.255.128
default-router 172.16.0.1
dns-server 172.16.0.1
ip dhcp pool 7otdel
network 172.16.0.128 255.255.255.128
default-router 172.16.0.129
dns-server 172.16.0.129
ip dhcp pool 1otdel
network 172.16.1.0 255.255.255.128
default-router 172.16.1.1
dns-server 172.16.1.1
!
!
!
!
!
!
!
no ip domain-lookup
!
!
spanning-tree mode pvst
!
!
!
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
!
interface FastEthernet0/0.2
description management
encapsulation dot1Q 2
ip address 172.16.3.24 255.255.255.224
!
interface FastEthernet0/0.11
description 1Otdel
encapsulation dot1Q 11
ip address 172.16.1.1 255.255.255.128
ip access-group 1 out
!
interface FastEthernet0/0.13
description 3Otdel
encapsulation dot1Q 13
ip address 172.16.0.1 255.255.255.128
ip access-group 3 out
!
interface FastEthernet0/0.17
description 7Otdel
encapsulation dot1Q 17
ip address 172.16.0.129 255.255.255.128
ip access-group 7 out
!
interface FastEthernet0/0.18
description 8Otdel
encapsulation dot1Q 18
ip address 172.16.1.129 255.255.255.128
ip access-group 8 out
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
interface Serial0/0/0
ip address 172.16.4.1 255.255.255.252
!
interface Serial0/0/1
no ip address
clock rate 2000000
shutdown
!
interface Vlan1
no ip address
shutdown
!
router ospf 100
log-adjacency-changes
redistribute rip subnets
network 172.16.0.0 0.0.0.127 area 0
network 172.16.0.128 0.0.0.127 area 0
network 172.16.1.0 0.0.0.127 area 0
network 172.16.1.128 0.0.0.127 area 0
network 172.16.4.0 0.0.0.3 area 0
network 172.16.3.0 0.0.0.31 area 0
!
ip classless
!
!
ip access-list standard telnet
permit 172.16.3.0 0.0.0.63
deny any
access-list 1 deny 172.16.2.192 0.0.0.31
access-list 1 deny 172.16.0.0 0.0.0.127
access-list 1 deny 172.16.2.64 0.0.0.63
access-list 1 deny 172.16.2.0 0.0.0.63
access-list 1 deny 172.16.2.128 0.0.0.63
access-list 1 deny 172.16.0.128 0.0.0.127
access-list 1 deny 172.16.1.128 0.0.0.127
access-list 1 permit any
access-list 3 deny 172.16.1.0 0.0.0.127
access-list 3 deny 172.16.2.192 0.0.0.31
access-list 3 permit any
access-list 7 deny 172.16.1.0 0.0.0.127
access-list 7 deny 172.16.2.192 0.0.0.31
access-list 7 deny 172.16.2.64 0.0.0.63
access-list 7 deny 172.16.2.0 0.0.0.63
access-list 7 deny 172.16.2.128 0.0.0.63
access-list 7 deny 172.16.1.128 0.0.0.127
access-list 7 permit any
access-list 8 deny 172.16.1.0 0.0.0.127
access-list 8 deny 172.16.2.192 0.0.0.31
access-list 8 deny 172.16.2.64 0.0.0.63
access-list 8 deny 172.16.2.0 0.0.0.63
access-list 8 deny 172.16.2.128 0.0.0.63
access-list 8 deny 172.16.0.128 0.0.0.127
access-list 8 permit any
!
!
!
!
!
line con 0
line vty 0 4
access-class telnet in
password 7 08701E1D5D4C53
login
line vty 5 15
access-class telnet in
password 7 08701E1D5D4C53
login
!
!
!
end
Таблица маршрутизации роутера OSPF
172.16.0.0/16 is variably subnetted, 12 subnets, 5 masks
C 172.16.0.0/25 is directly connected, FastEthernet0/0.13
C 172.16.0.128/25 is directly connected, FastEthernet0/0.17
C 172.16.1.0/25 is directly connected, FastEthernet0/0.11
C 172.16.1.128/25 is directly connected, FastEthernet0/0.18
O E2 172.16.2.0/26 [110/3] via 172.16.4.2, 02:26:25, Serial0/0/0
O E2 172.16.2.64/26 [110/3] via 172.16.4.2, 02:26:25, Serial0/0/0
O E2 172.16.2.128/26 [110/3] via 172.16.4.2, 02:26:25, Serial0/0/0
O E2 172.16.2.192/27 [110/3] via 172.16.4.2, 02:26:25, Serial0/0/0
C 172.16.3.0/27 is directly connected, FastEthernet0/0.2
O E2 172.16.3.32/28 [110/3] via 172.16.4.2, 02:26:25, Serial0/0/0
C 172.16.4.0/30 is directly connected, Serial0/0/0
O 172.16.4.4/30 [110/128] via 172.16.4.2, 02:26:25, Serial0/0/0
O*E2 0.0.0.0/0 [110/1] via 172.16.4.2, 02:26:25, Serial0/0/0