111121 - redistribute & access-list
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname
% Incomplete command.
Router(config)#hostname HQ
HQ(config)#
HQ(config)#enable password ccna
HQ(config)#no ip domain lookup
HQ(config)#line con 0
HQ(config-line)#exec-timeout 0 0
HQ(config-line)#logging synchronous
HQ(config-line)#line vty 0 4
HQ(config-line)#password cisco
HQ(config-line)#login
HQ(config-line)#interface loopback1
%LINK-5-CHANGED: Interface Loopback1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback1, changed state to up
HQ(config-if)#
HQ(config-if)# ip address 1.1.1.1 255.255.255.255
HQ(config-if)#interface s1/0
HQ(config-if)#ip address 10.1.20.5 255.255.255.248
HQ(config-if)#clock rate 1000000
HQ(config-if)#no shutdown
%LINK-5-CHANGED: Interface Serial1/0, changed state to down
HQ(config-if)#interface s1/1
HQ(config-if)#ip address 10.1.30.5 255.255.255.248
HQ(config-if)#clock rate 1000000
HQ(config-if)#no shutdown
%LINK-5-CHANGED: Interface Serial1/1, changed state to down
HQ(config-if)#
%LINK-5-CHANGED: Interface Serial1/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to up
HQ(config-if)#
%LINK-5-CHANGED: Interface Serial1/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/1, changed state to up
HQ(config-if)#
HQ(config-router)#do show ip route eigrp
10.0.0.0/29 is subnetted, 4 subnets
D 10.1.34.0 [90/21024000] via 10.1.30.3, 00:01:45, Serial1/1
172.16.0.0/16 is variably subnetted, 4 subnets, 2 masks
D 172.16.30.0/24 [90/20640000] via 10.1.30.3, 00:01:33, Serial1/1
D 172.16.40.0/24 [90/21152000] via 10.1.30.3, 00:00:48, Serial1/1
HQ(config-router)#do show ip route ospf
10.0.0.0/29 is subnetted, 4 subnets
O 10.1.12.0 [110/845] via 10.1.20.2, 00:04:24, Serial1/0
172.16.0.0/16 is variably subnetted, 4 subnets, 2 masks
O 172.16.10.0 [110/846] via 10.1.20.2, 00:04:24, Serial1/0
O 172.16.20.1 [110/782] via 10.1.20.2, 00:03:42, Serial1/0
HQ(config-router)#
R1(config)#router ospf 1
R1(config-router)#network 10.1.12.0 0.0.0.7 area 0
R1(config-router)#network 172.16.10.0 0.0.0.255 area 0
R1(config-router)#
00:26:57: %OSPF-5-ADJCHG: Process 1, Nbr 172.16.20.1 on Serial1/1 from LOADING to FULL, Loading Done
R1(config-router)#do show ip route ospf
10.0.0.0/29 is subnetted, 2 subnets
O 10.1.20.0 [110/128] via 10.1.12.2, 00:09:23, Serial1/1
172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
O 172.16.20.1 [110/65] via 10.1.12.2, 00:08:46, Serial1/1
R1(config-router)#
R1#
%SYS-5-CONFIG_I: Configured from console by console
R1#
R3(config)#router eigrp 1
R3(config-router)#network 10.1.30.0 0.0.0.7
R3(config-router)#
%DUAL-5-NBRCHANGE: IP-EIGRP 1: Neighbor 10.1.30.5 (Serial1/0) is up: new adjacency
R3(config-router)#network 10.1.34.0 0.0.0.7
R3(config-router)#no auto-summary
R3(config-router)#
%DUAL-5-NBRCHANGE: IP-EIGRP 1: Neighbor 10.1.30.5 (Serial1/0) is up: new adjacency
R3(config-router)#network 172.16.30.0 0.0.0.255
R3(config-router)#no auto-summary
R3(config-router)#
%DUAL-5-NBRCHANGE: IP-EIGRP 1: Neighbor 10.1.34.4 (Serial1/1) is up: new adjacency
R3(config-router)#
%DUAL-5-NBRCHANGE: IP-EIGRP 1: Neighbor 10.1.34.4 (Serial1/1) is down: Interface Goodbye received
%DUAL-5-NBRCHANGE: IP-EIGRP 1: Neighbor 10.1.34.4 (Serial1/1) is up: new adjacency
R3(config-router)#
R3(config-router)#
R3(config-router)#
R3(config-router)#
R3(config-router)#do show ip route eigrp
172.16.0.0/24 is subnetted, 2 subnets
D 172.16.40.0 [90/20640000] via 10.1.34.4, 00:04:07, Serial1/1
R3(config-router)#
R3#
%SYS-5-CONFIG_I: Configured from console by console
R3#
##hq설정##
conf t
router ospf 1
network 10.1.20.0 0.0.0.7 area 0
router eigrp 1
no auto-summary
network 10.1.30.0. 0.0.0.7
end
r1,r2,r3,r4는 하나의 프로토콜만 하면 되니깐 편하다
r1의 경우는 r2랑 연결되어 있으니 옆에꺼만..근데 이건 루프백 아니었는데
R1(config)#router ospf 1
R1(config-router)#network 10.1.12.0 0.0.0.7 area 0
R1(config-router)#network 172.16.10.0 0.0.0.255 area 0
R1(config-router)#
R2(config)#router ospf 1
R2(config-router)#network 10.1.12.0 0.0.0.7 area 0
R2(config-router)#network 10.1.20.0 0.0.
00:26:56: %OSPF-5-ADJCHG: Process 1, Nbr 172.16.10.254 on Serial1/1 from LOADING to FULL, Loading Done
0
R2(config-router)#network 10.1.20.0 0.0.0.7 area 0
R2(config-router)#network 172.16.20
00:27:02: %OSPF-5-ADJCHG: Process 1, Nbr 1.1.1.1 on Serial1/0 from LOADING to FULL, Loading Done
.
R2(config-router)#network 172.16.20.0 0.0.0.255 area 0
R2(config-router)#
R3(config)#router eigrp 1
R3(config-router)#network 10.1.30.0 0.0.0.7
R3(config-router)#
%DUAL-5-NBRCHANGE: IP-EIGRP 1: Neighbor 10.1.30.5 (Serial1/0) is up: new adjacency
R3(config-router)#network 10.1.34.0 0.0.0.7
R3(config-router)#no auto-summary
R3(config-router)#
%DUAL-5-NBRCHANGE: IP-EIGRP 1: Neighbor 10.1.30.5 (Serial1/0) is up: new adjacency
R3(config-router)#network 172.16.30.0 0.0.0.255
R3(config-router)#no auto-summary
R3(config-router)#
이게 존나 헷갈리는게
do show ip route eigrp 하면 지가 연결된거는 안보이고 딴데의 루프백이나 네트워크가 보이는건가
헷갈리