HCIE作业初级阶段(HCNA)、中阶和高阶要求汇总(引申到CCNA、CCNP、CCIE):

1.请勿压缩,请勿发送压缩文件,压缩后的文件打开浪费时间(尤其是手机查阅时)
2.推荐使用txt或者word或者PDF文件,原因在于文件小,更便与查阅
3.请在作业邮件中写上作业的要求,否则很容易造成作业混乱(可能同时给不同级别的学员在上课)
4.一份好的作业应该满足如下要求:拓扑,实施命令步骤1、2、3、4,命令解释(这点尤其关键,这条命令可以完成什么功能,造成什么结果,这都是宝贵财富),结果验证(比如查看mac地址表show mac address/display mac-address等,验证协议邻居sh ip ospf nei/dis ospf peer bri,看到结果才能证明实验效果)以及总结

乾颐堂的教学是讲究责任的,也是其他机构所不具备的,只有多多的完成实验才能不被称为“paper IE”

最后,点关注不迷路哦,欢迎成为军哥的博客粉丝

qytang通过学员分享会以及奖励规则
1.乾颐堂定期举办PASS学员分享会,每2-3周一次,每次1.5小时
2.分享内容:如何学习,如何备考(笔试、LAB、行程安排等),备考中遇到什么困难,如何解决这些困难,通过考试对您是否有帮助,如何得知乾颐堂,日后的工作是否会继续学习等等。您稍微需要准备一丢丢PPT。总而言之,只要对后来的师弟们有帮助,有指引一切都欢迎
3.奖励:500RMB或者价值500RMB的电子类产品,如键盘、鼠标等小礼物,也可以是视频或者乾颐堂独家书籍
4.其他未尽事宜请联系班主任老师

如下是一个作业的范本:

CCIE作业1,完成拓扑中的邻居关系以及通过重分步产生环路
实验步骤
一 完成BGP邻居:
1> 1-2 eBGP

R1:
router bgp 100 //创建as号为100的bgp
bgp log-neighbor-changes //系统自动创建的记录信息
network 11.1.1.1 mask 255.255.255.255 //将11.1.1.1/32这个网络通告出去
neighbor 12.1.1.2 remote-as 200 //指定邻居为12.1.1.2 且下一跳as号为200
R2:
router bgp 200 //创建as号为200的bgp
bgp log-neighbor-changes //系统自动创建的记录信息
network 22.1.1.1 mask 255.255.255.255 //将22.1.1.1/32这个网络通告出去
neighbor 12.1.1.1 remote-as 100 //指定邻居为12.1.1.1 且下一跳as号为100

查看邻居关系:
R1#show ip bgp summary

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
12.1.1.2 4 200 42 42 3 0 0 00:35:00 1

R2#
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
12.1.1.1 4 100 44 43 3 0 0 00:36:15 1

2>4-5 eBGP

首先手动创建静态路由:
R5#show run | s ip rou
ip route 44.1.1.1 255.255.255.255 Serial1/2 45.1.1.4

R4#show run | s ip rou
ip route 55.1.1.1 255.255.255.255 Serial1/2 45.1.1.5
因为BGP是通过TCP 报文更新路由的,所以必须有路由.且由于是在2个EGP协议之间有路由所以不能使用iGP协议只能写静态路由,
R4#show run | s bgp
router bgp 200 //创建as号为200的BGP
bgp log-neighbor-changes
network 44.1.1.1 mask 255.255.255.255 // 发布44.1.1.1/24的网络,不发布不产生路由
neighbor 55.1.1.1 remote-as 300 // 指定邻居为55.1.1.1且其as号为300
neighbor 55.1.1.1 ebgp-multihop 255 // 指定最大跳数255(默认255) ,如不指定默认为1
// 可用neighbor 55.1.1.1 disable-connected-check替代
neighbor 55.1.1.1 update-source Loopback0 //指定更新源为lo0,如不指定默认源为出口

R5(config)#do show run | s bgp
router bgp 300 //创建as号为200的BGP
bgp log-neighbor-changes
network 55.1.1.1 mask 255.255.255.255 // 发布55.1.1.1/24的网络,不发布不产生路由
neighbor 44.1.1.1 remote-as 200 // 指定邻居为44.1.1.1且其as号为200
neighbor 44.1.1.1 ebgp-multihop 255 // 指定最大跳数255(默认255) ,如不指定默认为1
// 可用neighbor 55.1.1.1 disable-connected-check替代
neighbor 44.1.1.1 update-source Loopback0 //指定更新源为lo0,如不指定默认源为出口

查看邻居关系:

// 因静态路由优先级高于动态路由,所以state 状态为0 ,有BGP邻居没BGP路由

2-4 iBGP邻居

首先由于是IGP 且R2 到R4 不可达所以要先建立路由

R2#show  run | s  ospf
router ospf 110
 network 22.1.1.1 0.0.0.0 area 0
 network 23.1.1.0 0.0.0.255 area 0

R3#show run | s ospf
router ospf 110
 network 10.1.1.0 0.0.0.255 area 0
 network 23.1.1.0 0.0.0.255 area 0
 network 33.1.1.1 0.0.0.0 area 0

R4#show run  | s ospf
router ospf 100
 network 10.1.1.0 0.0.0.255 area 0
 network 44.1.1.0 0.0.0.255 area 0

然后通过建立IBGP 邻居关系
R2#show run | s bgp

router bgp 200
 bgp log-neighbor-changes
 network 22.1.1.1 mask 255.255.255.255
 neighbor 12.1.1.1 remote-as 100
 neighbor 44.1.1.1 remote-as 200         //指定邻居为44.1.1.1且其as号为200
 neighbor 44.1.1.1 update-source Loopback0 //更新源出口lo0,如不指定则默认其接口为出口

R4# show  run | s bgp  
router bgp 200
 bgp log-neighbor-changes
 network 44.1.1.1 mask 255.255.255.255
 neighbor 22.1.1.1 remote-as 200         //指定邻居为22.1.1.1且其as号为200
 neighbor 22.1.1.1 update-source Loopback0 //更新源出口lo0,如不指定则默认其接口为出口
 neighbor 55.1.1.1 remote-as 300
 neighbor 55.1.1.1 ebgp-multihop 255
 neighbor 55.1.1.1 update-source Loopback0

查看邻居
R2:
网络工程师学习各阶段(NA、NP、IE)作业要求汇总_第1张图片
R4

二 在R2针对R4以及R4针对R2做下一跳自我

R```
2#show run | s bgp
router bgp 200
bgp log-neighbor-changes
network 22.1.1.1 mask 255.255.255.255
neighbor 12.1.1.1 remote-as 100
neighbor 44.1.1.1 remote-as 200
neighbor 44.1.1.1 update-source Loopback0
neighbor 44.1.1.1 next-hop-self //指定邻居44.1.1.1的下一跳为自己

R4(config-router)#do show run | s bgp
router bgp 200
bgp log-neighbor-changes
network 44.1.1.1 mask 255.255.255.255
neighbor 22.1.1.1 remote-as 200
neighbor 22.1.1.1 update-source Loopback0
neighbor 22.1.1.1 next-hop-self //指定邻居22.1.1.1的下一跳为自己
neighbor 55.1.1.1 remote-as 300
neighbor 55.1.1.1 ebgp-multihop 255
neighbor 55.1.1.1 update-source Loopback0



3.R2上把BGP引入到IGP,并且允许把iBGP引入到IGP

router ospf 110
 redistribute bgp 200 subnets  // R2将BGP重分布进BGP进OSPF 
 network 22.1.1.1 0.0.0.0 area 0
 network 23.1.1.0 0.0.0.255 area 0

R2(config-router)#do show run  | s  bgp
 redistribute bgp 200 subnets
router bgp 200
 bgp log-neighbor-changes
 bgp redistribute-internal  //允许将IGBP重分布进IGP
 network 22.1.1.1 mask 255.255.255.255
 neighbor 12.1.1.1 remote-as 100
 neighbor 44.1.1.1 remote-as 200
 neighbor 44.1.1.1 update-source Loopback0
 neighbor 44.1.1.1 next-hop-self

R4 :
R4#show  run  | s ospf
router ospf 100
 redistribute bgp 200 subnets    // R4将BGP重分布进BGP进OSPF
 network 10.1.1.0 0.0.0.255 area 0
 network 44.1.1.0 0.0.0.255 area 0

R4#show run  | s bgp
 redistribute bgp 200 subnets
router bgp 200
 bgp log-neighbor-changes
 bgp redistribute-internal  //允许将IGBP重分布进IGP
 network 44.1.1.1 mask 255.255.255.255
 neighbor 22.1.1.1 remote-as 200
 neighbor 22.1.1.1 update-source Loopback0
 neighbor 22.1.1.1 next-hop-self
 neighbor 55.1.1.1 remote-as 300
 neighbor 55.1.1.1 ebgp-multihop 255
 neighbor 55.1.1.1 update-source Loopback0
测试结果 
R1#traceroute 55.1.1.1 source lo0 numeric
Type escape sequence to abort.
Tracing the route to 55.1.1.1
VRF info: (vrf in name/id, vrf out name/id)
  1 12.1.1.2 10 msec 10 msec 10 msec
  2 23.1.1.3 16 msec 20 msec 17 msec
  3 23.1.1.2 20 msec 20 msec 20 msec
  4 23.1.1.3 30 msec 30 msec 30 msec
  5 23.1.1.2 30 msec 40 msec 30 msec
  6 23.1.1.3 40 msec 40 msec 32 msec
  7 23.1.1.2 50 msec 40 msec 40 msec
  8 23.1.1.3 50 msec 48 msec 50 msec
  9 23.1.1.2 50 msec 50 msec 50 msec
 10 23.1.1.3 60 msec 60 msec 60 msec
 11 23.1.1.2 60 msec 53 msec 59 msec
 12 23.1.1.3 70 msec 70 msec 71 msec
 13 23.1.1.2 69 msec 70 msec 70 msec
 14 23.1.1.3 80 msec 79 msec 80 msec
 总结,bgp引入igp具备一定的风险