欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  科技

EIGRP1üàí?àà?òy?e?·óé?eμ′μ??-òò?°?a??

程序员文章站 2022-05-09 08:14:03
EIGRP1üàí?àà?òy?e?·óé?eμ′μ??-òò?°?a??...

EIGRP1üàí?àà?òy?e?·óé?eμ′μ??-òò?°?a??

  eigrpoíospf×???μ????ò??·?·¢
μúò????é??£o
1£?r1,r2,r3,r43?ê?????  r1
conf t
int l 0
ip add 1.1.1.1 255.255.255.255
int f0/0
ip add 1.1.123.1 255.255.255.0
no shut
router eigrp 1
no auto
net 1.1.1.1 0.0.0.0
net 1.1.123.0 0.0.0.255
end
 r2
conf t
int l 0
ip add 1.1.2.2 255.255.255.255
int f0/0
ip add 1.1.123.2 255.255.255.0
no shut
int s1/0
ip add 1.1.234.2 255.255.255.0
encap f
no arp f
no frame inv
frame map ip 1.1.234.4 204 b
frame map ip 1.1.234.3 204 b
no shut
ip ospf p 0
router ospf 1
router-id 1.1.2.2
net 1.1.234.2 0.0.0.0 a 0
net 1.1.2.2 0.0.0.0 a 0
router eigrp 1
no auto
net 1.1.2.2 0.0.0.0
net 1.1.123.0 0.0.0.255
end
 r3
conf t
int l 0
ip add 1.1.3.3 255.255.255.255
int f 0/0
ip add 1.1.123.3 255.255.255.0
no shut
int s1/0
ip add 1.1.234.3 255.255.255.0
encap f
no arp f
no frame inv
frame map ip 1.1.234.4 304 b
frame map ip 1.1.234.2 304 b
no shut
ip ospf p 0
router ospf 1
router-id 1.1.3.3
net 1.1.234.3 0.0.0.0 a 0
net 1.1.3.3 0.0.0.0 a 0
router eigrp 1
no auto
net 1.1.3.3 0.0.0.0
net 1.1.123.0 0.0.0.255
end
 r4
conf t
int l 0
ip add 1.1.4.4 255.255.255.255
int s1/0
ip add 1.1.234.4 255.255.255.0
encap f
no arp f
no frame inv
frame map ip 1.1.234.2 402 b
frame map ip 1.1.234.3 403 b
no shut
router ospf 1
router-id 1.1.4.4
nei 1.1.234.2
nei 1.1.234.3
net 1.1.234.4 0.0.0.0 a 0
net 1.1.4.4 0.0.0.0 a 0
end
μ??aà?£??ùódμ?eigrpoíospfáú?ó1??μ???¨á¢o?á??£   2£??úr2oír3é?×???μ????ò??·?·¢  r2
router eigrp 1
redistribute ospf 1 metric 10000 100 255 1 1500
router ospf 1
redistribute eigrp 1 metric 100 metric-type 1 subnets
end
 r3
router eigrp 1
redistribute ospf 1 metric 10000 100 255 1 1500
router ospf 1
redistribute eigrp 1 metric 100 metric-type 1 subnets
end ??·?·¢íê3é£?   ?é?¤
r1?·óé±í r1#sh ip route gateway of last resort is not set      1.0.0.0/8 is variably subnetted, 6 subnets, 2 masks
d ex    1.1.4.4/32 [170/284160] via 1.1.123.3, 00:01:03, fastethernet0/0
                   [170/284160] via 1.1.123.2, 00:01:03, fastethernet0/0
d       1.1.3.3/32 [90/156160] via 1.1.123.3, 00:08:44, fastethernet0/0
d       1.1.2.2/32 [90/156160] via 1.1.123.2, 00:08:44, fastethernet0/0
c       1.1.1.1/32 is directly connected, loopback0
c       1.1.123.0/24 is directly connected, fastethernet0/0
d ex    1.1.234.0/24 [170/284160] via 1.1.123.3, 00:02:51, fastethernet0/0
                     [170/284160] via 1.1.123.2, 00:02:51, fastethernet0/0     r4?·óé±í
r4#sh ip route gateway of last resort is not set      1.0.0.0/8 is variably subnetted, 6 subnets, 2 masks
c       1.1.4.4/32 is directly connected, loopback0
o       1.1.3.3/32 [110/65] via 1.1.234.3, 00:00:14, serial1/0
o       1.1.2.2/32 [110/65] via 1.1.234.2, 00:00:14, serial1/0
o e1    1.1.1.1/32 [110/164] via 1.1.234.3, 00:00:14, serial1/0
                   [110/164] via 1.1.234.2, 00:00:14, serial1/0
o e1    1.1.123.0/24 [110/164] via 1.1.234.3, 00:00:14, serial1/0
                     [110/164] via 1.1.234.2, 00:00:14, serial1/0
c       1.1.234.0/24 is directly connected, serial1/0  
μú?t???é??
?úr1μ?s1/2?ó?ú?óè?r5£?2¢??ó?ripv2
 r5
conf t
int s1/2
ip add 192.168.45.5 255.255.255.0
no shut
router rip
ver 2
no auto
net 192.168.45.0
end  r1
conf t
int s1/2
no shut
ip add 192.168.45.4 255.255.255.0
router rip
ver 2
no au
net 192.168.45.0
end    
°?rip?ù·?·¢μ?eigrp1?d
router eigrp 1
redistribute rip metric 10000 100 255 1 1500
end     ?aê±?′r2oír3é?μ??·óé±í   r2(config)#do sh ip route     
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      1.0.0.0/8 is variably subnetted, 6 subnets, 2 masks
o       1.1.4.4/32 [110/65] via 1.1.234.4, 00:31:58, serial1/0
d       1.1.3.3/32 [90/156160] via 1.1.123.3, 00:05:56, fastethernet0/0
c       1.1.2.2/32 is directly connected, loopback0
d       1.1.1.1/32 [90/156160] via 1.1.123.1, 00:05:56, fastethernet0/0
c       1.1.123.0/24 is directly connected, fastethernet0/0
c       1.1.234.0/24 is directly connected, serial1/0
o e1 192.168.45.0/24 [110/164] via 1.1.234.3, 00:05:59, serial1/0
r2(config)#do ping 192.168.45.5 type escape sequence to abort.
sending 5, 100-byte icmp echos to 192.168.45.5, timeout is 2 seconds:
.....
success rate is 0 percent (0/5)      ×d??2é?′?·óé±í?éò?·¢??£?r2μ?192.168.45.0í?????ò?ì?ê?1.1.234.2£?ò2?íê?r3μ?s1/0?ó?ú£?μ?ê?í???é?±í?÷??ò?ì??ar1μ?f0/0?ó?ú?a×????·???£?aê2?′?á3????a?ùμ??é????£?
   ?ò???aμà£?eigrpμ?ad(1üàí?àà?£?ódá????é??£o
     1£?μ±ê?μ??ú2??·óéê±£?ad?a90£??·óé±íà?μ?±êê??a?°d?±
     2£?μ±ê?μ?ía2?×a·¢μ??·óéê?£?ad?a170£??·óé±íà?μ?±êê??a?° d ex?±
   μ±r1°?rip?ù·?·¢μ?eigrp1?dμ?ê±oò£?r2oír3μ?ê?μ?192.168.45.0í????a?°d ex"±êê?£¨?éò?í¨1yshou ip bgp top?üá?d£?é)£??aê±eigrpμ?ad?a170£?μ±r2°?eigrp1?ù·?·¢μ?ospf?doó£?òò?aμ?ospfμ?ad?a110£?r3?á′ór1oír2?a??á????·óé?÷é?ê?μ?192.168.45.0?a???·óéì???£??ù?y?·óé???·?-?ò£?r3?áó??è????ospfd-òéê?μ?μ??·óé£??ùò??ú?·óé±íé???ê??°o e1?±£??a?ùμ??á1??á?ì3éêy?y°ü?úr4oír2?????eμ′£?
 
ó?trace?üá??é?¤
r2(config)#do trace 192.168.45.5 type escape sequence to abort.
tracing the route to 192.168.45.5   1 1.1.234.4 252 msec 232 msec 232 msec
  2 1.1.234.3 432 msec 308 msec 304 msec
  3  *  *  *
  4 1.1.234.4 576 msec 612 msec 480 msec
  5 1.1.234.3 720 msec 464 msec 648 msec
  6  *  *  *
  7 1.1.234.4 528 msec 684 msec 552 msec
  8 1.1.234.3 888 msec 932 msec 672 msec
  9  *  *  *
   ?-?-
r3é?ò2?á3????àí?μ??é??     ?a??·?·¨
??r2oír3é?ospfμ?addt???a′óóú170  r2
conf t
access 10 permit 192.168.45.0 0.0.0.255
router ospf 1
distance 180 1.1.3.3 0.0.0.0 10
end    r3
conf t
access 10 permit 192.168.45.0 0.0.0.255
router ospf 1
distance 180 1.1.2.2 0.0.0.0 10
end     ?é?¤r2£?r3£?r4?·óé±í
r2(config)#do sh ip route
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      1.0.0.0/8 is variably subnetted, 6 subnets, 2 masks
o       1.1.4.4/32 [110/65] via 1.1.234.4, 00:11:38, serial1/0
d       1.1.3.3/32 [90/156160] via 1.1.123.3, 00:11:38, fastethernet0/0
c       1.1.2.2/32 is directly connected, loopback0
d       1.1.1.1/32 [90/156160] via 1.1.123.1, 00:11:38, fastethernet0/0
c       1.1.123.0/24 is directly connected, fastethernet0/0
c       1.1.234.0/24 is directly connected, serial1/0
d ex 192.168.45.0/24 [170/284160] via 1.1.123.1, 00:11:38, fastethernet0/0
r3(config)#do sh ip route
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      1.0.0.0/8 is variably subnetted, 6 subnets, 2 masks
o       1.1.4.4/32 [110/65] via 1.1.234.4, 00:01:27, serial1/0
c       1.1.3.3/32 is directly connected, loopback0
d       1.1.2.2/32 [90/156160] via 1.1.123.2, 00:01:27, fastethernet0/0
d       1.1.1.1/32 [90/156160] via 1.1.123.1, 00:01:27, fastethernet0/0
c       1.1.123.0/24 is directly connected, fastethernet0/0
c       1.1.234.0/24 is directly connected, serial1/0
d ex 192.168.45.0/24 [170/284160] via 1.1.123.1, 00:01:27, fastethernet0/0
r4#sh ip route
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      1.0.0.0/8 is variably subnetted, 6 subnets, 2 masks
c       1.1.4.4/32 is directly connected, loopback0
o       1.1.3.3/32 [110/65] via 1.1.234.3, 00:19:57, serial1/0
o       1.1.2.2/32 [110/65] via 1.1.234.2, 00:19:57, serial1/0
o e1    1.1.1.1/32 [110/164] via 1.1.234.3, 00:19:57, serial1/0
                   [110/164] via 1.1.234.2, 00:19:57, serial1/0
o e1    1.1.123.0/24 [110/164] via 1.1.234.3, 00:19:57, serial1/0
                     [110/164] via 1.1.234.2, 00:19:57, serial1/0
c       1.1.234.0/24 is directly connected, serial1/0
o e1 192.168.45.0/24 [110/164] via 1.1.234.3, 00:12:25, serial1/0
                     [110/164] via 1.1.234.2, 00:12:25, serial1/0