作者: | 来源:互联网 | 2023-10-11 10:19
VLAN虚拟子接口1.搭建虚拟子接口拓扑图2.建立VLAN接入接口[Huawei]vlan2[Huawei]interfacee002[Huawei-Ethernet002]por
VLAN虚拟子接口
1.搭建虚拟子接口拓扑图
2.建立VLAN接入接口
[Huawei]vlan 2
[Huawei]interface e0/0/2
[Huawei-Ethernet0/0/2]port link-type access
[Huawei-Ethernet0/0/2]port default vlan 2
3.划分虚拟子接口
[Huawei]interface g0/0/0.1
[Huawei-GigabitEthernet0/0/0.1]dot1q termination vid 2
[Huawei-GigabitEthernet0/0/0.1]ip address 12.1.1.1 24
4.建立DHCP池分配IP地址
[Huawei]ip pool 1
[Huawei-ip-pool-1]network 12.1.1.0 mask 255.255.255.0
[Huawei-ip-pool-1]gateway-list 12.1.1.1
[Huawei-ip-pool-1]dns-list 8.8.8.8
[Huawei-GigabitEthernet0/0/0.1]dhcp select global
[Huawei-GigabitEthernet0/0/0.1]arp broadcast enable
[Huawei-GigabitEthernet0/0/0.1]quit
5.IP地址自动发放全网可达