h3c划分vlan和dhcp问题。。

[SWB]vlan 10
[SWB-vlan10]port GigabitEthernet 1/0/1
[SWB-vlan10]vlan 20
[SWB-vlan20]port GigabitEthernet 1/0/2
[SWB-vlan20]qu
[SWB]int GigabitEthernet 1/0/3
[SWB-GigabitEthernet1/0/3]port link-typetrunk
[SWB-GigabitEthernet1/0/3]port trunk permitvlan 10 20

[SWA]vlan 10
[SWA-vlan10]vlan 20
[SWA-vlan20]qu
[SWA]int GigabitEthernet 1/0/3
[SWA-GigabitEthernet1/0/3]port link-typetrunk
[SWA-GigabitEthernet1/0/3]port trunk permitvlan 10 20
[SWA]int vlan 10
[SWA-Vlan-interface10]ip address192.168.0.18 255.255.255.240
[SWA-Vlan-interface10]int vlan 20
[SWA-Vlan-interface20]ip add 192.168.0.34255.255.255.240
[SWA-Vlan-interface20]qu
[SWA]dhcp enable
[SWA]dhcp server ip-pool 10
[SWA-dhcp-pool-10]network 192.168.0.16 mask255.255.255.240
[SWA-dhcp-pool-10]gateway-list 192.168.0.18
[SWA-dhcp-pool-10]qu
[SWA]dhcp server ip-pool 20
[SWA-dhcp-pool-20]network 192.168.0.32 mask255.255.255.240
[SWA-dhcp-pool-20]gateway-list 192.168.0.34
[SWA-dhcp-pool-20]qu

在路由器上开了ospf没有问题,下面pc获取ip也没问题

将swa 连接rtb的端口划分到VLAN 10 ,将swa 连接rtc的端口划分到VLAN 20追问

先谢谢了,我开电脑试下,

太感谢了,加分,加分。

等下给你加分,

温馨提示:答案为网友推荐,仅供参考
相似回答