Mô hình HUB & SPOKE :
File .NET :
ghostios = True
autostart = False
[localhost]
[[2691]]
image = C:\Program Files\Dynamips\images\C2691-AD.BIN
ram = 128
[[ROUTER SG]]
model = 2691
mmap = True
s1/0 = F1 1
idlepc = 0x60ab2a14
[[ROUTER HN]]
model = 2691
mmap = True
s1/0 = F1 2
idlepc = 0x60aadd74
[[ROUTER CT]]
model = 2691
mmap = True
s1/0 = F1 3
idlepc = 0x60aadf68
[[FRSW F1]]
1:100 = 2:200
1:300 = 3:400
1. Cấu hình Hub Router sử dụng 1 Sub Interface Multipoint để giao tiếp với các Spoke Router :
Đặt IP :
SG(config)#int f0/0
SG(config-if)#ip add 192.168.1.254 255.255.255.0
SG(config-if)#no shut
SG(config-if)#exi
HN(config)#int f0/0
HN(config-if)#ip add 192.168.2.254 255.255.255.0
HN(config-if)#no shut
HN(config-if)#exi
HN(config)#
CT(config)#int f0/0
CT(config-if)#ip add 192.168.3.254 255.255.255.0
CT(config-if)#no shut
CT(config-if)#exi
CT(config)#
Cấu hình Frame Relay cho các Spoke Router :
HN(config)#int s1/0
HN(config-if)#encap fram
HN(config-if)#encap frame-relay
HN(config-if)#fram
HN(config-if)#frame-relay lmi-type ansi
HN(config-if)#ip add 200.200.200.2 255.255.255.248
HN(config-if)#fram
HN(config-if)#frame-relay map ip 200.200.200.1 200 broa
HN(config-if)#frame-relay map ip 200.200.200.1 200 broadcast
HN(config-if)#fram
HN(config-if)#frame-relay map ip 200.200.200.3 200 broa
HN(config-if)#frame-relay map ip 200.200.200.3 200 broadcast
HN(config-if)#fram
HN(config-if)#frame-relay map ip 200.200.200.2 200 broa
HN(config-if)#frame-relay map ip 200.200.200.2 200 broadcast
HN(config-if)#no shut
HN(config-if)#exi
CT(config)#int s1/0
CT(config-if)#encap
CT(config-if)#encapsulation fram
CT(config-if)#encapsulation frame-relay
CT(config-if)#fram
CT(config-if)#frame-relay lmi-type ansi
CT(config-if)#ip add 200.200.200.3 255.255.255.248
CT(config-if)#fram
CT(config-if)#frame-relay map ip 200.200.200.1 400 broa
CT(config-if)#frame-relay map ip 200.200.200.1 400 broadcast
CT(config-if)#fram
CT(config-if)#frame-relay map ip 200.200.200.2 400 broa
CT(config-if)#frame-relay map ip 200.200.200.2 400 broadcast
CT(config-if)#fram
CT(config-if)#frame-relay map ip 200.200.200.3 400 broa
CT(config-if)#frame-relay map ip 200.200.200.3 400 broadcast
CT(config-if)#no shut
CT(config-if)#exi
Cấu hình Frame Relay cho Hub Router :
Tạo 1 Sub Interface Multipoint trên Hub Router
SG(config)#int s1/0
SG(config-if)#encap
SG(config-if)#encapsulation fram
SG(config-if)#encapsulation frame-relay
SG(config-if)#fram
SG(config-if)#frame-relay lmi-type ansi
SG(config-if)#no shut
SG(config)#int s1/0.1 mul
SG(config)#int s1/0.1 multipoint
SG(config-subif)#ip add 200.200.200.1 255.255.255.248
SG(config-subif)#fram
SG(config-subif)#frame-relay map ip 200.200.200.2 100 broad
SG(config-subif)#frame-relay map ip 200.200.200.2 100 broadcast
SG(config-subif)#fram
SG(config-subif)#frame-relay map ip 200.200.200.3 300 broa
SG(config-subif)#frame-relay map ip 200.200.200.3 300 broadcast
SG(config-subif)#fram
SG(config-subif)#frame-relay map ip 200.200.200.1 100 broa
SG(config-subif)#frame-relay map ip 200.200.200.1 100 broadcast
SG(config-subif)#no shut
SG(config-subif)#exi
Cấu hình RIPv2 :
SG(config)#router rip
SG(config-router)#ver 2
SG(config-router)#net 192.168.1.0
SG(config-router)#net 200.200.200.0
SG(config-router)#no auto
SG(config-router)#exi
HN(config)#router rip
HN(config-router)#ver 2
HN(config-router)#net 192.168.2.0
HN(config-router)#net 200.200.200.0
HN(config-router)#no auto
HN(config-router)#exi
CT(config)#router rip
CT(config-router)#ver 2
CT(config-router)#net 192.168.3.0
CT(config-router)#net 200.200.200.0
CT(config-router)#no auto
CT(config-router)#exi
CT(config)#
SG#sh ip rou
Codes: C - connected, S - static, 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
i - IS-IS, su - IS-IS summary, 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
200.200.200.0/29 is subnetted, 1 subnets
C 200.200.200.0 is directly connected, Serial1/0.1
C 192.168.1.0/24 is directly connected, FastEthernet0/0
R 192.168.2.0/24 [120/1] via 200.200.200.2, 00:00:10, Serial1/0.1
R 192.168.3.0/24 [120/1] via 200.200.200.3, 00:00:06, Serial1/0.1
SG#
Show IP route :
CT#sh ip rou
Codes: C - connected, S - static, 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
i - IS-IS, su - IS-IS summary, 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
200.200.200.0/29 is subnetted, 1 subnets
C 200.200.200.0 is directly connected, Serial1/0
R 192.168.1.0/24 [120/1] via 200.200.200.1, 00:00:23, Serial1/0
C 192.168.3.0/24 is directly connected, FastEthernet0/0
CT#
HN#sh ip rou
Codes: C - connected, S - static, 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
i - IS-IS, su - IS-IS summary, 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
200.200.200.0/29 is subnetted, 1 subnets
C 200.200.200.0 is directly connected, Serial1/0
R 192.168.1.0/24 [120/1] via 200.200.200.1, 00:00:15, Serial1/0
C 192.168.2.0/24 is directly connected, FastEthernet0/0
HN#
*Mar 1 00:21:26.271: %SYS-5-CONFIG_I: Configured from console by console
HN#
Ta thấy Router HN và CT ko học đường mạng của nhau do bị cơ chế Split Horizon chặn lại.
Cách khắc phục :
Vào Sub Interface gõ lệnh “no ip split-horizon”
SG(config)#int s1/0.1
SG(config-subif)#no ip spli
SG(config-subif)#no ip split-horizon
SG(config-subif)#exi
Show IP route tại HN và CT :
HN#sh ip rou
Codes: C - connected, S - static, 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
i - IS-IS, su - IS-IS summary, 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
200.200.200.0/29 is subnetted, 1 subnets
C 200.200.200.0 is directly connected, Serial1/0
R 192.168.1.0/24 [120/1] via 200.200.200.1, 00:00:10, Serial1/0
C 192.168.2.0/24 is directly connected, FastEthernet0/0
R 192.168.3.0/24 [120/2] via 200.200.200.3, 00:00:10, Serial1/0
CT#sh ip rou
Codes: C - connected, S - static, 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
i - IS-IS, su - IS-IS summary, 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
200.200.200.0/29 is subnetted, 1 subnets
C 200.200.200.0 is directly connected, Serial1/0
R 192.168.1.0/24 [120/1] via 200.200.200.1, 00:00:13, Serial1/0
R 192.168.2.0/24 [120/2] via 200.200.200.2, 00:00:13, Serial1/0
C 192.168.3.0/24 is directly connected, FastEthernet0/0
CT#
SG#sh ip int s1/0.1
Serial1/0.1 is up, line protocol is up
Internet address is 200.200.200.1/29
Broadcast address is 255.255.255.255
Address determined by setup command
MTU is 1500 bytes
Helper address is not set
Directed broadcast forwarding is disabled
Multicast reserved groups joined: 224.0.0.9
Outgoing access list is not set
Inbound access list is not set
Proxy ARP is enabled
Local Proxy ARP is disabled
Security level is default
Split horizon is disabled
ICMP redirects are always sent
ICMP unreachables are always sent
ICMP mask replies are never sent
IP fast switching is enabled
IP fast switching on the same interface is enabled
IP Flow switching is disabled
IP CEF switching is enabled
IP CEF Fast switching turbo vector
IP multicast fast switching is enabled
IP multicast distributed fast switching is disabled
IP route-cache flags are Fast, CEF
Router Discovery is disabled
IP output packet accounting is disabled
IP access violation accounting is disabled
TCP/IP header compression is disabled
RTP/IP header compression is disabled
Policy routing is disabled
Network address translation is disabled
BGP Policy Mapping is disabled
WCCP Redirect outbound is disabled
WCCP Redirect inbound is disabled
WCCP Redirect exclude is disabled
SG#
File .NET :
ghostios = True
autostart = False
[localhost]
[[2691]]
image = C:\Program Files\Dynamips\images\C2691-AD.BIN
ram = 128
[[ROUTER SG]]
model = 2691
mmap = True
s1/0 = F1 1
idlepc = 0x60ab2a14
[[ROUTER HN]]
model = 2691
mmap = True
s1/0 = F1 2
idlepc = 0x60aadd74
[[ROUTER CT]]
model = 2691
mmap = True
s1/0 = F1 3
idlepc = 0x60aadf68
[[FRSW F1]]
1:100 = 2:200
1:300 = 3:400
1. Cấu hình Hub Router sử dụng 1 Sub Interface Multipoint để giao tiếp với các Spoke Router :
Đặt IP :
SG(config)#int f0/0
SG(config-if)#ip add 192.168.1.254 255.255.255.0
SG(config-if)#no shut
SG(config-if)#exi
HN(config)#int f0/0
HN(config-if)#ip add 192.168.2.254 255.255.255.0
HN(config-if)#no shut
HN(config-if)#exi
HN(config)#
CT(config)#int f0/0
CT(config-if)#ip add 192.168.3.254 255.255.255.0
CT(config-if)#no shut
CT(config-if)#exi
CT(config)#
Cấu hình Frame Relay cho các Spoke Router :
HN(config)#int s1/0
HN(config-if)#encap fram
HN(config-if)#encap frame-relay
HN(config-if)#fram
HN(config-if)#frame-relay lmi-type ansi
HN(config-if)#ip add 200.200.200.2 255.255.255.248
HN(config-if)#fram
HN(config-if)#frame-relay map ip 200.200.200.1 200 broa
HN(config-if)#frame-relay map ip 200.200.200.1 200 broadcast
HN(config-if)#fram
HN(config-if)#frame-relay map ip 200.200.200.3 200 broa
HN(config-if)#frame-relay map ip 200.200.200.3 200 broadcast
HN(config-if)#fram
HN(config-if)#frame-relay map ip 200.200.200.2 200 broa
HN(config-if)#frame-relay map ip 200.200.200.2 200 broadcast
HN(config-if)#no shut
HN(config-if)#exi
CT(config)#int s1/0
CT(config-if)#encap
CT(config-if)#encapsulation fram
CT(config-if)#encapsulation frame-relay
CT(config-if)#fram
CT(config-if)#frame-relay lmi-type ansi
CT(config-if)#ip add 200.200.200.3 255.255.255.248
CT(config-if)#fram
CT(config-if)#frame-relay map ip 200.200.200.1 400 broa
CT(config-if)#frame-relay map ip 200.200.200.1 400 broadcast
CT(config-if)#fram
CT(config-if)#frame-relay map ip 200.200.200.2 400 broa
CT(config-if)#frame-relay map ip 200.200.200.2 400 broadcast
CT(config-if)#fram
CT(config-if)#frame-relay map ip 200.200.200.3 400 broa
CT(config-if)#frame-relay map ip 200.200.200.3 400 broadcast
CT(config-if)#no shut
CT(config-if)#exi
Cấu hình Frame Relay cho Hub Router :
Tạo 1 Sub Interface Multipoint trên Hub Router
SG(config)#int s1/0
SG(config-if)#encap
SG(config-if)#encapsulation fram
SG(config-if)#encapsulation frame-relay
SG(config-if)#fram
SG(config-if)#frame-relay lmi-type ansi
SG(config-if)#no shut
SG(config)#int s1/0.1 mul
SG(config)#int s1/0.1 multipoint
SG(config-subif)#ip add 200.200.200.1 255.255.255.248
SG(config-subif)#fram
SG(config-subif)#frame-relay map ip 200.200.200.2 100 broad
SG(config-subif)#frame-relay map ip 200.200.200.2 100 broadcast
SG(config-subif)#fram
SG(config-subif)#frame-relay map ip 200.200.200.3 300 broa
SG(config-subif)#frame-relay map ip 200.200.200.3 300 broadcast
SG(config-subif)#fram
SG(config-subif)#frame-relay map ip 200.200.200.1 100 broa
SG(config-subif)#frame-relay map ip 200.200.200.1 100 broadcast
SG(config-subif)#no shut
SG(config-subif)#exi
Cấu hình RIPv2 :
SG(config)#router rip
SG(config-router)#ver 2
SG(config-router)#net 192.168.1.0
SG(config-router)#net 200.200.200.0
SG(config-router)#no auto
SG(config-router)#exi
HN(config)#router rip
HN(config-router)#ver 2
HN(config-router)#net 192.168.2.0
HN(config-router)#net 200.200.200.0
HN(config-router)#no auto
HN(config-router)#exi
CT(config)#router rip
CT(config-router)#ver 2
CT(config-router)#net 192.168.3.0
CT(config-router)#net 200.200.200.0
CT(config-router)#no auto
CT(config-router)#exi
CT(config)#
SG#sh ip rou
Codes: C - connected, S - static, 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
i - IS-IS, su - IS-IS summary, 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
200.200.200.0/29 is subnetted, 1 subnets
C 200.200.200.0 is directly connected, Serial1/0.1
C 192.168.1.0/24 is directly connected, FastEthernet0/0
R 192.168.2.0/24 [120/1] via 200.200.200.2, 00:00:10, Serial1/0.1
R 192.168.3.0/24 [120/1] via 200.200.200.3, 00:00:06, Serial1/0.1
SG#
Show IP route :
CT#sh ip rou
Codes: C - connected, S - static, 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
i - IS-IS, su - IS-IS summary, 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
200.200.200.0/29 is subnetted, 1 subnets
C 200.200.200.0 is directly connected, Serial1/0
R 192.168.1.0/24 [120/1] via 200.200.200.1, 00:00:23, Serial1/0
C 192.168.3.0/24 is directly connected, FastEthernet0/0
CT#
HN#sh ip rou
Codes: C - connected, S - static, 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
i - IS-IS, su - IS-IS summary, 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
200.200.200.0/29 is subnetted, 1 subnets
C 200.200.200.0 is directly connected, Serial1/0
R 192.168.1.0/24 [120/1] via 200.200.200.1, 00:00:15, Serial1/0
C 192.168.2.0/24 is directly connected, FastEthernet0/0
HN#
*Mar 1 00:21:26.271: %SYS-5-CONFIG_I: Configured from console by console
HN#
Ta thấy Router HN và CT ko học đường mạng của nhau do bị cơ chế Split Horizon chặn lại.
Cách khắc phục :
Vào Sub Interface gõ lệnh “no ip split-horizon”
SG(config)#int s1/0.1
SG(config-subif)#no ip spli
SG(config-subif)#no ip split-horizon
SG(config-subif)#exi
Show IP route tại HN và CT :
HN#sh ip rou
Codes: C - connected, S - static, 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
i - IS-IS, su - IS-IS summary, 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
200.200.200.0/29 is subnetted, 1 subnets
C 200.200.200.0 is directly connected, Serial1/0
R 192.168.1.0/24 [120/1] via 200.200.200.1, 00:00:10, Serial1/0
C 192.168.2.0/24 is directly connected, FastEthernet0/0
R 192.168.3.0/24 [120/2] via 200.200.200.3, 00:00:10, Serial1/0
CT#sh ip rou
Codes: C - connected, S - static, 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
i - IS-IS, su - IS-IS summary, 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
200.200.200.0/29 is subnetted, 1 subnets
C 200.200.200.0 is directly connected, Serial1/0
R 192.168.1.0/24 [120/1] via 200.200.200.1, 00:00:13, Serial1/0
R 192.168.2.0/24 [120/2] via 200.200.200.2, 00:00:13, Serial1/0
C 192.168.3.0/24 is directly connected, FastEthernet0/0
CT#
SG#sh ip int s1/0.1
Serial1/0.1 is up, line protocol is up
Internet address is 200.200.200.1/29
Broadcast address is 255.255.255.255
Address determined by setup command
MTU is 1500 bytes
Helper address is not set
Directed broadcast forwarding is disabled
Multicast reserved groups joined: 224.0.0.9
Outgoing access list is not set
Inbound access list is not set
Proxy ARP is enabled
Local Proxy ARP is disabled
Security level is default
Split horizon is disabled
ICMP redirects are always sent
ICMP unreachables are always sent
ICMP mask replies are never sent
IP fast switching is enabled
IP fast switching on the same interface is enabled
IP Flow switching is disabled
IP CEF switching is enabled
IP CEF Fast switching turbo vector
IP multicast fast switching is enabled
IP multicast distributed fast switching is disabled
IP route-cache flags are Fast, CEF
Router Discovery is disabled
IP output packet accounting is disabled
IP access violation accounting is disabled
TCP/IP header compression is disabled
RTP/IP header compression is disabled
Policy routing is disabled
Network address translation is disabled
BGP Policy Mapping is disabled
WCCP Redirect outbound is disabled
WCCP Redirect inbound is disabled
WCCP Redirect exclude is disabled
SG#
Comment