多平台统一管理软件接口,如何实现多平台统一管理软件接口
253
2022-09-19
华为设备VRRP组网下同网段内配置基于全局地址池的DHCP服务器
1. 配置设备间的网络互连
[LSW1]vlan batch 10
[LSW1-GigabitEthernet0/0/3]port link-type hybrid
[LSW1-GigabitEthernet0/0/3]port hybrid pvid vlan 10
[LSW1-GigabitEthernet0/0/3]port hybrid untagged vlan 10
[LSW1-GigabitEthernet0/0/2]port link-type hybrid
[LSW1-GigabitEthernet0/0/2]port hybrid pvid vlan 10
[LSW1-GigabitEthernet0/0/2]port hybrid untagged vlan 10
[LSW1]int Vlanif 10
[LSW1-Vlanif10]ip add 10.1.1.1 24
[LSW2]vlan batch 10
[LSW2-GigabitEthernet0/0/1]port link-type hybrid
[LSW2-GigabitEthernet0/0/1]port hybrid pvid vlan 10
[LSW2-GigabitEthernet0/0/1]port hybrid untagged vlan 10
[LSW2-GigabitEthernet0/0/3]port link-type hybrid
[LSW2-GigabitEthernet0/0/3]port hybrid pvid vlan 10
[LSW2-GigabitEthernet0/0/3]port hybrid untagged vlan 10
[LSW2]int Vlanif 10
[LSW2-Vlanif10]ip add 10.1.1.129 24
[LSW3]vlan batch 10
[LSW3-GigabitEthernet0/0/1]port link-type hybrid
[LSW3-GigabitEthernet0/0/1]port hybrid pvid vlan 10
[LSW3-GigabitEthernet0/0/1]port hybrid untagged vlan 10
[LSW3-GigabitEthernet0/0/2]port link-type hybrid
[LSW3-GigabitEthernet0/0/2]port hybrid pvid vlan 10
[LSW3-GigabitEthernet0/0/2]port hybrid untagged vlan 10
[LSW3-GigabitEthernet0/0/3]port link-type access
[LSW3-GigabitEthernet0/0/3]port default vlan 10
2. 创建地址池并配置相关属性,由于主设备上的地址池信息不能实时备份到备设备上,为防止主备切换后出现IP地址分配冲突,主设备和备设备上配置的地址池必须要互相排除
[LSW1]dhcp enable
[LSW1]ip pool 1
[LSW1-ip-pool-1]network 10.1.1.0 mask 24
[LSW1-ip-pool-1]gateway-list 10.1.1.111
[LSW1-ip-pool-1]excluded-ip-address 10.1.1.1
[LSW1-ip-pool-1]excluded-ip-address 10.1.1.12
[LSW1-ip-pool-1]excluded-ip-address 10.1.1.129 10.1.1.254
[LSW1-ip-pool-1]lease day 10
[LSW2]dhcp enable
[LSW2]ip pool 1
[LSW2-ip-pool-1]network 10.1.1.0 mask 24
[LSW2-ip-pool-1]gateway-list 10.1.1.111
[LSW2-ip-pool-1]excluded-ip-address 10.1.1.1 10.1.1.110
[LSW2-ip-pool-1]excluded-ip-address 10.1.1.112 10.1.1.129
[LSW2-ip-pool-1]lease day 10
3. 配置VRRP备份组
[LSW1]interface Vlanif 10
[LSW1-Vlanif10]vrrp vrid 1 virtual-ip 10.1.1.111
[LSW1-Vlanif10]vrrp vrid 1 priority 120
[LSW1-Vlanif10]dhcp select global
[LSW2]int Vlanif 10
[LSW2-Vlanif10]vrrp vrid 1 virtual-ip 10.1.1.111
[LSW2-Vlanif10]dhcp select global
4. 配置STP协议,实现破除环路
[LSW1]stp enable
[LSW2]stp enable
[LSW3]stp enable
[LSW3-GigabitEthernet0/0/3]stp disable
[LSW3-GigabitEthernet0/0/1]stp cost 20000
5.PC选择以DHCP方式获取IP地址
6. 验证配置
将LSW1上的2个接口shutdown
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~