Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

SO SNH LNH IP DEFAULT NETWORK V IP ROUTE 0.0.0.0 0.0.0.

0 Bng cc gi tr Administrative Distance mc nh cho cc giao thc nh tuyn c th sau: ----------------------------------------------------------Route Source | Default Distance ----------------------------------------------------------Connected Interface | 0 Static Route | 1 EIGRP Summary Route | 5 External Bgp | 20 Internal EIGRP | 90 IGRP | 100 ospf | 110 is-iS | 115 egp | 140 External EigrP | 170 Internal BGP | 200 Unknown | 255 Nu bn c quyn ca nh qun tr mng, bn c th t li c cc gi tr mc nh ny chn c thng tin cp nht ca giao thc nh tuyn bn mun, trong trng hp c nhiu giao thc nh tuyn trong mng. V lnh default-network: - Khi ta cu hnh lnh ny, router s xem xt ng dn n network nh l gii php cui cng cho cc routes cha c bit trn router. Khi Router khng tm thy bt k con ng no thch hp trong bng nh tuyn, "default-network" s l con ng cui cng c chn chuyn gi tin i. - Vi mi network c cu hnh vi lnh ip default-network ny, nu router c mt ng dn (route) n network , ng dn (route) s c nh du nh mt candidate default-route. Hy xem bng routing table sau: 2513#show 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 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, * - candidate default Gateway of last resort is not set 161.44.0.0 255.255.255.0 is subnetted, 1 subnets C 161.44.192.0 is directly connected, Ethernet0

S 198.10.1.0 [1/0] via 161.44.192.2 131.108.0.0 255.255.255.0 is subnetted, 1 subnets C 131.108.99.0 is directly connected, TokenRing0 Ch l static route v network 198.10.1.0 qua 161.44.192.2 v gateway-of-last resort l cha c thit lp. Nu anh cu hnh: # ip default-network 198.10.1.0 bng routing-table s i thnh: 2513#show 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 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, * - candidate default Gateway of last resort is 161.44.192.2 to network 198.10.1.0 161.44.0.0 255.255.255.0 is subnetted, 1 subnets C 161.44.192.0 is directly connected, Ethernet0 S 161.44.0.0 255.255.0.0 [1/0] via 161.44.192.0 S* 198.10.1.0 [1/0] via 161.44.192.2 131.108.0.0 255.255.255.0 is subnetted, 1 subnets C 131.108.99.0 is directly connected, TokenRing0 2513#show ip protocols 2513# Ch l gateway c thit lp v 161.44.192.2 Kt qu ny khng ph thuc vo routing-protocols. Gi tr AD trong trung hp trn l 0 TM TT V KT LUN: C hai lnh dng "default-networrk" l - ip default-network - ip route 0.0.0.0 0.0.0.0 Mt s s khc nhau gia hai lnh ny nh sau: - Gi tr AD khi cc anh dng default-network l 0. - Lnh default-network khng ph thuc vo routing protocols.

- ip default-network c dng nhiu ch vi IGRP/EIGRP. Routes c ch ra trong default-network phi c hc t cc dynamic routing protocol nh IGRP/EIGRP. - Nu dng vi static, vn phi c nh ngha static route cho network . ip route x.x.x.x y.y.y.y next-hop - a ch network c dng trong lnh ip default-network phi l classful. - lnh ip route 0.0.0.0 0.0.0.0 khng ph thuc vo routing protocols. Gi tr AD ca static route l 1 hoc l 0.

You might also like