华为单臂路由实验

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

华为三层交换机做DHCP服务

配置三层交换机S5700

system-view 进入系统模式

[Huawei]dhcp enable 开启dhcp服务

[Huawei]dhcp snooping enable 开启dhcp过滤功能

[Huawei]ip pool aa 创建地址池aa

[Huawei-ip-pool-aa]network 192.168.10.1mask 255.255.255.0 子网IP和掩码

[Huawei-ip-pool-aa]gateway-list192.168.10.1 网关地址

[Huawei-ip-pool-aa]dns-list203.208.24.28 配置DNS列表

[Huawei-ip-pool-aa]excluded-ip-address192.168.10.2 192.168.10.50 排除地址[Huawei]ip pool bb 创建地址池bb

[Huawei-ip-pool-aa]network 192.168.20.1mask 255.255.255.0 子网IP和掩码

[Huawei-ip-pool-aa]gateway-list192.168.20.1 网关地址

[Huawei-ip-pool-aa]dns-list 203.208.24.28 配置DNS列表

[Huawei-ip-pool-aa]excluded-ip-address192.168.20.2 192.168.20.50 排除地址

[Huawei-ip-pool-aa]return

sy

[Huawei]vlan 10

[Huawei-vlan10]quit

[Huawei]int vlan 10 进入vlan 10端口

[Huawei-Vlanif10]ip address 192.168.10.1255.255.255.0 为vlan 10配置IP地址[Huawei-Vlanif10]dhcp select global DHCP获取范围从全局global获取

[Huawei-Vlanif10]quit

[Huawei]vlan 20

[Huawei-vlan10]quit

[Huawei]int vlan 20 进入vlan 20端口

[Huawei-Vlanif20]ip address 192.168.20.1255.255.255.0 为vlan 20配置IP地址[Huawei-Vlanif20]dhcp select global DHCP获取范围从全局global获取

[Huawei-Vlanif20]quit

[Huawei]int g0/0/1 进入端口

[Huawei-GigabitEthernet0/0/1]port link-typetrunk 设置端口为trunk模式

[Huawei-GigabitEthernet0/0/1]port trunkallow-pass vlan all 设置允许所有Vlan 的报文通过[Huawei-GigabitEthernet0/0/1]quit

[Huawei]int g0/0/2 进入端口

[Huawei-GigabitEthernet0/0/2]port link-typetrunk 设置端口为trunk模式

[Huawei-GigabitEthernet0/0/2]port trunkallow-pass vlan all 设置允许所有Vlan 的报文通过[Huawei-GigabitEthernet0/0/2]return

save 保存配置

Are you sure to continue?[Y/N]y

配置二层交换机(1)S3700

sy

[Huawei]int e0/0/1

[Huawei-Ethernet0/0/1]port link-type trunk

[Huawei-Ethernet0/0/1]port trunk allow-passvlan all

[Huawei-Ethernet0/0/1]q

[Huawei]int e0/0/2

[Huawei-Ethernet0/0/2]port link-type access

[Huawei-Ethernet0/0/2]q

[Huawei]vlan 10

[Huawei-vlan10]port e0/0/2

[Huawei-vlan10]ret

save

配置二层交换机(2)S3700

sy

[Huawei]int e0/0/1

[Huawei-Ethernet0/0/1]port link-type trunk

[Huawei-Ethernet0/0/1]port trunk allow-passvlan all

[Huawei-Ethernet0/0/1]q

[Huawei]vlan 20

[Huawei-vlan20]q

[Huawei]int e0/0/2

[Huawei-Ethernet0/0/2]port link-type access

[Huawei-Ethernet0/0/2]port default vlan 20

[Huawei-Ethernet0/0/2]ret

save

相关文档
最新文档