R2:en
Conf t
Router eig 25 No au
Net 25.25.26.2 0.0.0.0 Net 25.25.28.2 0.0.0.0
en ppp
ppp authe pap
ppp pap sent R2 pass ccna2012
R8:en
Conf t
Router ei 25 No au
Net 25.25.68.8 0.0.0.0 Net 25.25.28.8 0.0.0.0 Net 8.8.8.8 0.0.0.0 Int f0/0
Ip address dhcp exit
key chain chen key 1
key-string ccie2012 int f0/0 ip au the key-string eig 25 chen Ip authe mode eig 25 md5 exit
userna R2 pass ccna2012 int s0/0 en ppp
ppp authe pap
ppp pap sent R8 pass ccnp2012 router ei 25 eigr stub
R6:en
Conf t
Router eig 25 No au
Net 25.25.26.6 0.0.0.0 Net 25.25.68.6 0.0.0.0 Net 25.25.6.6 0.0.0.0 exit
ip dhcp pool chen netw 25.25.68.0/24 exit
ip dhcp exclude 25.25.68.1 25.25.68.7 key chain chen key 1
key-string ccie2012 int f0/0 ip au the key-string eig 25 chen Ip authe mode eig 25 md5 exit
userna R8 pass ccnp2012 int s0/0
bgp的需求:
1. r5和r7属于as 57,r6和r8属于as 68,r2和r3属于as 1234 (r1和r4 不运行bgp路由协议) 2. 建立邻居关系:
ibgp邻居:r5--r7,r2--r3,r6--r8 ebgp邻居:r3--r5,r2--r6
3. r7上创建环回口loopback 1:77.7.7.7/32 r8上创建环回口loopback 1:88.8.8.8/32
4. 把这两个环回口宣告到bgp中,使两者可以ping通
5. 如果在as 1234中遇到路由黑洞,可以让r2和r3通过帧中继交换机r5 成为直连。 (拓扑图为:r5 s0/2----r2 s0/1
r5 s0/3----r3 s0/1 )
R2:en
conf t
router bg 1234 no au no sy
router-id 2.2.2.2
nei 25.25.23.3 remot-a 1234 nei 25.25.26.6 remot-a 68 nei 25.25.23.3 next-hop-se int s0/1 enc fram
ip add 25.25.23.2 255.255.255.0 no sh
R3:en
conf t
router bg 1234 no au no sy
router-id 3.3.3.3
nei 25.25.23.2 remot-a 1234
nei 25.25.23.2 remot-a next-hop-se nei 25.25.35.5 remot-a 57 int s0/1 enc fram
ip add 25.25.23.3 255.255.255.0 no sh
R5:en
conf t
router bg 57 no au no sy
nei 25.25.35.3 remot-as 1234 nei 7.7.7.7 remot-a 57 nei 7.7.7.7 upda lo 0 ex
fram switch int s0/2
ipv6的需求:
1. r1,r2,r3,r4配置ipv6的ospf协议。 2. 所有直连网段和环回口都属于区域0
enc fram
fram intf-typ dce
fram rout 100 int s0/3 200 int s0/3 enc fram
fram intf-ty dc
fram rout 200 int s0/2 100
R7:en
conf t int lo 7
ip add 77.7.7.7 255.255.255.0 no sh ex
router bg 57 no au no sy
nei 5.5.5.5 remot-a 57 nei 5.5.5.5 upda lo 0
R6:en
conf t
router bg 68 no au no sy
nei 25.25.26.2 remot-as 1234 nei 8.8.8.8 remot-a 68 nei 8.8.8.8 upda lo 0
R8:en
conf t int lo 8
ip add 88.8.8.8 255.255.255.0 no sh ex
router bg 68 no au no sy
nei 6.6.6.6 remot-a 68 nei 6.6.6.6 upda lo 0
地址格式 2012:xx::y/64 依次类推 环回口: 1::1/64
2::2/64
3. ipv6的ospf 使用的进程号为6, 4. route-id为11.11.11.11
22.22.22.22 依次类推
R1: en
conf t
ipv6 unicast-routing int f0/0
ipv address 2012:12::1/64 int f0/1
ipv add 2012:13::1/64 int lo 0
ipv6 add 1::1/64 ex
ipv router ospf 6
router-id 11.11.11.11 ex
int range f0/1 ,f0/0 ,lo 0 ipv6 ospf 6 area 0
R2:en
r2#conf t
r2(config)#ipv unicast-routing r2(config)#int f0/0
r2(config-if)#ipv add 2012:12::2/64 r2(config-if)#no sh r2(config-if)#int f0/1
r2(config-if)#ipv add 2012:24::2/64 r2(config-if)#no sh
R4:en
r4#conf t
r4(config)#ipv un r4(config)#int f0/0
r4(config-if)#ipv add 2012:34::4/64 r4(config-if)#no sh r4(config-if)#int f0/1
r4(config-if)#ipv add 2012:24::4/64 r4(config-if)#no sh 5. 全网能互相通信。
R3:en
r2(config-if)#int lo0
r2(config-if)#ipv add 2::2/64 r2(config-if)#ex
r2(config)#ipv router os 6
r2(config-rtr)#router-id 22.22.22.22 r2(config-rtr)#ex
r2(config)#int ran f0/0 ,f0/1 , lo0 r2(config-if-range)#ipv ospf 6 area 0
R3:en
r3#conf t
r3(config)#ipv unicast-routing r3(config)#int f0/1
r3(config-if)#ipv add 2012:13::3/64 r3(config-if)#no sh r3(config-if)#int f0/0
r3(config-if)#ipv add 2012:34::3/64 r3(config-if)#no sh r3(config-if)#int lo 0
r3(config-if)#ipv add 3::3/64 r3(config-if)#ex
r3(config)#ipv router os 6
r3(config-rtr)#router-id 33.33.33.33 r3(config-rtr)#ex
r3(config)#int ran f0/1 ,f0/0 ,lo 0 r3(config-if-range)#ipv os 6 ar 0 r4(config-if)#int lo 0
r4(config-if)#ipv add 4::4/64 r4(config-if)#no sh r4(config-if)#ex
r4(config)#ipv router os 6
r4(config-rtr)#router-id 44.44.44.44 r4(config-rtr)#ex
r4(config)#int ran f0/1 ,f0/0 ,lo 0 r4(config-if-range)#ipv os 6 ar 0
Conf t
Router os 1 Redis rip sub Ex
Router rip
Redis os 1 met 1
R2:en
Conf t
Router os 1 Redis eigr 6 sub Ex
Router eigrp 6
Redis ospf 1 metr 1544 200 255 1 1500
通信工程091
200905016125
徐凯
2012年12月29日