IP地址的配置与运用,全网通

news/2025/1/15 21:47:06/

1.全网可达

 

<Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]st r1
Please input the username:
Please input the username:r1
Error: Unknown host or wrong IP address.
[Huawei]sy r1
[r1]inter	
[r1]interface g0/0/1
[r1-GigabitEthernet0/0/1]ip ad	
[r1-GigabitEthernet0/0/1]ip address 12.1.1.1 24
Nov 13 2022 13:13:21-08:00 r1 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[r1-GigabitEthernet0/0/1]
[r1-GigabitEthernet0/0/1]
<r1>sy
Enter system view, return user view with Ctrl+Z.
[r1]ip ro	
[r1]ip route
[r1]ip route-static 23.1^
Error: Wrong parameter found at '^' position.
[r1]ip route-static 23.1.1.0 24  12.1.1.2
[r1]ip ro	
[r1]ip route
[r1]ip route-static 34.1.1.0 24  12.1.1.2
[r1]ip ro	
[r1]ip route
[r1]ip route-static 46.1.1.0 24  12.1.1.2
[r1]dis	
[r1]display  ip ro	
[r1]display  ip routing-table 
[r1]display  ip routing-table 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: PublicDestinations : 10       Routes : 10       Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface12.1.1.0/24  Direct  0    0           D   12.1.1.1        GigabitEthernet
0/0/112.1.1.1/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/112.1.1.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/123.1.1.0/24  Static  60   0          RD   12.1.1.2        GigabitEthernet
0/0/134.1.1.0/24  Static  60   0          RD   12.1.1.2        GigabitEthernet
0/0/146.1.1.0/24  Static  60   0          RD   12.1.1.2        GigabitEthernet
0/0/1127.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
[r2]ip ro	
[r2]ip route
[r2]ip route-static 34.1.1.0 24  23.1.1.2
[r2]ip ro	
[r2]ip route
[r2]ip route-static 34.1.1.0 24 32.1.1.1
[r2]ip ro	
[r2]ip route
[r2]ip route-static 46.1.1.0 24 23.1.1.2
[r2]ip ro	
[r2]ip route
[r2]ip route-static 46.1.1.0 24  32.1.1.1
[r2]dis	
[r2]display  ip ro	
[r2]display  ip routing-table 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: PublicDestinations : 15       Routes : 17       Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface12.1.1.0/24  Direct  0    0           D   12.1.1.2        GigabitEthernet
0/0/012.1.1.2/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/012.1.1.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/023.1.1.0/24  Direct  0    0           D   23.1.1.1        GigabitEthernet
0/0/123.1.1.1/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/123.1.1.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/132.1.1.0/24  Direct  0    0           D   32.1.1.2        GigabitEthernet
0/0/232.1.1.2/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/232.1.1.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/234.1.1.0/24  Static  60   0          RD   23.1.1.2        GigabitEthernet
0/0/1Static  60   0          RD   32.1.1.1        GigabitEthernet
0/0/246.1.1.0/24  Static  60   0          RD   23.1.1.2        GigabitEthernet
0/0/1Static  60   0          RD   32.1.1.1        GigabitEthernet
0/0/2127.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       InLoopBack0[r3]ip ro	
[r3]ip route
[r3]ip route-static 12.1.1.0 24 23.1.1.1
[r3]ip ro	
[r3]ip route
[r3]ip route-static 12.1.1.0 24 32.1.1.2
[r3]ip ro	
[r3]ip route
[r3]ip route-static  46.1.1.0 24 34.1.1.2
[r3]dis	
[r3]display ip ro	
[r3]display ip routing-table 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: PublicDestinations : 11       Routes : 12       Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface12.1.1.0/24  Static  60   0          RD   23.1.1.1        GigabitEthernet
0/0/0Static  60   0          RD   32.1.1.2        GigabitEthernet
0/0/123.1.1.0/24  Direct  0    0           D   23.1.1.2        GigabitEthernet
0/0/023.1.1.2/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/023.1.1.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/032.1.1.0/24  Direct  0    0           D   32.1.1.1        GigabitEthernet
0/0/132.1.1.1/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/132.1.1.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/1127.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       InLoopBack0[r4]ip ro	
[r4]ip route
[r4]ip route-static 23.1.1.0 24 34.1.1.1
[r4]ip ro	
[r4]ip route
[r4]ip route-static 32.1.1.0 24 34.1.1.1
[r4]ip ro	
[r4]ip route
[r4]ip route-static 12.1.1.0 24 34.1.1.1
[r4]dis	
[r4]display ip	
[r4]display ip ro	
[r4]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         Interface12.1.1.0/24  Static  60   0          RD   34.1.1.1        GigabitEthernet
0/0/023.1.1.0/24  Static  60   0          RD   34.1.1.1        GigabitEthernet
0/0/032.1.1.0/24  Static  60   0          RD   34.1.1.1        GigabitEthernet
0/0/034.1.1.0/24  Direct  0    0           D   34.1.1.2        GigabitEthernet
0/0/034.1.1.2/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/034.1.1.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/046.1.1.0/24  Direct  0    0           D   46.1.1.1        GigabitEthernet
0/0/246.1.1.1/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/246.1.1.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/2127.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       InLoopBack0[r6]ip ro	
[r6]ip route
[r6]ip route-static 34.1.1.0 24 46.1.1.1
[r6]ip ro	
[r6]ip route
[r6]ip route-static23.1.1.0 24 46.1.1.1^
Error: Unrecognized command found at '^' position.
[r6]ip route-static 23.1.1.0 24 46.1.1.1
[r6]ip ro	
[r6]ip route
[r6]ip route-static 32.1.1.0 24 46.1.1.1
[r6]ip ro	
[r6]ip route
[r6]ip route-static 12.1.1.0 24 46.1.1.1
[r6]dsi	
[r6]dis	
[r6]display ip ro	
[r6]display ip routing-table 
[r6]display ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: PublicDestinations : 11       Routes : 11       Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface12.1.1.0/24  Static  60   0          RD   46.1.1.1        GigabitEthernet
0/0/023.1.1.0/24  Static  60   0          RD   46.1.1.1        GigabitEthernet
0/0/032.1.1.0/24  Static  60   0          RD   46.1.1.1        GigabitEthernet
0/0/034.1.1.0/24  Static  60   0          RD   46.1.1.1        GigabitEthernet
0/0/046.1.1.0/24  Direct  0    0           D   46.1.1.2        GigabitEthernet
0/0/046.1.1.2/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/046.1.1.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0127.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       InLoopBack0

2.pc1pc2获取指定ip

[r1]sy dhcp
[dhcp]dhcp en	
[dhcp]dhcp enable 
Info: The operation may take a few seconds. Please wait for a moment.done.
[dhcp]ip po	
[dhcp]ip policy-based-route
[dhcp]ip pool 1
Info: It's successful to create an IP address pool.
[dhcp-ip-pool-1]netqu^
Error: Unrecognized command found at '^' position.
[dhcp-ip-pool-1]qu
[dhcp]inter	
[dhcp]interface g0/0/0
[dhcp-GigabitEthernet0/0/0]ip ads	
[dhcp-GigabitEthernet0/0/0]ip ad	
[dhcp-GigabitEthernet0/0/0]ip address 172.16.1.1 24
Nov 13 2022 13:44:01-08:00 dhcp %%01IFNET/4/LINK_STATE(l)[0]:The line protocol I
P on the interface GigabitEthernet0/0/0 has entered the UP state. 
[dhcp-GigabitEthernet0/0/0]qu
[dhcp]ip po	
[dhcp]ip policy-based-route
[dhcp]ip pool 1
[dhcp-ip-pool-1]net	
[dhcp-ip-pool-1]netbios-type
[dhcp-ip-pool-1]network 172.16.1.0 ms	
[dhcp-ip-pool-1]network 172.16.1.0 ma	
[dhcp-ip-pool-1]network 172.16.1.0 mask 24
[dhcp-ip-pool-1]ga	
[dhcp-ip-pool-1]gateway-list 172.16.1.1
[dhcp-ip-pool-1]dns	
[dhcp-ip-pool-1]dns-list 8.8.8.8 114.114.114.114
[dhcp-ip-pool-1]st	
[dhcp-ip-pool-1]static-bind ip	
[dhcp-ip-pool-1]static-bind ip-address 172.16.1.11 mac	
[dhcp-ip-pool-1]static-bind ip-address 172.16.1.11 mac-address 5489-9817-0CD5[dhcp-ip-pool-1]st	
[dhcp-ip-pool-1]static-bind ip	
[dhcp-ip-pool-1]static-bind ip-address 172.16.1.13 mac	
[dhcp-ip-pool-1]static-bind ip-address 172.16.1.13 mac-address 5489-9877-178B

 

 3.pc3 pc4 不能获取250到254的地址

[r6]dhcp en	
[r6]dhcp enable 
Info: The operation may take a few seconds. Please wait for a moment.done.
[r6]ip po	
[r6]ip policy-based-route
[r6]ip pool 6
Info: It's successful to create an IP address pool.
[r6-ip-pool-6]net	
[r6-ip-pool-6]netbios-type
[r6-ip-pool-6]network 192.168.1.0 ma	
[r6-ip-pool-6]network 192.168.1.0 mask 24
[r6-ip-pool-6]gat	
[r6-ip-pool-6]gateway-list 
[r6-ip-pool-6]gateway-list 192.168.1.1
[r6-ip-pool-6]dns	
[r6-ip-pool-6]dns-list 8.8.8.8 114.114.114.114
[r6-ip-pool-6]qu
[r6]inter	
[r6]interface g0/0/1
[r6-GigabitEthernet0/0/1]ip ad	
[r6-GigabitEthernet0/0/1]ip address 192.168.1.1 24
[r6-GigabitEthernet0/0/1]
Nov 13 2022 13:55:09-08:00 r6 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[r6-GigabitEthernet0/0/1]qu
[r6]ip po	
[r6]ip policy-based-route
[r6]ip pool6^
Error: Unrecognized command found at '^' position.
[r6]ip pool 6
[r6-ip-pool-6]ex^
Error:Incomplete command found at '^' position.
[r6-ip-pool-6]ex	
[r6-ip-pool-6]excluded-ip-address 192.168.1.250 192.168.1.254
[r6-ip-pool-6]qu
[r6]inter	
[r6]interface g0/0/1
[r6-GigabitEthernet0/0/1]dhcp se	
[r6-GigabitEthernet0/0/1]dhcp select gl	
[r6-GigabitEthernet0/0/1]dhcp select global 

 

 4.32.1.1.0为备份路径

 

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface12.1.1.0/24  Direct  0    0           D   12.1.1.2        GigabitEthernet
0/0/012.1.1.2/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/012.1.1.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/023.1.1.0/24  Direct  0    0           D   23.1.1.1        GigabitEthernet
0/0/123.1.1.1/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/123.1.1.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/132.1.1.0/24  Direct  0    0           D   32.1.1.2        GigabitEthernet
0/0/232.1.1.2/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/232.1.1.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/234.1.1.0/24  Static  60   0          RD   23.1.1.2        GigabitEthernet
0/0/1Static  60   0          RD   32.1.1.1        GigabitEthernet
0/0/246.1.1.0/24  Static  60   0          RD   23.1.1.2        GigabitEthernet
0/0/1Static  60   0          RD   32.1.1.1        GigabitEthernet
0/0/2127.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     12.1.1.0/24  Static  60   0          RD   23.1.1.1        GigabitEthernet
0/0/0Static  60   0          RD   32.1.1.2        GigabitEthernet
0/0/123.1.1.0/24  Direct  0    0           D   23.1.1.2        GigabitEthernet
0/0/023.1.1.2/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/023.1.1.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/032.1.1.0/24  Direct  0    0           D   32.1.1.1        GigabitEthernet
0/0/132.1.1.1/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/132.1.1.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/1127.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       InLoopBack0estination/Mask    Proto   Pre  Cost      Flags NextHop         Interface12.1.1.0/24  Direct  0    0           D   12.1.1.1        GigabitEthernet
0/0/112.1.1.1/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/112.1.1.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/123.1.1.0/24  Static  60   0          RD   12.1.1.2        GigabitEthernet
0/0/134.1.1.0/24  Static  60   0          RD   12.1.1.2        GigabitEthernet
0/0/146.1.1.0/24  Static  60   0          RD   12.1.1.2        GigabitEthernet
0/0/1127.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   12.1.1.0/24  Static  60   0          RD   34.1.1.1        GigabitEthernet
0/0/023.1.1.0/24  Static  60   0          RD   34.1.1.1        GigabitEthernet
0/0/032.1.1.0/24  Static  60   0          RD   34.1.1.1        GigabitEthernet
0/0/034.1.1.0/24  Direct  0    0           D   34.1.1.2        GigabitEthernet
0/0/034.1.1.2/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/034.1.1.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/046.1.1.0/24  Direct  0    0           D   46.1.1.1        GigabitEthernet
0/0/246.1.1.1/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/246.1.1.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/2127.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       InLoopBack012.1.1.0/24  Static  60   0          RD   46.1.1.1        GigabitEthernet
0/0/023.1.1.0/24  Static  60   0          RD   46.1.1.1        GigabitEthernet
0/0/032.1.1.0/24  Static  60   0          RD   46.1.1.1        GigabitEthernet
0/0/034.1.1.0/24  Static  60   0          RD   46.1.1.1        GigabitEthernet
0/0/046.1.1.0/24  Direct  0    0           D   46.1.1.2        GigabitEthernet
0/0/046.1.1.2/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/046.1.1.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0127.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       InLoopBack0

5.pc1访问pc3456

 

 

 

 

 


http://www.ppmy.cn/news/205369.html

相关文章

无线传输终端 无线通信模块 全网通5G/4G

无线传输终端 无线通信模块 全网通5G/4G   计讯物联无线传输终端TD210&#xff0c;SIM/UIM卡全网通5G/4G网络&#xff0c;32位高端通信处理器&#xff0c;看门狗、心跳链路检测机制&#xff0c;工业级设计防潮防雷防电磁干扰&#xff0c;性能安全可靠&#xff0c;稳定在线。支…

openwrt 添加4g全网通模块龙尚U9300C

硬件平台 MT7628A128RAM16FLASH openwrt版本&#xff1a;19.07 一&#xff0c;修改内核USB驱动 /build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/linux-4.14.180/drivers/usb/serial/option.c 找到 LONGCHEER_VENDOR_ID 添加新的产品ID: #define LONGSHANG_U9300…

华为ldn—al20_华为畅享8 全网通(LDN-AL00)刷机包_线刷包_救砖包_官方ROM包_固件包下载- 线刷宝ROM中心...

线刷宝用户协议 本协议是用户 (自然人、法人或社会团体)与杭州登先网络科技有限公司(以下简称"登先网络")之间关于"线刷宝"软件产品(以下简称"本软件产品")的法律协议。一旦安装、复制或以其他方式使用本软件产品&#xff0c;即表示同意接受协议…

MTK6833(天玑700平台)5G全网通_安卓智能核心板简介

XY6833是一款基于 MTK 的 MT6833(联发科技天玑 700 )平台、工业级高性能、可运行 android 12.0操 作 系 统 的 5G AI 智能模块 , 支 持 NR-SA/NR-NSA/LTE-FDD(CAT-18)/LTE-TDD(CAT-18)/WCDMA/TD-SCDMA/EVDO/CDMA/GSM 等多种制式&#xff1b;支持 WiFi 5 802.11 a/b/g/n/ac&…

(OK) 救砖:华为全网通 honor 5x - KIW-AL10 线刷 + 卡刷 (KIW-AL10C00B258-back-from-B430)

从 pan.baidu.com/s/1kVz29wF 下载 KIW-AL10C00B258【B430回退】.zip 解压 KIW-AL10C00B258【B430回退】.zip 到 KIW-AL10C00B258-back-from-B430_zip 将 KIW-AL10C00B258-back-from-B430_zip/UPDATE.APP 解包&#xff0c;得到 BOOT.img SYSTEM.img CUST.zip RECOVERY.img…

(OK) 华为全网通 honor 5x - 成功将 KIW-AL10C00B258 升级到 KIW-AL10C00B430

下面方法&#xff0c;成功将 KIW-AL10C00B258 升级到 KIW-AL10C00B430 KIW-AL10C00B258 - EMUI 3.1 - Android 5.1 KIW-AL10C00B430 - EMUI 4 - Android 6.0.1 首先&#xff1a;把 KIW-AL10C00B430_zip/dload/UPDATE.APP 复制到SD卡 /dload&#xff0c;将SD卡插入手机。 然后…

H3C设备全网通

【实验要求】 1、根据拓扑配置网络地址&#xff0c;实现全网通 2、在server上配置Telnet 3、AB能访问Internet , CD不能访问 4、CD能访问server, AB不能访问 【实验步骤】 1、各PC: 设置ip 设置默认路由&#xff08;吓一跳为网关&#xff09; 用路由器代替PC&#xff0c;[H3…

计算机硬件大厂,计算机硬件-机箱电源

原标题&#xff1a;计算机硬件-机箱电源 机箱介绍与选购 机箱是用来装载计算机硬件的容器&#xff0c;可以起到对计算机硬件的保护作用。此外&#xff0c;电脑机箱具有屏蔽电磁辐射的重要作用。在购买机箱的时候&#xff0c;建议大家参考以下的指标&#xff1a; 1)抗静电 2)机箱…