靜態路由默認路由的配置

靜態路由實驗

負載均衡的一點是個人理解,有不正確之處歡迎批評指正。?????????????

R1配置:

s0/0/0口:193.1.1.9/30(本地)?? next-hop 193.1.1.10/30? point-to-point link
F0/0設置子接口:F0/0.1 172.17.115.1/24 VLAN1?? F0/0.5 172.17.110.1/24 VLAN6
靜態路由配置:
ip route 192.168.1.0 255.255.255.0? 193.1.1.10
ip route 192.168.2.0 255.255.255.0? 193.1.1.10
ip route 193.1.1.16 255.255.255.252? 193.1.1.10
ip route 1.1.1.0 255.255.255.0? 193.1.1.10
ip route 10.10.0.0 255.255.0.0? 193.1.1.10

S1配置:VLAN 1?? ,VLAN 6? F0/10? F0/11?
PC1:172.17.115.11/24
PC2:172.17.110.11/24

R2配置:? DCE
LOOPBACK口:192.168.1.1/24?? 192.168.2.1/24
s0/0/0口:193.1.1.10/30(本地)?? next-hop 193.1.1.9/30? point-to-point link
s0/0/1口:193.1.1.17/30(本地)?? next-hop 193.1.1.18/30? point-to-point link
靜態路由配置:
ip route 172.17.115.0 255.255.255.0? 193.1.1.9 1/2(管理距離,如有備用路由時)
ip route 172.17.110.0 255.255.255.0? 193.1.1.9
ip route 1.1.1.0 255.255.255.0? 193.1.1.18? permanent (加此參數,則為靜態路由使用的接口出現故障,仍將把路由保存在跌幅表中)
ip route 10.10.2.0 255.255.0.0? 193.1.1.18

R3配置:默認路由

LOOP口:1.1.1.1/24??
F0/0口:10.10.2.1/16
s0/0/1口:193.1.1.18/30(本地)?? next-hop 193.1.1.17/30? point-to-point link
靜態路由配置:
默認路由 ip route 0.0.0.0 0.0.0.0 193.1.1.17
SERVER:10.10.9.61

最終實現全網互聯。

?

R1配置:Router>ena
Router#conf t
Enter configuration commands, one per line.? End with CNTL/Z.
Router(config)#int f0/0
Router(config-if)#no shu?????????? 需要先把接口啟用

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

Router(config-if)#int f0/0.1?????????????? 創建并進入子接口f0/0.1?

%LINK-5-CHANGED: Interface FastEthernet0/0.1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.1, changed state to up??????? 子接口創建即啟動,不需要手動配置。

Router(config-subif)#encapsulation dot1q? 1????? 配置封裝為dot1q。并與VLAN 1相關聯
Router(config-subif)#ip add 172.17.115.1 255.255.255.0?? 配置子接口IP

Router(config-subif)#int f0/0.5

%LINK-5-CHANGED: Interface FastEthernet0/0.5, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.5, changed state to up
Router(config-subif)#encapsulation dot1q? 6
Router(config-subif)#ip add 172.17.110.1 255.255.255.0
Router(config-subif)#exi
Router(config)#int s0/0/0
Router(config-if)#ip add 193.1.1.9 255.255.255.252
Router(config-if)#no shu

%LINK-5-CHANGED: Interface Serial0/0/0, changed state to down
Router(config-if)#exi
Router(config)#ip route 192.168.1.1 255.255.255.0 193.1.1.9
%Inconsistent address and mask???? 出錯是因為需配置目的網段,非主機地址
Router(config)#ip route 192.168.1.0 255.255.255.0 193.1.1.10 通過下一跳IP193.1.1.10到達192.168.1.0網段的靜態路由。
Router(config)#ip route 192.168.1.0 255.255.255.0 193.1.1.10???? 2?? 管理距離默認為1,設置為2即為備用路由。

Router(config)#ip route 192.168.1.0 255.255.255.0 193.1.1.10????1? 管理距離默認為1,設置為1或者不設置即實現負載均衡。負載均衡這點是個人理解,靜態路由基于管理距離進行路由。

Router(config)#ip route 192.168.2.0 255.255.255.0 193.1.1.10
Router(config)#ip route 193.1.1.16 255.255.255.252 193.1.1.10
Router(config)#ip route 1.1.1.0 255.255.255.0 193.1.1.10
Router(config)#ip route 10.10.2.0 255.255.255.0 193.1.1.10
Router(config)#exi

%SYS-5-CONFIG_I: Configured from console by console
Router#wr
Building configuration...
[OK]
Router#

S1配置:

Switch(config)#int vlan 1
Switch(config-if)#no shu

%LINK-5-CHANGED: Interface Vlan1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up

Switch(config-if)#exi
Switch(config)#int vlan 6
Switch(config-if)#no shu
Switch(config-if)#int vlan 1
Switch(config-if)#ip default-gateway 172.17.115.1
Switch(config)#int f0/10
Switch(config-if)#switchport access vlan 6

%LINK-5-CHANGED: Interface Vlan6, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan6, changed state to up
% Access VLAN does not exist. Creating vlan 6
Switch(config-if)#int f0/11
Switch(config-if)#switchport access vlan 6
Switch(config-if)#int f0/24
Switch(config-if)#switchport mode trunk
Switch(config-if)#int f0/2
Switch(config-if)#switchport mode trunk
Switch(config-if)#switchport trunk native vlan 6????? 本地管理VLAN改為VLAN 6。我并未給VLAN6配置地址。這里只是說一下有這個方法可以更改。
Switch(config-if)#exi
Switch(config)#exi

?

?

R2配置:? DCE
Router(config)#int s0/0/0
Router(config-if)#ip add 193.1.1.10 255.255.255.252
Router(config-if)#no shu

%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up

Router(config-if)#clock rate 64000??????配置時鐘速率為64000做為DCE端???
Router(config-if)#exi
Router(config)#exi

Router(config)#int s0/0/1
Router(config-if)#ip add 193.1.1.17 255.255.255.252
Router(config-if)#clock rate 64000
Router(config-if)#no shu

%LINK-5-CHANGED: Interface Serial0/0/1, changed state to down
Router(config-if)#exi
Router(config)#int loopback 1?????????????? 創建環回接口。默認已啟用

%LINK-5-CHANGED: Interface Loopback1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback1, changed state to up

Router(config-if)#ip add 192.168.1.1 255.255.255.0
Router(config-if)#int loopback 2

%LINK-5-CHANGED: Interface Loopback2, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback2, changed state to up

Router(config-if)#ip add 192.168.2.1 255.255.255.0
Router(config-if)#exi
Router(config)#ip route 172.17.115.0 255.255.255.0 193.1.1.9
Router(config)#ip route 172.17.110.0 255.255.255.0 193.1.1.9
Router(config)#ip route 1.1.1.0 255.255.255.0 193.1.1.18
Router(config)#ip route 10.10.0.0 255.255.0.0 193.1.1.18
Router(config)#exi

%SYS-5-CONFIG_I: Configured from console by console
Router#wr
Building configuration...
[OK]
Router#
?

?

R3配置:默認路由

Router(config)#int loop 1

%LINK-5-CHANGED: Interface Loopback1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback1, changed state to up

Router(config-if)#ip add 1.1.1.1 255.255.255.0
Router(config-if)#int f0/0
Router(config-if)#ip add 10.10.2.1 255.255.0.0
Router(config-if)#no shu

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

Router(config-if)#int s0/0/1
Router(config-if)#ip add 193.1.1.18 255.255.255.0
Router(config-if)#no shu

%LINK-5-CHANGED: Interface Serial0/0/1, changed state to up

Router(config)#ip route 0.0.0.0 0.0.0.0 193.1.1.17?? 默認路由:所以流量通過下一跳193.1.1.17發送
Router(config)#exi

%SYS-5-CONFIG_I: Configured from console by console
Router#wr
Building configuration...
[OK]
Router#

?

配置完畢。測試全網互聯正常。

本文轉自 ?還不算暈 ?51CTO博客,原文鏈接:http://blog.51cto.com/haibusuanyun/511035

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/279424.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/279424.shtml
英文地址,請注明出處:http://en.pswp.cn/news/279424.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

r中匯率市場_如何在Word 2013表中匯總行和列

r中匯率市場If you’re working in Word and you need to total values in a table, you can do so without having to enter the data into Excel and then copy and paste it into Word. Word can do simple calculations such as summing, multiplying, and averaging. 如果…

solidity事件詳解

很多同學對Solidity 中的Event有疑問,這篇文章就來詳細的看看Solidity 中Event到底有什么用? 寫在前面 Solidity 是以太坊智能合約編程語言,閱讀本文前,你應該對以太坊、智能合約有所了解,如果你還不了解,建…

敏捷開發

敏捷開發是1990年逐漸引起人們廣泛關注的新型軟件開發方式,它是具有應對快速變化需求的軟件開發能力。相對于非敏捷開發,它是一種以客戶需求為核心,持續迭代,循序漸進的開發方式,敏捷絕非是一種特定的開發方式,而是一種…

MpAndroidChart源碼修改之餅狀圖添加標志線

由于項目需要,需要改MpandroidChart源碼,下面,先看下效果圖:效果圖效果很簡單,但是由于所選依賴庫沒提供相關方法,所以就需要重寫源碼了.這條紅色的標志線其實就是那個影廳的均值嘛,這條線看著是不是和圖表中的連接線很像呢,那把連接線稍加改造不就可以了嗎?下面,先看下此依賴…

數據同步云端本地_如何從云端刪除Windows 8的同步數據

數據同步云端本地The ability to sync data and settings between computers running Windows 8 is great, but it does mean that your information – possibly personal – is stored in the cloud. If you have changed your mind about syncing and want to remove your d…

前端roadmap

轉載于:https://www.cnblogs.com/cleverle/p/9615061.html

mysql 8+ 忘記root密碼 解決方案

在安裝完數據庫后,由于自己不小心直接關閉了安裝窗口,或者長時間沒有使用root用戶登錄系統,導致忘記了root密碼,這時就需要重置MySQL的root密碼。當然,最簡單方式自然是刪除數據庫的data目錄,然后重新安裝數…

安全領域應該關注的網站

http://www.freebuf.com/ https://www.seceye.cn/ https://zhuanlan.zhihu.com/c_118578260 https://www.easyaq.com/samesource/360.shtml http://bobao.360.cn/index/index https://www.sec-wiki.com/event

國內是否可以安裝alexa_Alexa可以聽到您無法聽到的命令,哪些黑客可以利用

國內是否可以安裝alexaYour smart speaker can hear sounds that humans can’t, meaning attackers could hypothetically trigger a command without you noticing. It’s happening in labs right now. 您的智能揚聲器可以聽到人類聽不到的聲音,這意味著攻擊者可…

為什么要使用React Hooks?(5分鐘實例)

前言 React Hooks在React v16.8正式穩定版中加入。 Hooks是什么? React Hooks 就是讓你不必寫class組件就可以用state和其他的React特性;你也可以編寫自己的hooks在不同的組件之間復用;最近很多人都在談論 React Hooks。當使用React類組件那么久&#x…

ActiveMQ在windows下啟動失敗解決方案

activemq.xml文件中的<transportConnectors><!-- DOS protection, limit concurrent connections to 1000 and frame size to 100MB --><transportConnector name"openwire" uri"tcp://0.0.0.0:61616?maximumConnections1000&amp;wireForma…

jest忽略如何添加忽略_大多數人忽略的基本家庭維護任務

jest忽略如何添加忽略Owning a home requires a lot of responsibility, most notably regular maintenance to keep everything working great. However, there are a handful of very basic home maintenance tasks that you might be forgetting about. 擁有房屋需要承擔很多…

自定義常用input表單元素二:純css實現自定義radio單選按鈕

這是接著上一篇純css自定義復選框checkbox的第二篇&#xff0c;自定義一個radio單選按鈕&#xff0c;同樣&#xff0c;采用css偽類和“”css選擇器為思路&#xff0c;下面是預覽圖&#xff1a; 下面直入主題放代碼&#xff1a;HTML部分 <!--兩個name相同的radio--> <i…

Elasticsearch之kopf插件安裝之后的瀏覽詳解

比如&#xff0c;我的這里是http://192.168.80.200:9200/_plugin/kopf/ 1、cluster 2、nodes 3、rest 4、more 5、更多詳情&#xff0c;隨著深入&#xff0c;再貼寫分享&#xff01; 本文轉自大數據躺過的坑博客園博客&#xff0c;原文鏈接&#xff1a;http://www.cnblogs.com/…

郵件系統之webmail

courier-authlib 網址http://www.courier-mta.org/ flush privileges 命令本質上的作用是將當前user和privilige表中的用戶信息/權限設置從mysql庫(MySQL數據庫的內置庫)中提取到內存里 虛擬用戶&#xff1a;Maildir &#xff1a;/var/mailbox/Suexec apache ,httpdusergroupht…

如何將Microsoft Word文檔轉換為PDF

PDFs are handy for distributing documents so that they’re seen the same way by all parties. Typically, you’ll create documents using another app, and then convert them to PDF. Here’s how to do it for a Microsoft Word document. PDF易于分發文檔&#xff0c…

ASP.NET WebApi 基于JWT實現Token簽名認證

一、前言 開發提供數據的WebApi服務&#xff0c;最重要的是數據的安全性。那么對于我們來說&#xff0c;如何確保數據的安全將會是需要思考的問題。在ASP.NET WebService服務中可以通過SoapHead驗證機制來實現&#xff0c;那么在ASP.NET WebApi中我們應該如何保證我們的接口安全…

Cage驗證碼生成器快速上手

Cage小巧&#xff0c;好用。這里在官方基礎例子基礎上做了擴展&#xff1a; 12345678910111213141516171819202122232425262728293031323334package com.lavasoft.ntv.web.common; import com.github.cage.IGenerator; import java.util.Random; /*** 驗證碼生成器 * * author …

馬云:未來無工可打,人工智能發展紅利還在10年以后

馬云雖然已經退出阿里巴巴&#xff0c;但作為一代商業傳奇他所說的話&#xff0c;還十分據有影響力。關于人工智能&#xff0c;馬云提出過不少預測性言論。未來10年&#xff0c;房子、車子都不在值錢。面對人工智能時代&#xff0c;未來傳統行業大部分會消失。更有厲害的&#…

如何更改您的iPhone鈴聲

The problem with having a popular phone like an iPhone is that, by default, everyone has the same ringtone. If you want to give your iPhone a more personal sound, here’s how to do it. 擁有像iPhone這樣的流行手機的問題是&#xff0c;默認情況下&#xff0c;每個…