淘宝支持做微交易网站吗,网页设计与应用论文,互联网公司排名 中国,天津做网站的公司有哪家1. 路由器 路由器工作在三层#xff0c;每个接口都处于不用的网段中#xff0c;即不同的广播域。但大多情况下#xff0c;两台路由器直接相连的接口是同一个广播域#xff0c;即一个网段。 路由器具有判断网络地址和选择路径的功能#xff0c;能在多网络互联的环境中…1. 路由器 路由器工作在三层每个接口都处于不用的网段中即不同的广播域。但大多情况下两台路由器直接相连的接口是同一个广播域即一个网段。 路由器具有判断网络地址和选择路径的功能能在多网络互联的环境中建立灵活的连接可用完全不同的数据分组和介质访问方法连接各种子网。 路由器属于网络层的设备有隔离广播域的作用它的每个端口都是一个独立的广播域也是一个单独的冲突域。
2. 路由 通俗地说去往目标的路径。网络中是指导IP报文转发的路径信息。
3. 路由表 路由的信息都放在路由表当中就是帮助路由进行选路用的是路由器或者三层交换机或者具备三层功能防火墙用于指导IP报文的转发。 查看路由的命令
AR3display ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: PublicDestinations : 7 Routes : 7 Destination/Mask Proto Pre Cost Flags NextHop Interface127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
127.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0192.168.1.0/24 Direct 0 0 D 192.168.1.3 GigabitEthernet0/0/0192.168.1.3/32 Direct 0 0 D 127.0.0.1 GigabitEthernet0/0/0192.168.1.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet0/0/0
255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0AR3 思科中用show 华为默认的路由表如下
AR3display ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: PublicDestinations : 4 Routes : 4 Destination/Mask Proto Pre Cost Flags NextHop Interface127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
127.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0Destination/Mask目标/掩码。 Proto协议。 Pre优先级。 直连路由默认优先级为0。 OSPF华为默认优先级为10和150思科默认优先级为110。 静态路由华为默认为60思科默认静态路由为10。 RIP默认优先级为100。 BGP默认优先级为255。 Cost开销。 Flags标识。下载到FIB。Route FlagsR-relay 中继。D-download to fib。 NextHop下一跳。想要发送数据的下一站。 Interface出接口。数据包发送的接口。一般出接口和下一跳在同一网段。 为什么华为中有默认4个路由表
4. 直连路由与非直连路由 直连路由配置IP地址端口UP状态形成直连路由。例如AR1与AR3AR3与AR1、AR4AR4与AR3、AR5AR5与AR4。即当接口配置IP地址且IP地址和协议都是UP时满足直连路由产生条件。 优点是所有路由当中优先级最高的。 是可以自动生成的。 缺点不能去往非直连的其它网段。 非直连路由需要静态路由或动态路由将网段添加到路由表中。例如AR1与AR4。 直连路由优先级高于非直连路由。 为什么需要非直连路由 由于直连路由存在不足不能去往非自己直连的其它网段。 需要静态路由或动态路由将网段添加到路由表中。
5. 路由转发规则 被转发的路由必须存在。如果不存在直接丢弃。 1. 根据最长匹配原则进行掩码越长越优先转发。 2. 当掩码一样优先级的数值越小越优先转发。 3. 当掩码、优先级一样开销越小越优先转发。 4. 当前述原则一致负载分担。
6. 静态路由 静态路由的应用场景 1. 静态路由是指由管理员手动配置和维护的路由。 2. 静态路由配置简单。无需像动态路由那样占用路由器的CPU资源来计算和分析路由更新。 3. 静态路由一般适用于结构简单的网络。不过即使是在复杂网络环境中合理地配置一些静态路由也可以改进网络的性能。 静态路由的3种语法 在系统视图下执行 1. ip route-static 目标网段 目标网段掩码 出接口 #出接口即g0/0/0。 2. ip route-static 目标网段 目标网段掩码 下一跳 3. ip route-static 目标网段 目标网段掩码 出接口 下一跳 #推荐使用方式 为什么不用出接口容易产生解析失败。 静态路由的不足 静态路由不能动态的根据现网拓扑的改变而改变。
7. 下图为例在AR10上如何访问路由3.3.3.3 先配置AR10配完后暂时无法ping通3.3.3.3
[Huawei]sysname AR10
[AR10]interface LoopBack 0
[AR10-LoopBack0]ip add 1.1.1.1 32
[AR10-LoopBack0]dis ip inter bri
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 3
The number of interface that is DOWN in Physical is 2
The number of interface that is UP in Protocol is 2
The number of interface that is DOWN in Protocol is 3Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 unassigned up down
GigabitEthernet0/0/1 unassigned down down
GigabitEthernet0/0/2 unassigned down down
LoopBack0 1.1.1.1/32 up up(s)
NULL0 unassigned up up(s)
[AR10-LoopBack0]quit
[AR10]interface g0/0/0
[AR10-GigabitEthernet0/0/0]ip add 192.168.1.1 24
Aug 10 2023 18:27:50-08:00 AR10 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP on the interface GigabitEthernet0/0/0 has entered the UP state.
[AR10-GigabitEthernet0/0/0]quit
[AR10]ping 3.3.3.3PING 3.3.3.3: 56 data bytes, press CTRL_C to breakRequest time outRequest time outRequest time outRequest time outRequest time out--- 3.3.3.3 ping statistics ---5 packet(s) transmitted0 packet(s) received100.00% packet loss[AR10] 配置AR11
[AR11]inter g0/0/0
[AR11-GigabitEthernet0/0/0]ip add 192.168.1.2 24
[AR11-GigabitEthernet0/0/0]quit
[AR11]inte g0/0/1
[AR11-GigabitEthernet0/0/1]ip add 172.16.1.2 24
[AR11]inter LoopBack 0
[AR11-LoopBack0]ip add 2.2.2.2 32
[AR11-LoopBack0]quit
[AR11]dis ip inter brief
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 4
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 4
The number of interface that is DOWN in Protocol is 1Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 192.168.1.2/24 up up
GigabitEthernet0/0/1 172.16.1.2/24 up up
GigabitEthernet0/0/2 unassigned down down
LoopBack0 2.2.2.2/32 up up(s)
NULL0 unassigned up up(s)
AR11display ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: PublicDestinations : 11 Routes : 11 Destination/Mask Proto Pre Cost Flags NextHop Interface2.2.2.2/32 Direct 0 0 D 127.0.0.1 LoopBack0127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
127.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0172.16.1.0/24 Direct 0 0 D 172.16.1.2 GigabitEthernet0/0/1172.16.1.2/32 Direct 0 0 D 127.0.0.1 GigabitEthernet0/0/1172.16.1.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet0/0/1192.168.1.0/24 Direct 0 0 D 192.168.1.2 GigabitEthernet0/0/0192.168.1.2/32 Direct 0 0 D 127.0.0.1 GigabitEthernet0/0/0192.168.1.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet0/0/0
255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0AR11 配置AR12
[AR12]inter LoopBack 0
[AR12-LoopBack0]ip add 3.3.3.3 32
[AR12-LoopBack0]quit
[AR12]inter g0/0/0
[AR12-GigabitEthernet0/0/0]ip add 172.16.1.3 24
Aug 11 2023 15:34:54-08:00 AR12 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP on the interface GigabitEthernet0/0/0 has entered the UP state.
[AR12-GigabitEthernet0/0/0]quit
[AR12]dis ip inter bri
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 3
The number of interface that is DOWN in Physical is 2
The number of interface that is UP in Protocol is 3
The number of interface that is DOWN in Protocol is 2Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 172.16.1.3/24 up up
GigabitEthernet0/0/1 unassigned down down
GigabitEthernet0/0/2 unassigned down down
LoopBack0 3.3.3.3/32 up up(s)
NULL0 unassigned up up(s) 配置完成后AR10无法ping通3.3.3.3。 因为数据在传递过程中经过AR11AR10会将数据传递给AR11但AR11上没有通往3.3.3.3的路由。因此AR11设备会丢弃该报文。因此需要在AR11上写入静态路由使之增加到达3.3.3.3的路由
[AR11]ip route-static 3.3.3.3 32 g0/0/0 192.168.1.1 配置完成后AR10依然无法ping通3.3.3.3。 因为数据在传递过程中AR0发现到达3.3.3.3需要通过AR11设备的172.16.1.2接口。因此AR10会将数据传递给AR11设备。AR11设备到达3.3.3.3需经过AR12设备的172.16.1.3接口。因此AR12会接收数据并传给直连路由3.3.3.3。 但是如果想要ping通3.3.3.3数据已然发送成功也要接收成功。因此数据能够从AR12返回给AR10才能ping通。
8. 负载分担与负载均衡 负载分担从AR6出来的流量 M N 100%但M ! N例如M 40%N 60%。 负载均衡从AR6出来的流量 M N 100%且M N 50%。 分逐流和逐包默认逐流。
9. 路由器控制平面和转发平面 路由器的两大典型功能数据通道功能和控制功能。 数据通道功能包括转发决定、背板转发以及输出链路调度等一般由特定的硬件来完成控制功能一般用软件完成包括与相邻路由器之间的信息交接、系统配置、系统管理等。 管理平面/控制平面统称控制平面、分布平面 控制平面用于控制和管理所有网络协议的运行例如生成树协议、VLAN协议、ARP协议、各种路由协议和组播协议等的管理与控制。 控制平面通过网络协议提供给路由器/交换机对整个网络环境中的网络设备、连接链路和交互协议准确了解并在网络状况发送改变时做出及时的调整以维护网络的正常运行。 控制平面提供转发前所需的各种网络信息。 控制平面并不占用过多的硬件资源但在正常状态下依然是网络设备CPU资源的主要占用平面控制平面主要靠CPU资源来处理信息。 display ip routing-table 查看IP路由表属控制平面范畴路由信息数据库RIB。 路由器不依赖控制平面进行数据转发。 数据转发平面/数据平面 对于数据处理过程中各种具体的处理转发过程例如L2/L3/ACL/QOS/组播/安全防护等个功能的具体执行过程都属于数据转发平面的任务范畴。 display fib 查看最终迭代的出接口属数据平面范畴转发信息数据库FIB。 路由器依赖数据平面进行数据转发。
10. 路由表和FIB表 每个路由器都至少保存着一张路由表routing-table和一张FIBForwarding Information Base表。
11. Loopback是逻辑接口区别于实际的物理接口只要配置IP地址即为UP状态。配置命令为
[AR11]inter LoopBack 0
[AR11-LoopBack0]ip add 2.2.2.2 32
12. 默认路由 默认路由一般在末节点配置。优点是仅仅用一条路由代替所有路由条目。
[AR10]ip route-static 0.0.0.0 0 下一跳 注意0.0.0.0 0 表示任意IP其中第5个0为掩码表示32个0。 明细路由具体到某一网段。 默认路由 路由转发规则明细路由优先级高于默认路由。如果路由表当中明细路由和默认路由同时存在则明细路由优先转发。当路由表中只有默认路由时会选择默认路由。 一般不要在中间节点写2条默认路由容易产生环路。
13. 删除路由
[AR10]undo ip route-static 3.3.3.0 255.255.255.0 GigabitEthernet0/0/0 192.168.1.2 先查看当前的静态路由之后通过undo删除
[AR10]display current-configuration
[V200R003C00]
#sysname AR10
#snmp-agent local-engineid 800007DB03000000000000snmp-agent
#clock timezone China-Standard-Time minus 08:00:00
#
portal local-server load flash:/portalpage.zip
#drop illegal-mac alarm
#wlan ac-global carrier id other ac id 0
#set cpu-usage threshold 80 restore 75
#
aaa authentication-scheme defaultauthorization-scheme defaultaccounting-scheme defaultdomain default domain default_admin local-user admin password cipher %$%$K8m.Nt84DZ}e#08bmE3Uw}%$%$local-user admin service-type http
#
firewall zone Localpriority 15
#
interface GigabitEthernet0/0/0ip address 192.168.1.1 255.255.255.0
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2
#
interface NULL0
#
interface LoopBack0ip address 1.1.1.1 255.255.255.255
#
ip route-static 3.3.3.0 255.255.255.0 GigabitEthernet0/0/0 192.168.1.2
#
user-interface con 0authentication-mode password
user-interface vty 0 4
user-interface vty 16 20
#
wlan ac
#
return
[AR10]undo ip route-static 3.3.3.0 255.255.255.0 GigabitEthernet0/0/0 192.168.1.2
[AR10]display current-configuration
[V200R003C00]
#sysname AR10
#snmp-agent local-engineid 800007DB03000000000000snmp-agent
#clock timezone China-Standard-Time minus 08:00:00
#
portal local-server load flash:/portalpage.zip
#drop illegal-mac alarm
#wlan ac-global carrier id other ac id 0
#set cpu-usage threshold 80 restore 75
#
aaa authentication-scheme defaultauthorization-scheme defaultaccounting-scheme defaultdomain default domain default_admin local-user admin password cipher %$%$K8m.Nt84DZ}e#08bmE3Uw}%$%$local-user admin service-type http
#
firewall zone Localpriority 15
#
interface GigabitEthernet0/0/0ip address 192.168.1.1 255.255.255.0
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2
#
interface NULL0
#
interface LoopBack0ip address 1.1.1.1 255.255.255.255
#
user-interface con 0authentication-mode password
user-interface vty 0 4
user-interface vty 16 20
#
wlan ac
#
return
[AR10]14. 浮动路由 浮动路由就是只让主链路进行工作备链路不让转发流量。 当主链路出现问题时路由器选择备用链路。当主链路恢复路由器会选择主链路。
15. 路由器转发数据使用 Routing table而交换机转发数据使用cam cable。