2024年9月3日 09:44:37
This commit is contained in:
parent
94a5e754ac
commit
5327827f7a
@ -1,6 +1,6 @@
|
||||
# 多服务练习拓扑
|
||||
|
||||
![image-20240902180316802](https://picgo-noriu.oss-cn-beijing.aliyuncs.com/Images/image-20240902180316802.png)
|
||||
![image-20240903094302311](https://picgo-noriu.oss-cn-beijing.aliyuncs.com/Images/image-20240903094302311.png)
|
||||
|
||||
![image-20240902173915624](https://picgo-noriu.oss-cn-beijing.aliyuncs.com/Images/image-20240902173915624.png)
|
||||
|
||||
@ -12,10 +12,11 @@
|
||||
|
||||
```
|
||||
[SW1]vlan batch 10 20 30
|
||||
[SW1]int g0/0/1
|
||||
[SW1-GigabitEthernet0/0/1]port link-type access
|
||||
[SW1-GigabitEthernet0/0/1]port default vlan 10
|
||||
[SW1-GigabitEthernet0/0/1]int g0/0/2
|
||||
[SW1]port-group group-member g0/0/1 g0/0/3 g0/0/4
|
||||
[SW1-port-group]port link-type access
|
||||
[SW1-port-group]port default vlan 10
|
||||
[SW1-port-group]quit
|
||||
[SW1]int g0/0/2
|
||||
[SW1-GigabitEthernet0/0/2]port link-type trunk
|
||||
[SW1-GigabitEthernet0/0/2]port trunk allow-pass vlan all
|
||||
```
|
||||
@ -49,11 +50,15 @@
|
||||
```
|
||||
[HX-SW5]vlan batch 10 20 30 50
|
||||
[HX-SW5]port-group group-member g0/0/1 to g0/0/3
|
||||
[HX-SW5-port-group]port link-type trunk
|
||||
[HX-SW5-port-group]port link-type trunk
|
||||
[HX-SW5-port-group]port trunk allow-pass vlan all
|
||||
[HX-SW5-port-group]quit
|
||||
[HX-SW5]int g0/0/5
|
||||
[HX-SW5-GigabitEthernet0/0/5]port link-type access
|
||||
[HX-SW5-GigabitEthernet0/0/5]port default vlan 50
|
||||
[HX-SW5-GigabitEthernet0/0/5]quit
|
||||
[HX-SW5]int vlan 50
|
||||
[HX-SW5-Vlanif50]ip add 192.168.50.251 24
|
||||
```
|
||||
|
||||
- **AR3 - DHCP**
|
||||
@ -106,8 +111,52 @@
|
||||
[HX-SW5-Vlanif30]ip add 192.168.30.251 24
|
||||
[HX-SW5-Vlanif30]dhcp select relay
|
||||
[HX-SW5-Vlanif30]dhcp relay server-ip 192.168.50.1
|
||||
[HX-SW5-Vlanif30]int vlan 50
|
||||
[HX-SW5-Vlanif50]ip add 192.168.50.251 24
|
||||
```
|
||||
|
||||
|
||||
### 三、测试
|
||||
|
||||
- **PC1 *[VALN10]***
|
||||
|
||||
```
|
||||
PC1>ipconfig
|
||||
|
||||
Link local IPv6 address...........: fe80::5689:98ff:fed3:1698
|
||||
IPv6 address......................: :: / 128
|
||||
IPv6 gateway......................: ::
|
||||
IPv4 address......................: 192.168.10.253
|
||||
Subnet mask.......................: 255.255.255.0
|
||||
Gateway...........................: 192.168.10.254
|
||||
Physical address..................: 54-89-98-D3-16-98
|
||||
DNS server........................: 8.8.8.8
|
||||
```
|
||||
|
||||
|
||||
- **PC2 *[VALN20]***
|
||||
|
||||
```
|
||||
PC2>ipconfig
|
||||
|
||||
Link local IPv6 address...........: fe80::5689:98ff:fe31:2c88
|
||||
IPv6 address......................: :: / 128
|
||||
IPv6 gateway......................: ::
|
||||
IPv4 address......................: 192.168.20.253
|
||||
Subnet mask.......................: 255.255.255.0
|
||||
Gateway...........................: 192.168.20.254
|
||||
Physical address..................: 54-89-98-31-2C-88
|
||||
DNS server........................: 8.8.8.8
|
||||
```
|
||||
|
||||
- **PC3 *[VALN30]***
|
||||
|
||||
```
|
||||
PC3>ipconfig
|
||||
|
||||
Link local IPv6 address...........: fe80::5689:98ff:fef9:3881
|
||||
IPv6 address......................: :: / 128
|
||||
IPv6 gateway......................: ::
|
||||
IPv4 address......................: 192.168.30.253
|
||||
Subnet mask.......................: 255.255.255.0
|
||||
Gateway...........................: 192.168.30.254
|
||||
Physical address..................: 54-89-98-F9-38-81
|
||||
DNS server........................: 8.8.8.8
|
||||
```
|
Loading…
Reference in New Issue
Block a user