Cisco路由器基本配置命令

來源:互聯網
上載者:User

一、

1.router(config)#router rip 啟動rip進程

2.router(conifg-router)#network 172.17.0.0指定rip協議的主網路

3.router(config-router)#passive-interface f0/1把f0/1配置成passive連接埠

4.router(config-router)#neighbor 172.17.12.67 以單波方式通告rip更新給路由器

5.router(config-if)#ip address 192.168.83.244 255.255.255.0 主ip地址

router(config-if)#ip address 10.33.55.1 255.255.255.0 secondary輔助ip地址

二、

1.router(config-router)#version 2將rip配置成版本2

2.router(config-ip)#ip rip send version 1隻發rip 1資料包

router(config-ip)#ip rip receive version 2隻接收rip 2資料包

3.router(config-router)#no auto-summary 關閉匯總功能

4.router(config-if)#no ip split-horizon關閉水平分割

5.router#show ip ospf database router 192.168.30.10顯示路由器LSA通告

router#show ip ospf database network 192.168.17.18顯示網路LSA通告

router#show ip ospf database summary 172.16.121.0顯示網路匯總LSA通告

router#show ip ospf database asbr-summary顯示ASBR匯總LSA通告

router#show ip ospf database external 10.83.10.0顯示自主系統外部LSA通告

router#show ip ospf database nssa-external顯示NSSA外部LSA通告

三、

1.router(config)#router ospf 10配置ospf進程id

2.router(config)#interface loopback0

router(config-if)#ip address 192.168.10.1 255.255.255.0配置loopback0介面

3.router(config-router)#area 1 stub 配置stub地區

4.router(config-router)#area 1 stub no-summary配置totally stubby地區

5.router(config-router)#area 1 nssa配置nssa地區

6.router(config-router)#area 25 range 172.16.0.0 255.240.0.0 配置地址匯總

7.router(config-router)#area 100 virtual-link 192.168.100.33 配置虛鏈路

四、

1.router(config)#standby 172 ip 172.16.10.254加入備份組172 指定虛擬IP 位址

2.router(config-if)#standby 47 priority 150配置HSRP的優先順序150

3.router(config-if)#standby 47 preempt 配置HSRP的佔先權

4.router(config-if)#standby 47 ip time 2 9 2表示HELLO時間,9表示保持時間

5.router(config)#interface s0

6.router(config-if)#standby 47 track s0 100配置跟蹤連接埠s0並在連接埠down時減少100

7.router#show standby brief 查看HSRP的狀態

8.router#no debuge all關閉調試功能

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.