文档网

HCL模拟三层交换机做DHCP服务器的实验

HCL模拟三层交换机做DHCP服务器的实验

HCL模拟器搭建实验拓扑图结构:

HCL模拟三层交换机做DHCP服务器的实验

如上图,三层交换机S5820V2-54QS-GE_1的端口GE1/0/1连接一台PC,PC属于vlan 10,让其获取到192.168.10.0/24的ip地址;端口GE1/0/2连接一台host主机,host主机的网卡和电脑上的虚拟网卡NIC VitualBox Host-Only Ethernet Adapter #2关联。Host主机让其获取到192.168.20.0/24的ip地址。

下面说一下配置思路和过程:

步骤1:三层交换机划分vlan并设置vlan的管理地址,作为主机的网关:

[H3C]vlan 10

[H3C-vlan10]vlan 20

[H3C-vlan20]quit

[H3C]int vlan 10

[H3C-Vlan-interface10]ip address 192.168.10.254 24

[H3C-Vlan-interface10]quit

[H3C]int vlan 20

[H3C-Vlan-interface20]ip address 192.168.20.254 24

[H3C-Vlan-interface20]quit

步骤2:把相应的端口添加到vlan:

[H3C]int g1/0/1

[H3C-GigabitEthernet1/0/1]port lixxxxnk-type access

[H3C-GigabitEthernet1/0/1]port access vlan 10

[H3C-GigabitEthernet1/0/1]quit

[H3C]int g1/0/2

[H3C-GigabitEthernet1/0/2]port lixxxxnk-type access

[H3C-GigabitEthernet1/0/2]port access vlan 20

步骤3:设置DHCP地址池:

相关文档
热门文档
评论