当前位置: 首页 > news >正文

濮阳网站建设哪家好网页打不开网络正常怎么办

濮阳网站建设哪家好,网页打不开网络正常怎么办,品牌网站建设荐选蝌蚪,福州短视频seo网红目录 华为路由器静态路由和默认路由的写法 静态路由和默认路由的区别 案例 华为路由器静态路由和默认路由的写法 配置静态路由#xff1a; [Huawei] ip route-static 目标网络 子网掩码 下一跳地址 实例#xff1a;将目标网络192.168.10.0/24的流…目录 华为路由器静态路由和默认路由的写法 静态路由和默认路由的区别 案例 华为路由器静态路由和默认路由的写法 配置静态路由 [Huawei] ip route-static 目标网络 子网掩码 下一跳地址 实例将目标网络192.168.10.0/24的流量发送到下一跳地址10.0.0.1 [Huawei] ip route-static 192.168.10.0 255.255.255.0 10.0.0.1 配置默认路由 [Huawei] ip route-static 0.0.0.0 0.0.0.0 下一跳地址 实例将未知目标网络的流量发送到默认下一跳地址203.0.113.1 [Huawei] ip route-static 0.0.0.0 0.0.0.0 203.0.113.1 静态路由和默认路由的区别 静态路由需要手动为每个目标网络配置路由表项。当网络规模变大时需要手动配置大量的路由表项而且路由表需要经常更新以适应网络拓扑的变化。而默认路由只需要配置一条路由表项将所有未知目标网络的流量都发送到下一跳地址这样可以简化路由表的配置和维护。 静态路由通常需要手动配置和更新因此对于复杂的网络拓扑或动态变化的网络环境静态路由可能不够灵活。而默认路由则更加简单和灵活适用于较简单的网络环境或者那些需要快速配置的场景。 静态路由的路由选择是基于管理员手动配置的路由策略来决定下一跳地址。管理员可以根据具体的需求配置不同的路由策略例如基于最短路径、最优成本等。而默认路由会将所有未知目标网络的流量发送到预设的下一跳地址没有复杂的路由选择过程。 静态路由没有自动学习的能力需要手动配置每个目标网络的路由表项。而一些路由协议如OSPF或BGP可以自动学习和更新路由表根据网络的动态变化自动调整路由路径。虽然默认路由本身不具备自动学习的能力但是当与动态路由协议结合使用时可以从邻居路由器处自动学习到默认路由。 案例 下面来看案例这次案例比较简单主要看现象 设备配置如下 为LSW1配置默认路由  Huaweisys Enter system view, return user view with CtrlZ. [Huawei]sysname LSW1 [LSW1]vlan batch Sep 17 2023 16:47:30-08:00 LSW1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.2 5.191.3.1 configurations have been changed. The current change number is 4, the [LSW1]undo info-center enable Info: Information center is disabled. [LSW1]vlan batch 10 30 101 Info: This operation may take a few seconds. Please wait for a moment...done. [LSW1]interface g0/0/9 [LSW1-GigabitEthernet0/0/9]port link-type access [LSW1-GigabitEthernet0/0/9]port default vlan 10 [LSW1-GigabitEthernet0/0/9]qu [LSW1]interface g0/0/13 [LSW1-GigabitEthernet0/0/13]port link-type access [LSW1-GigabitEthernet0/0/13]port default vlan 30 [LSW1-GigabitEthernet0/0/13]qu [LSW1]interface g0/0/24 [LSW1-GigabitEthernet0/0/24]port link-type access [LSW1-GigabitEthernet0/0/24]port default vlan 101 [LSW1-GigabitEthernet0/0/24]qu [LSW1]display vlan The total number of vlans is : 4 -------------------------------------------------------------------------------- U: Up; D: Down; TG: Tagged; UT: Untagged; MP: Vlan-mapping; ST: Vlan-stacking; #: ProtocolTransparent-vlan; *: Management-vlan; --------------------------------------------------------------------------------VID Type Ports -------------------------------------------------------------------------------- 1 common UT:GE0/0/1(D) GE0/0/2(D) GE0/0/3(D) GE0/0/4(D) GE0/0/5(D) GE0/0/6(D) GE0/0/7(D) GE0/0/8(D) GE0/0/10(D) GE0/0/11(D) GE0/0/12(D) GE0/0/14(D) GE0/0/15(D) GE0/0/16(D) GE0/0/17(D) GE0/0/18(D) GE0/0/19(D) GE0/0/20(D) GE0/0/21(D) GE0/0/22(D) GE0/0/23(D) 10 common UT:GE0/0/9(U) 30 common UT:GE0/0/13(U) 101 common UT:GE0/0/24(U) VID Status Property MAC-LRN Statistics Description --------------------------------------------------------------------------------1 enable default enable disable VLAN 0001 10 enable default enable disable VLAN 0010 30 enable default enable disable VLAN 0030 101 enable default enable disable VLAN 0101 [LSW1]display port vlan Port Link Type PVID Trunk VLAN List ------------------------------------------------------------------------------- GigabitEthernet0/0/1 hybrid 1 - GigabitEthernet0/0/2 hybrid 1 - GigabitEthernet0/0/3 hybrid 1 - GigabitEthernet0/0/4 hybrid 1 - GigabitEthernet0/0/5 hybrid 1 - GigabitEthernet0/0/6 hybrid 1 - GigabitEthernet0/0/7 hybrid 1 - GigabitEthernet0/0/8 hybrid 1 - GigabitEthernet0/0/9 access 10 - GigabitEthernet0/0/10 hybrid 1 - GigabitEthernet0/0/11 hybrid 1 - GigabitEthernet0/0/12 hybrid 1 - GigabitEthernet0/0/13 access 30 - GigabitEthernet0/0/14 hybrid 1 - GigabitEthernet0/0/15 hybrid 1 - GigabitEthernet0/0/16 hybrid 1 - GigabitEthernet0/0/17 hybrid 1 - GigabitEthernet0/0/18 hybrid 1 - GigabitEthernet0/0/19 hybrid 1 - GigabitEthernet0/0/20 hybrid 1 - GigabitEthernet0/0/21 hybrid 1 - GigabitEthernet0/0/22 hybrid 1 - GigabitEthernet0/0/23 hybrid 1 - GigabitEthernet0/0/24 access 101 - [LSW1]interface vlanif 10 [LSW1-Vlanif10]ip address 192.168.10.1 24 [LSW1-Vlanif10]qu [LSW1]interface vlanif 30 [LSW1-Vlanif30]ip address 192.168.30.1 24 [LSW1-Vlanif30]qu [LSW1]interface vlanif 101 [LSW1-Vlanif101]ip address 192.168.101.1 24 [LSW1-Vlanif101]qu[LSW1]display interface brief PHY: Physical *down: administratively down (l): loopback (s): spoofing (b): BFD down (e): ETHOAM down (dl): DLDP down (d): Dampening Suppressed InUti/OutUti: input utility/output utility Interface PHY Protocol InUti OutUti inErrors outErrors GigabitEthernet0/0/1 down down 0% 0% 0 0 GigabitEthernet0/0/2 down down 0% 0% 0 0 GigabitEthernet0/0/3 down down 0% 0% 0 0 GigabitEthernet0/0/4 down down 0% 0% 0 0 GigabitEthernet0/0/5 down down 0% 0% 0 0 GigabitEthernet0/0/6 down down 0% 0% 0 0 GigabitEthernet0/0/7 down down 0% 0% 0 0 GigabitEthernet0/0/8 down down 0% 0% 0 0 GigabitEthernet0/0/9 up up 0% 0% 0 0 GigabitEthernet0/0/10 down down 0% 0% 0 0 GigabitEthernet0/0/11 down down 0% 0% 0 0 GigabitEthernet0/0/12 down down 0% 0% 0 0 GigabitEthernet0/0/13 up up 0% 0% 0 0 GigabitEthernet0/0/14 down down 0% 0% 0 0 GigabitEthernet0/0/15 down down 0% 0% 0 0 GigabitEthernet0/0/16 down down 0% 0% 0 0 GigabitEthernet0/0/17 down down 0% 0% 0 0 GigabitEthernet0/0/18 down down 0% 0% 0 0 GigabitEthernet0/0/19 down down 0% 0% 0 0 GigabitEthernet0/0/20 down down 0% 0% 0 0 GigabitEthernet0/0/21 down down 0% 0% 0 0 GigabitEthernet0/0/22 down down 0% 0% 0 0 GigabitEthernet0/0/23 down down 0% 0% 0 0 GigabitEthernet0/0/24 up up 0% 0% 0 0[LSW1]display ip interface 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 2 The number of interface that is UP in Protocol is 4 The number of interface that is DOWN in Protocol is 2Interface IP Address/Mask Physical Protocol MEth0/0/1 unassigned down down NULL0 unassigned up up(s) Vlanif1 unassigned down down Vlanif10 192.168.10.1/24 up up Vlanif30 192.168.30.1/24 up up Vlanif101 192.168.101.1/24 up up [LSW1]display IP interface vlanif 10 Vlanif10 current state : UP Line protocol current state : UP The Maximum Transmit Unit : 1500 bytes input packets : 0, bytes : 0, multicasts : 0 output packets : 0, bytes : 0, multicasts : 0 Directed-broadcast packets:received packets: 0, sent packets: 0 forwarded packets: 0, dropped packets: 0 Internet Address is 192.168.10.1/24 Broadcast address : 192.168.10.255 TTL being 1 packet number: 0 TTL invalid packet number: 0 ICMP packet input number: 0Echo reply: 0Unreachable: 0Source quench: 0Routing redirect: 0Echo request: 0Router advert: 0Router solicit: 0Time exceed: 0IP header bad: 0Timestamp request: [LSW1]display IP interface vlanif 30 Vlanif30 current state : UP Line protocol current state : UP The Maximum Transmit Unit : 1500 bytes input packets : 0, bytes : 0, multicasts : 0 output packets : 0, bytes : 0, multicasts : 0 Directed-broadcast packets:received packets: 0, sent packets: 0 forwarded packets: 0, dropped packets: 0 Internet Address is 192.168.30.1/24 Broadcast address : 192.168.30.255 TTL being 1 packet number: 0 TTL invalid packet number: 0 ICMP packet input number: 0Echo reply: 0Unreachable: 0Source quench: 0Routing redirect: 0Echo request: 0Router advert: 0Router solicit: 0Time exceed: 0IP header bad: 0Timestamp request: [LSW1]display IP interface vlanif 101 Vlanif101 current state : UP Line protocol current state : UP The Maximum Transmit Unit : 1500 bytes input packets : 0, bytes : 0, multicasts : 0 output packets : 0, bytes : 0, multicasts : 0 Directed-broadcast packets:received packets: 0, sent packets: 0 forwarded packets: 0, dropped packets: 0 Internet Address is 192.168.101.1/24 Broadcast address : 192.168.101.255 TTL being 1 packet number: 0 TTL invalid packet number: 0 ICMP packet input number: 0Echo reply: 0Unreachable: 0Source quench: 0Routing redirect: 0Echo request: 0Router advert: 0Router solicit: 0Time exceed: 0IP header bad: 0Timestamp request: 0Timestamp reply: 0[LSW1]display IP routing-table Route Flags: R - relay, D - download to fib ------------------------------------------------------------------------------ Routing Tables: PublicDestinations : 8 Routes : 8 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 InLoopBack0192.168.10.0/24 Direct 0 0 D 192.168.10.1 Vlanif10192.168.10.1/32 Direct 0 0 D 127.0.0.1 Vlanif10192.168.30.0/24 Direct 0 0 D 192.168.30.1 Vlanif30192.168.30.1/32 Direct 0 0 D 127.0.0.1 Vlanif30192.168.101.0/24 Direct 0 0 D 192.168.101.1 Vlanif101192.168.101.1/32 Direct 0 0 D 127.0.0.1 Vlanif101 同理为LSW2配置默认路由  Huaweisys Enter system view, return user view with CtrlZ. [Huawei]sysname LSW2 [LSW2]vlan batch Sep 17 2023 16:55:00-08:00 LSW2 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.2 5.191.3.1 configurations have been changed. The current change number is 4, the change loop count is 0, and the maximum number of records is 4095.^ Error:Incomplete command found at ^ position. [LSW2]undo info-center enable Info: Information center is disabled. [LSW2]vlan batch 80 81 102 Info: This operation may take a few seconds. Please wait for a moment...done. [LSW2]interface g0/0/9 [LSW2-GigabitEthernet0/0/9]port link-type access [LSW2-GigabitEthernet0/0/9]qu [LSW2]interface g0/0/15 [LSW2-GigabitEthernet0/0/15]port link-type access [LSW2-GigabitEthernet0/0/15]port default vlan 80 [LSW2-GigabitEthernet0/0/15]qu [LSW2]interface g0/0/17 [LSW2-GigabitEthernet0/0/17]port link-type access [LSW2-GigabitEthernet0/0/17]port default vlan 81 [LSW2-GigabitEthernet0/0/17]qu [LSW2]interface g0/0/24 [LSW2-GigabitEthernet0/0/24]port link-type access [LSW2-GigabitEthernet0/0/24]port default vlan 102 [LSW2-GigabitEthernet0/0/24]qu [LSW2]display vlan The total number of vlans is : 4 -------------------------------------------------------------------------------- U: Up; D: Down; TG: Tagged; UT: Untagged; MP: Vlan-mapping; ST: Vlan-stacking; #: ProtocolTransparent-vlan; *: Management-vlan; --------------------------------------------------------------------------------VID Type Ports -------------------------------------------------------------------------------- 1 common UT:GE0/0/1(D) GE0/0/2(D) GE0/0/3(D) GE0/0/4(D) GE0/0/5(D) GE0/0/6(D) GE0/0/7(D) GE0/0/8(D) GE0/0/9(D) GE0/0/10(D) GE0/0/11(D) GE0/0/12(D) GE0/0/13(D) GE0/0/14(D) GE0/0/16(D) GE0/0/18(D) GE0/0/19(D) GE0/0/20(D) GE0/0/21(D) GE0/0/22(D) GE0/0/23(D) 80 common UT:GE0/0/15(U) 81 common UT:GE0/0/17(U) 102 common UT:GE0/0/24(U) VID Status Property MAC-LRN Statistics Description --------------------------------------------------------------------------------1 enable default enable disable VLAN 0001 80 enable default enable disable VLAN 0080 81 enable default enable disable VLAN 0081 102 enable default enable disable VLAN 0102 [LSW2]display port vlan Port Link Type PVID Trunk VLAN List ------------------------------------------------------------------------------- GigabitEthernet0/0/1 hybrid 1 - GigabitEthernet0/0/2 hybrid 1 - GigabitEthernet0/0/3 hybrid 1 - GigabitEthernet0/0/4 hybrid 1 - GigabitEthernet0/0/5 hybrid 1 - GigabitEthernet0/0/6 hybrid 1 - GigabitEthernet0/0/7 hybrid 1 - GigabitEthernet0/0/8 hybrid 1 - GigabitEthernet0/0/9 access 1 - GigabitEthernet0/0/10 hybrid 1 - GigabitEthernet0/0/11 hybrid 1 - GigabitEthernet0/0/12 hybrid 1 - GigabitEthernet0/0/13 hybrid 1 - GigabitEthernet0/0/14 hybrid 1 - GigabitEthernet0/0/15 access 80 - GigabitEthernet0/0/16 hybrid 1 - GigabitEthernet0/0/17 access 81 - GigabitEthernet0/0/18 hybrid 1 - GigabitEthernet0/0/19 hybrid 1 - GigabitEthernet0/0/20 hybrid 1 - GigabitEthernet0/0/21 hybrid 1 - GigabitEthernet0/0/22 hybrid 1 - GigabitEthernet0/0/23 hybrid 1 - GigabitEthernet0/0/24 access 102 - [LSW2]display port vlan Port Link Type PVID Trunk VLAN List ------------------------------------------------------------------------------- GigabitEthernet0/0/1 hybrid 1 - GigabitEthernet0/0/2 hybrid 1 - GigabitEthernet0/0/3 hybrid 1 - GigabitEthernet0/0/4 hybrid 1 - GigabitEthernet0/0/5 hybrid 1 - GigabitEthernet0/0/6 hybrid 1 - GigabitEthernet0/0/7 hybrid 1 - GigabitEthernet0/0/8 hybrid 1 - GigabitEthernet0/0/9 access 1 - GigabitEthernet0/0/10 hybrid 1 - GigabitEthernet0/0/11 hybrid 1 - GigabitEthernet0/0/12 hybrid 1 - GigabitEthernet0/0/13 hybrid 1 - GigabitEthernet0/0/14 hybrid 1 - GigabitEthernet0/0/15 access 80 - GigabitEthernet0/0/16 hybrid 1 - GigabitEthernet0/0/17 access 81 - GigabitEthernet0/0/18 hybrid 1 - GigabitEthernet0/0/19 hybrid 1 - GigabitEthernet0/0/20 hybrid 1 - GigabitEthernet0/0/21 hybrid 1 - GigabitEthernet0/0/22 hybrid 1 - GigabitEthernet0/0/23 hybrid 1 - GigabitEthernet0/0/24 access 102 - [LSW2]interface vlanif 80 [LSW2-Vlanif80]ip address 192.168.80.1 24 [LSW2-Vlanif80]qu [LSW2]interface vlanif 81 [LSW2-Vlanif81]ip address 192.168.81.1 24 [LSW2-Vlanif81]qu [LSW2]interface vlanif 102 [LSW2-Vlanif102]ip address 192.168.102.1 24 [LSW2-Vlanif102]qu[LSW2]display interface brief PHY: Physical *down: administratively down (l): loopback (s): spoofing (b): BFD down (e): ETHOAM down (dl): DLDP down (d): Dampening Suppressed InUti/OutUti: input utility/output utility Interface PHY Protocol InUti OutUti inErrors outErrors GigabitEthernet0/0/1 down down 0% 0% 0 0 GigabitEthernet0/0/2 down down 0% 0% 0 0 GigabitEthernet0/0/3 down down 0% 0% 0 0 GigabitEthernet0/0/4 down down 0% 0% 0 0 GigabitEthernet0/0/5 down down 0% 0% 0 0 GigabitEthernet0/0/6 down down 0% 0% 0 0 GigabitEthernet0/0/7 down down 0% 0% 0 0 GigabitEthernet0/0/8 down down 0% 0% 0 0 GigabitEthernet0/0/9 down down 0% 0% 0 0 GigabitEthernet0/0/10 down down 0% 0% 0 0 GigabitEthernet0/0/11 down down 0% 0% 0 0 GigabitEthernet0/0/12 down down 0% 0% 0 0 GigabitEthernet0/0/13 down down 0% 0% 0 0 GigabitEthernet0/0/14 down down 0% 0% 0 0 GigabitEthernet0/0/15 up up 0% 0% 0 0 GigabitEthernet0/0/16 down down 0% 0% 0 0 GigabitEthernet0/0/17 up up 0% 0% 0 0 GigabitEthernet0/0/18 down down 0% 0% 0 0 GigabitEthernet0/0/19 down down 0% 0% 0 0 GigabitEthernet0/0/20 down down 0% 0% 0 0 GigabitEthernet0/0/21 down down 0% 0% 0 0 GigabitEthernet0/0/22 down down 0% 0% 0 0 GigabitEthernet0/0/23 down down 0% 0% 0 0 GigabitEthernet0/0/24 up up 0% 0% 0 0[LSW2]display ip interface 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 2 The number of interface that is UP in Protocol is 4 The number of interface that is DOWN in Protocol is 2Interface IP Address/Mask Physical Protocol MEth0/0/1 unassigned down down NULL0 unassigned up up(s) Vlanif1 unassigned down down Vlanif80 192.168.80.1/24 up up Vlanif81 192.168.81.1/24 up up Vlanif102 192.168.102.1/24 up up [LSW2]display IP interface vlanif 80 Vlanif80 current state : UP Line protocol current state : UP The Maximum Transmit Unit : 1500 bytes input packets : 0, bytes : 0, multicasts : 0 output packets : 0, bytes : 0, multicasts : 0 Directed-broadcast packets:received packets: 0, sent packets: 0 forwarded packets: 0, dropped packets: 0 Internet Address is 192.168.80.1/24 Broadcast address : 192.168.80.255 TTL being 1 packet number: 0 TTL invalid packet number: 0 ICMP packet input number: 0Echo reply: 0Unreachable: 0Source quench: 0Routing redirect: 0Echo request: 0Router advert: 0Router solicit: 0Time exceed: 0IP header bad: 0Timestamp request: [LSW2]display IP interface vlanif 81 Vlanif81 current state : UP Line protocol current state : UP The Maximum Transmit Unit : 1500 bytes input packets : 0, bytes : 0, multicasts : 0 output packets : 0, bytes : 0, multicasts : 0 Directed-broadcast packets:received packets: 0, sent packets: 0 forwarded packets: 0, dropped packets: 0 Internet Address is 192.168.81.1/24 Broadcast address : 192.168.81.255 TTL being 1 packet number: 0 TTL invalid packet number: 0 ICMP packet input number: 0Echo reply: 0Unreachable: 0Source quench: 0Routing redirect: 0Echo request: 0Router advert: 0Router solicit: 0Time exceed: 0IP header bad: 0Timestamp request: 0Timestamp reply: 0[LSW2]display IP interface vlanif 102 Vlanif102 current state : UP Line protocol current state : UP The Maximum Transmit Unit : 1500 bytes input packets : 0, bytes : 0, multicasts : 0 output packets : 0, bytes : 0, multicasts : 0 Directed-broadcast packets:received packets: 0, sent packets: 0 forwarded packets: 0, dropped packets: 0 Internet Address is 192.168.102.1/24 Broadcast address : 192.168.102.255 TTL being 1 packet number: 0 TTL invalid packet number: 0 ICMP packet input number: 0Echo reply: 0Unreachable: 0Source quench: 0Routing redirect: 0Echo request: 0Router advert: 0Router solicit: 0Time exceed: 0IP header bad: 0Timestamp request: 0Timestamp reply: 0[LSW2]display IP routing-table Route Flags: R - relay, D - download to fib ------------------------------------------------------------------------------ Routing Tables: PublicDestinations : 8 Routes : 8 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 InLoopBack0192.168.80.0/24 Direct 0 0 D 192.168.80.1 Vlanif80192.168.80.1/32 Direct 0 0 D 127.0.0.1 Vlanif80192.168.81.0/24 Direct 0 0 D 192.168.81.1 Vlanif81192.168.81.1/32 Direct 0 0 D 127.0.0.1 Vlanif81192.168.102.0/24 Direct 0 0 D 192.168.102.1 Vlanif102192.168.102.1/32 Direct 0 0 D 127.0.0.1 Vlanif102配置路由器RTA端口 Huaweisys Enter system view, return user view with CtrlZ. [Huawei]sysname RTA #配置连接交换机LSW1的端口g0/0/1及对应的ip地址 [RTA]interface g0/0/1 [RTA-GigabitEthernet0/0/1]ip address 192.168.101.2 24 [RTA-GigabitEthernet0/0/1] Sep 17 2023 17:06:09-08:00 RTA %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IPon the interface GigabitEthernet0/0/1 has entered the UP state. [RTA-GigabitEthernet0/0/1]qu [RTA]interface g0/0/2 [RTA-GigabitEthernet0/0/2]ip address 192.168.102.2 24 Sep 17 2023 17:06:56-08:00 RTA %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IPon the interface GigabitEthernet0/0/2 has entered the UP state. [RTA-GigabitEthernet0/0/2]qu #配置环回接口 IP 地址模拟校园网上的一台主机。 # 环回接口 Loopback 用于模拟在路由器后的一个IP 网段。Loopback 接口作为一个逻辑接口并不真实存在并且该接口永远不会 DOWN正是由于这个特性使得 Loopback 接口常用于: 网络测试、协议的 RouerID、建立基于Loopback 的邻接关系、作为SNMP traps 消息的源地址等 [RTA]interface loopback 0 [RTA-LoopBack0]ip address 10.1.1.10 23 [RTA-LoopBack0]qu [RTA]display interface brief PHY: Physical *down: administratively down (l): loopback (s): spoofing (b): BFD down ^down: standby (e): ETHOAM down (d): Dampening Suppressed InUti/OutUti: input utility/output utility Interface PHY Protocol InUti OutUti inErrors outErrors GigabitEthernet0/0/0 down down 0% 0% 0 0 GigabitEthernet0/0/1 up up 0% 0% 0 0 GigabitEthernet0/0/2 up up 0% 0% 0 0 LoopBack0 up up(s) 0% 0% 0 0 NULL0 up up(s) 0% 0% 0 0 [RTA]display ip interface 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 unassigned down down GigabitEthernet0/0/1 192.168.101.2/24 up up GigabitEthernet0/0/2 192.168.102.2/24 up up LoopBack0 10.1.1.10/23 up up(s) NULL0 unassigned up up(s) [RTA]display IP interface g0/0/1 GigabitEthernet0/0/1 current state : UP Line protocol current state : UP The Maximum Transmit Unit : 1500 bytes input packets : 0, bytes : 0, multicasts : 0 output packets : 0, bytes : 0, multicasts : 0 Directed-broadcast packets:received packets: 0, sent packets: 0 forwarded packets: 0, dropped packets: 0 ARP packet input number: 0Request packet: 0Reply packet: 0Unknown packet: 0 Internet Address is 192.168.101.2/24 Broadcast address : 192.168.101.255 TTL being 1 packet number: 0 TTL invalid packet number: 0 ICMP packet input number: 0Echo reply: 0Unreachable: 0Source quench: 0Routing redirect: 0Echo request: 0Router advert: [RTA]display IP interface g0/0/2 GigabitEthernet0/0/2 current state : UP Line protocol current state : UP The Maximum Transmit Unit : 1500 bytes input packets : 0, bytes : 0, multicasts : 0 output packets : 0, bytes : 0, multicasts : 0 Directed-broadcast packets:received packets: 0, sent packets: 0 forwarded packets: 0, dropped packets: 0 ARP packet input number: 0Request packet: 0Reply packet: 0Unknown packet: 0 Internet Address is 192.168.102.2/24 Broadcast address : 192.168.102.255 TTL being 1 packet number: 0 TTL invalid packet number: 0 ICMP packet input number: 0Echo reply: 0Unreachable: 0Source quench: 0Routing redirect: 0Echo request: 0Router advert: 0Router solicit: 0[RTA]display IP routing-table Route Flags: R - relay, D - download to fib ------------------------------------------------------------------------------ Routing Tables: PublicDestinations : 13 Routes : 13 Destination/Mask Proto Pre Cost Flags NextHop Interface10.1.0.0/23 Direct 0 0 D 10.1.1.10 LoopBack010.1.1.10/32 Direct 0 0 D 127.0.0.1 LoopBack010.1.1.255/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 InLoopBack0192.168.101.0/24 Direct 0 0 D 192.168.101.2 GigabitEthernet 0/0/1192.168.101.2/32 Direct 0 0 D 127.0.0.1 GigabitEthernet 0/0/1 192.168.101.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet 0/0/1192.168.102.0/24 Direct 0 0 D 192.168.102.2 GigabitEthernet 0/0/2192.168.102.2/32 Direct 0 0 D 127.0.0.1 GigabitEthernet 0/0/2 192.168.102.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet 0/0/2 255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0 在PC-10-1 ping其他主机 PCping 192.168.30.11Ping 192.168.30.11: 32 data bytes, Press Ctrl_C to break From 192.168.30.11: bytes32 seq1 ttl127 time62 ms From 192.168.30.11: bytes32 seq2 ttl127 time31 ms From 192.168.30.11: bytes32 seq3 ttl127 time32 ms From 192.168.30.11: bytes32 seq4 ttl127 time31 ms From 192.168.30.11: bytes32 seq5 ttl127 time47 ms--- 192.168.30.11 ping statistics ---5 packet(s) transmitted5 packet(s) received0.00% packet lossround-trip min/avg/max 31/40/62 msPCping 192.168.80.11Ping 192.168.80.11: 32 data bytes, Press Ctrl_C to break Request timeout! Request timeout! Request timeout! Request timeout! Request timeout!--- 192.168.80.11 ping statistics ---5 packet(s) transmitted0 packet(s) received100.00% packet lossPCping 192.168.81.11Ping 192.168.81.11: 32 data bytes, Press Ctrl_C to break Request timeout! Request timeout! Request timeout! Request timeout! Request timeout!--- 192.168.81.11 ping statistics ---5 packet(s) transmitted0 packet(s) received100.00% packet lossPCping 10.1.1.10Ping 10.1.1.10: 32 data bytes, Press Ctrl_C to break Request timeout! Request timeout! Request timeout! Request timeout! Request timeout!--- 10.1.1.10 ping statistics ---5 packet(s) transmitted0 packet(s) received100.00% packet loss 在PC-30-1上ping其他主机 PCping 192.168.10.11Ping 192.168.10.11: 32 data bytes, Press Ctrl_C to break From 192.168.10.11: bytes32 seq1 ttl127 time31 ms From 192.168.10.11: bytes32 seq2 ttl127 time47 ms From 192.168.10.11: bytes32 seq3 ttl127 time47 ms From 192.168.10.11: bytes32 seq4 ttl127 time31 ms From 192.168.10.11: bytes32 seq5 ttl127 time31 ms--- 192.168.10.11 ping statistics ---5 packet(s) transmitted5 packet(s) received0.00% packet lossround-trip min/avg/max 31/37/47 msPCping 192.168.80.11Ping 192.168.80.11: 32 data bytes, Press Ctrl_C to break Request timeout! Request timeout! Request timeout! Request timeout! Request timeout!--- 192.168.80.11 ping statistics ---5 packet(s) transmitted0 packet(s) received100.00% packet lossPCping 192.168.81.11Ping 192.168.81.11: 32 data bytes, Press Ctrl_C to break Request timeout! Request timeout! Request timeout! Request timeout! Request timeout!--- 192.168.81.11 ping statistics ---5 packet(s) transmitted0 packet(s) received100.00% packet lossPCping 10.1.1.10Ping 10.1.1.10: 32 data bytes, Press Ctrl_C to break Request timeout! Request timeout! Request timeout! Request timeout! Request timeout!--- 10.1.1.10 ping statistics ---5 packet(s) transmitted0 packet(s) received100.00% packet loss 在PC-80-1上ping其他主机 PCping 192.168.81.11Ping 192.168.81.11: 32 data bytes, Press Ctrl_C to break From 192.168.81.11: bytes32 seq1 ttl127 time62 ms From 192.168.81.11: bytes32 seq2 ttl127 time47 ms From 192.168.81.11: bytes32 seq3 ttl127 time47 ms From 192.168.81.11: bytes32 seq4 ttl127 time47 ms From 192.168.81.11: bytes32 seq5 ttl127 time31 ms--- 192.168.81.11 ping statistics ---5 packet(s) transmitted5 packet(s) received0.00% packet lossround-trip min/avg/max 31/46/62 msPCping 192.168.10.11Ping 192.168.10.11: 32 data bytes, Press Ctrl_C to break Request timeout! Request timeout! Request timeout! Request timeout! Request timeout!--- 192.168.10.11 ping statistics ---5 packet(s) transmitted0 packet(s) received100.00% packet lossPCping 192.168.30.11Ping 192.168.30.11: 32 data bytes, Press Ctrl_C to break Request timeout! Request timeout! Request timeout! Request timeout! Request timeout!--- 192.168.30.11 ping statistics ---5 packet(s) transmitted0 packet(s) received100.00% packet lossPCping 10.1.1.10Ping 10.1.1.10: 32 data bytes, Press Ctrl_C to break Request timeout! Request timeout! Request timeout! Request timeout! Request timeout!--- 10.1.1.10 ping statistics ---5 packet(s) transmitted0 packet(s) received100.00% packet loss 在PC-81-1上ping其他主机 PCping 192.168.80.11Ping 192.168.80.11: 32 data bytes, Press Ctrl_C to break From 192.168.80.11: bytes32 seq1 ttl127 time47 ms From 192.168.80.11: bytes32 seq2 ttl127 time47 ms From 192.168.80.11: bytes32 seq3 ttl127 time31 ms From 192.168.80.11: bytes32 seq4 ttl127 time31 ms From 192.168.80.11: bytes32 seq5 ttl127 time47 ms--- 192.168.80.11 ping statistics ---5 packet(s) transmitted5 packet(s) received0.00% packet lossround-trip min/avg/max 31/40/47 msPCping 192.168.10.11Ping 192.168.10.11: 32 data bytes, Press Ctrl_C to break Request timeout! Request timeout! Request timeout! Request timeout! Request timeout!--- 192.168.10.11 ping statistics ---5 packet(s) transmitted0 packet(s) received100.00% packet lossPCping 192.168.30.11Ping 192.168.30.11: 32 data bytes, Press Ctrl_C to break Request timeout! Request timeout! Request timeout! Request timeout! Request timeout!--- 192.168.30.11 ping statistics ---5 packet(s) transmitted0 packet(s) received100.00% packet lossPCping 10.1.1.10Ping 10.1.1.10: 32 data bytes, Press Ctrl_C to break Request timeout! Request timeout! Request timeout! Request timeout! Request timeout!--- 10.1.1.10 ping statistics ---5 packet(s) transmitted0 packet(s) received100.00% packet loss至此我们可以看到不同交换机还不能实现vlan的相互通信 现在在交换机和路由器上都配置默认路由 LSW1sys Enter system view, return user view with CtrlZ. # 配置默认路由简化路由配置 # 默认路由的目的网络为0.0.0.0子网掩码为0.0.0.0下一跳地址为 192.168.102.2。 #也可以配置到每个网络的静态路由 [LSW1]ip route-static 0.0.0.0 0.0.0.0 192.168.101.2 [LSW1]display IP routing-table Route Flags: R - relay, D - download to fib ------------------------------------------------------------------------------ Routing Tables: PublicDestinations : 9 Routes : 9 Destination/Mask Proto Pre Cost Flags NextHop Interface0.0.0.0/0 Static 60 0 RD 192.168.101.2 Vlanif101127.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 InLoopBack0192.168.10.0/24 Direct 0 0 D 192.168.10.1 Vlanif10192.168.10.1/32 Direct 0 0 D 127.0.0.1 Vlanif10192.168.30.0/24 Direct 0 0 D 192.168.30.1 Vlanif30192.168.30.1/32 Direct 0 0 D 127.0.0.1 Vlanif30192.168.101.0/24 Direct 0 0 D 192.168.101.1 Vlanif101192.168.101.1/32 Direct 0 0 D 127.0.0.1 Vlanif101 在LSW2上配置默认路由 LSW2sys Enter system view, return user view with CtrlZ. [LSW2]ip route-static 0.0.0.0 0.0.0.0 192.168.102.2 [LSW2]display IP routing-table Route Flags: R - relay, D - download to fib ------------------------------------------------------------------------------ Routing Tables: PublicDestinations : 9 Routes : 9 Destination/Mask Proto Pre Cost Flags NextHop Interface0.0.0.0/0 Static 60 0 RD 192.168.102.2 Vlanif102127.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 InLoopBack0192.168.80.0/24 Direct 0 0 D 192.168.80.1 Vlanif80192.168.80.1/32 Direct 0 0 D 127.0.0.1 Vlanif80192.168.81.0/24 Direct 0 0 D 192.168.81.1 Vlanif81192.168.81.1/32 Direct 0 0 D 127.0.0.1 Vlanif81192.168.102.0/24 Direct 0 0 D 192.168.102.1 Vlanif102192.168.102.1/32 Direct 0 0 D 127.0.0.1 Vlanif102在路由器RTA上配置静态和默认路由 RTAsys Enter system view, return user view with CtrlZ. [RTA]ip route-static 192.168.10.0 24 192.168.101.1 [RTA]ip route-static 192.168.30.0 24 192.168.101.1 [RTA]ip route-static 0.0.0.0 0.0.0.0 192.168.102.1 #也可以配置静态路由 #[RTA]ip route-static 192.168.80.0 24 192.168.102.1 #[RTA]ip route-static 192.168.81.0 24 192.168.102.1[RTA]display IP routing-table Route Flags: R - relay, D - download to fib ------------------------------------------------------------------------------ Routing Tables: PublicDestinations : 16 Routes : 16 Destination/Mask Proto Pre Cost Flags NextHop Interface0.0.0.0/0 Static 60 0 RD 192.168.102.1 GigabitEthernet 0/0/210.1.0.0/23 Direct 0 0 D 10.1.1.10 LoopBack010.1.1.10/32 Direct 0 0 D 127.0.0.1 LoopBack010.1.1.255/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 InLoopBack0192.168.10.0/24 Static 60 0 RD 192.168.101.1 GigabitEthernet 0/0/1192.168.30.0/24 Static 60 0 RD 192.168.101.1 GigabitEthernet 0/0/1192.168.101.0/24 Direct 0 0 D 192.168.101.2 GigabitEthernet 0/0/1192.168.101.2/32 Direct 0 0 D 127.0.0.1 GigabitEthernet 0/0/1 192.168.101.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet 0/0/1192.168.102.0/24 Direct 0 0 D 192.168.102.2 GigabitEthernet 0/0/2192.168.102.2/32 Direct 0 0 D 127.0.0.1 GigabitEthernet 0/0/2 192.168.102.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet 0/0/2 255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0 现在PC-10-1可以ping通其他主机 PCping 192.168.80.11Ping 192.168.80.11: 32 data bytes, Press Ctrl_C to break From 192.168.80.11: bytes32 seq1 ttl125 time78 ms From 192.168.80.11: bytes32 seq2 ttl125 time94 ms From 192.168.80.11: bytes32 seq3 ttl125 time62 ms From 192.168.80.11: bytes32 seq4 ttl125 time47 ms From 192.168.80.11: bytes32 seq5 ttl125 time78 ms--- 192.168.80.11 ping statistics ---5 packet(s) transmitted5 packet(s) received0.00% packet lossround-trip min/avg/max 47/71/94 msPCping 192.168.81.11Ping 192.168.81.11: 32 data bytes, Press Ctrl_C to break From 192.168.81.11: bytes32 seq1 ttl125 time78 ms From 192.168.81.11: bytes32 seq2 ttl125 time94 ms From 192.168.81.11: bytes32 seq3 ttl125 time78 ms From 192.168.81.11: bytes32 seq4 ttl125 time78 ms From 192.168.81.11: bytes32 seq5 ttl125 time93 ms--- 192.168.81.11 ping statistics ---5 packet(s) transmitted5 packet(s) received0.00% packet lossround-trip min/avg/max 78/84/94 msPCping 10.1.1.10Ping 10.1.1.10: 32 data bytes, Press Ctrl_C to break From 10.1.1.10: bytes32 seq1 ttl254 time78 ms From 10.1.1.10: bytes32 seq2 ttl254 time47 ms From 10.1.1.10: bytes32 seq3 ttl254 time31 ms From 10.1.1.10: bytes32 seq4 ttl254 time31 ms From 10.1.1.10: bytes32 seq5 ttl254 time47 ms--- 10.1.1.10 ping statistics ---5 packet(s) transmitted5 packet(s) received0.00% packet lossround-trip min/avg/max 31/46/78 msPC-80-1也可以ping通其他主机 PCping 192.168.10.11Ping 192.168.10.11: 32 data bytes, Press Ctrl_C to break Request timeout! From 192.168.10.11: bytes32 seq2 ttl125 time47 ms From 192.168.10.11: bytes32 seq3 ttl125 time63 ms From 192.168.10.11: bytes32 seq4 ttl125 time78 ms From 192.168.10.11: bytes32 seq5 ttl125 time78 ms--- 192.168.10.11 ping statistics ---5 packet(s) transmitted4 packet(s) received20.00% packet lossround-trip min/avg/max 0/66/78 msPCping 192.168.30.11Ping 192.168.30.11: 32 data bytes, Press Ctrl_C to break Request timeout! From 192.168.30.11: bytes32 seq2 ttl125 time94 ms From 192.168.30.11: bytes32 seq3 ttl125 time63 ms From 192.168.30.11: bytes32 seq4 ttl125 time93 ms From 192.168.30.11: bytes32 seq5 ttl125 time94 ms--- 192.168.30.11 ping statistics ---5 packet(s) transmitted4 packet(s) received20.00% packet lossround-trip min/avg/max 0/86/94 msPCping 10.1.1.10Ping 10.1.1.10: 32 data bytes, Press Ctrl_C to break From 10.1.1.10: bytes32 seq1 ttl254 time47 ms From 10.1.1.10: bytes32 seq2 ttl254 time31 ms From 10.1.1.10: bytes32 seq3 ttl254 time47 ms From 10.1.1.10: bytes32 seq4 ttl254 time31 ms From 10.1.1.10: bytes32 seq5 ttl254 time47 ms--- 10.1.1.10 ping statistics ---5 packet(s) transmitted5 packet(s) received0.00% packet lossround-trip min/avg/max 31/40/47 ms PC-30-1也可以ping通其他主机 PCping 192.168.10.11Ping 192.168.10.11: 32 data bytes, Press Ctrl_C to break Request timeout! From 192.168.10.11: bytes32 seq2 ttl127 time32 ms From 192.168.10.11: bytes32 seq3 ttl127 time47 ms From 192.168.10.11: bytes32 seq4 ttl127 time46 ms From 192.168.10.11: bytes32 seq5 ttl127 time47 ms--- 192.168.10.11 ping statistics ---5 packet(s) transmitted4 packet(s) received20.00% packet lossround-trip min/avg/max 0/43/47 msPCping 192.168.80.11Ping 192.168.80.11: 32 data bytes, Press Ctrl_C to break From 192.168.80.11: bytes32 seq1 ttl125 time47 ms From 192.168.80.11: bytes32 seq2 ttl125 time63 ms From 192.168.80.11: bytes32 seq3 ttl125 time78 ms From 192.168.80.11: bytes32 seq4 ttl125 time62 ms From 192.168.80.11: bytes32 seq5 ttl125 time94 ms--- 192.168.80.11 ping statistics ---5 packet(s) transmitted5 packet(s) received0.00% packet lossround-trip min/avg/max 47/68/94 msPCping 192.168.81.11Ping 192.168.81.11: 32 data bytes, Press Ctrl_C to break From 192.168.81.11: bytes32 seq1 ttl125 time110 ms From 192.168.81.11: bytes32 seq2 ttl125 time78 ms From 192.168.81.11: bytes32 seq3 ttl125 time62 ms From 192.168.81.11: bytes32 seq4 ttl125 time79 ms From 192.168.81.11: bytes32 seq5 ttl125 time78 ms--- 192.168.81.11 ping statistics ---5 packet(s) transmitted5 packet(s) received0.00% packet lossround-trip min/avg/max 62/81/110 ms PC-81-1能ping通其他主机 PCping 192.168.10.11Ping 192.168.10.11: 32 data bytes, Press Ctrl_C to break Request timeout! From 192.168.10.11: bytes32 seq2 ttl125 time47 ms From 192.168.10.11: bytes32 seq3 ttl125 time94 ms From 192.168.10.11: bytes32 seq4 ttl125 time62 ms From 192.168.10.11: bytes32 seq5 ttl125 time78 ms--- 192.168.10.11 ping statistics ---5 packet(s) transmitted4 packet(s) received20.00% packet lossround-trip min/avg/max 0/70/94 msPCping 192.168.30.11Ping 192.168.30.11: 32 data bytes, Press Ctrl_C to break From 192.168.30.11: bytes32 seq1 ttl125 time94 ms From 192.168.30.11: bytes32 seq2 ttl125 time62 ms From 192.168.30.11: bytes32 seq3 ttl125 time63 ms From 192.168.30.11: bytes32 seq4 ttl125 time78 ms From 192.168.30.11: bytes32 seq5 ttl125 time63 ms--- 192.168.30.11 ping statistics ---5 packet(s) transmitted5 packet(s) received0.00% packet lossround-trip min/avg/max 62/72/94 msPCping 192.168.80.11Ping 192.168.80.11: 32 data bytes, Press Ctrl_C to break From 192.168.80.11: bytes32 seq1 ttl127 time31 ms From 192.168.80.11: bytes32 seq2 ttl127 time47 ms From 192.168.80.11: bytes32 seq3 ttl127 time31 ms From 192.168.80.11: bytes32 seq4 ttl127 time47 ms From 192.168.80.11: bytes32 seq5 ttl127 time47 ms--- 192.168.80.11 ping statistics ---5 packet(s) transmitted5 packet(s) received0.00% packet lossround-trip min/avg/max 31/40/47 msPCping 10.1.1.10Ping 10.1.1.10: 32 data bytes, Press Ctrl_C to break From 10.1.1.10: bytes32 seq1 ttl254 time31 ms From 10.1.1.10: bytes32 seq2 ttl254 time31 ms From 10.1.1.10: bytes32 seq3 ttl254 time47 ms From 10.1.1.10: bytes32 seq4 ttl254 time47 ms From 10.1.1.10: bytes32 seq5 ttl254 time31 ms--- 10.1.1.10 ping statistics ---5 packet(s) transmitted5 packet(s) received0.00% packet lossround-trip min/avg/max 31/37/47 ms以下是案例的拓扑图链接 链接https://pan.baidu.com/s/1CXDetuC34Hi_E88TUgVx4g  提取码o3b5 不过还是建议自己多写
http://wiki.neutronadmin.com/news/88214/

相关文章:

  • 防内涵吧网站源码房地产店铺首页设计过程
  • 哪些网站是.net开发的企业微信下载
  • 做网站的广告词工商营业执照注册查询官网
  • 郑州网站建设找伟置免费搭建贴吧系统网站
  • 千图网cad免费素材图库北京网站建设 优化
  • 南通网站排名优化公司电子商务网站建设技巧
  • wordpress建站案例视频正规网站建设空间
  • 安徽企业网站建设wordpress跳转到外部链接
  • 网站使用流程图网站怎么提高收录
  • 国外素材设计欣赏网站建e网室内设计网图片
  • 广东建设职业技术学院网站建网站的基本流程
  • 帝国手机网站怎么做深圳做网站建设
  • 建设网站需要做的工作内容网站改版打造全新网站
  • 做火影网站背景图优设网页设计官网
  • 怎么查网站是哪家制作公司做的网站开发与维护专业前景
  • 网站商城怎么做苏州工业园区人才市场
  • 安康做网站的公司WordPress标签侧边栏
  • 最讨厌网站正则表达式匹配网站
  • 网站被墙的原因排版漂亮的网站
  • 商务网站建设的一般流程是什么?济南j建设网
  • 公司网站建设费用会计处理网站建设html5作品
  • 北京网站排名推广广州公司注册多少钱
  • 网站html模板免费下载sem运营有出路吗
  • 定州市建设局网站网站建设 价格
  • 济南做网站最好的单位wordpress 邮件设置
  • 网站怎么加代码wordpress快速赚钱
  • pc版网站生成App学做网站论坛教学视频下载
  • 关于幼儿建设网站ppt网站流量优化
  • 建大型网站网站建设案例精英
  • 建设银行官方网站地址怎么制作公众号动图