1、ripV2網絡
router rip 啓用rip協議ide
no atuo-summary 禁止自動彙總ui
version 2 版本2spa
network x x x x mask x x x x 宣告網段(子網掩碼是正掩碼,mask能夠不打出來)router
2、ospf接口
router ospf x 啓用ospf協議,並加上進程號進程
router-id x x x x 指定router-id(地址必定是ipv4)ip
network x x x x mask x x x x area x 進程下宣告網段(子網掩碼是反掩碼,mask能夠不打出來)ci
ip ospf x area x ipv4的接口下宣告路由
ipv6 ospf x area x ipv6的接口下宣告
3、eigrp
router eigrp x 啓用eigrp協議,在對應的AS號上
no atuo-summary 禁止自動彙總
network x x x x mask x x x x 宣告網段(子網掩碼是反掩碼,mask能夠不打出來)
4、bgp
router bgp x 啓用bgp協議,在對應的AS號上
neighbor x x x x remote-as x 指定相鄰的AS(鄰居自治系統網絡)
network x x x x mask x x x x 宣告網段(子網掩碼是正掩碼)
5、IS-IS
clns routing 進入clns(可設可不設)
router isis 啓用IS-IS協議
net 49.x.x.x.x.00 定義IS-IS地址(AFI=49;中間的X表明ipv4地址;結尾00表示net)
ip router isis 接口下宣告協議
is-type level-1 進程下定義協議級別
is-type level-2 進程下定義協議級別
isis circuit-type level-1 接口下指定級別(路由器是邊界路由器時)