2024年8月2日 17:22:05
This commit is contained in:
parent
79d6629536
commit
ea9c0879e1
@ -69,16 +69,14 @@
|
|||||||
|
|
||||||
1. ##### 连通两个不同网段
|
1. ##### 连通两个不同网段
|
||||||
|
|
||||||
- 建立两个不同网段192.168.1.0/24与192.168.2.0/24,各自网段可互相Ping通
|
- 建立两个不同网段192.168.1.0/24与192.168.2.0/24,设置PC端网关,IP、子网掩码、网关(与路由端口对应的IP地址一致),各自网段可互相Ping通
|
||||||
|
|
||||||
- 路由端口设置IP
|
- 路由端口设置IP
|
||||||
|
|
||||||
```
|
```
|
||||||
[Huawei]interface GigabitEthernet 0/0/0
|
[Huawei]interface GigabitEthernet 0/0/0
|
||||||
[Huawei-GigabitEthernet0/0/0]ip address 192.168.1.254 24
|
[Huawei-GigabitEthernet0/0/0]ip address 192.168.1.254 24 ## 0/0/0端口与192.168.1.0网段对应
|
||||||
[Huawei-GigabitEthernet0/0/0]quit
|
[Huawei-GigabitEthernet0/0/0]quit
|
||||||
[Huawei]interface GigabitEthernet 0/0/1
|
[Huawei]interface GigabitEthernet 0/0/1
|
||||||
[Huawei-GigabitEthernet0/0/1]ip address 192.168.2.254 24
|
[Huawei-GigabitEthernet0/0/1]ip address 192.168.2.254 24 ## 0/0/1端口与192.168.2.0网段对应
|
||||||
```
|
```
|
||||||
|
|
||||||
- 设置PC端网关,网关与路由端口对应的IP地址一致
|
|
Loading…
Reference in New Issue
Block a user