華為三層スイッチVRRPとDHCPの総合実験の詳細

2362 ワード

 VRRP、DHCP , :
  :
1.SW1 vlan 10 ,vlan 20 ;
2.SW2 vlan 20 ,vlan 10 ;
3.DHCP vlan 66, SW2 ;
4.PC1、PC2 ip ping 。
  • 実験トポロジーは以下の通りである:
  • 最初のステップは、基本的なネットワーク構成を行い、構成手順とコマンドは以下の通りです.
    SW1 :

    sysname SW1vlan batch 10 20 66interface GigabitEthernet0/0/1port link-type accessport default vlan 10interface GigabitEthernet0/0/2port link-type trunkport trunk allow-pass vlan all interface Vlanif10ip address 192.168.10.251 255.255.255.0interface Vlanif20ip address 192.168.20.251 255.255.255.0interface Vlanif66ip address 192.168.66.251 255.255.255.0
    SW2 :

    sysname SW2vlan batch 10 20 66interface GigabitEthernet0/0/1port link-type accessport default vlan 20interface GigabitEthernet0/0/2port link-type trunkport trunk allow-pass vlan allinterface GigabitEthernet0/0/3port link-type accessport default vlan 66interface Vlanif10ip address 192.168.10.252 255.255.255.0interface Vlanif20ip address 192.168.20.252 255.255.255.0interface Vlanif66ip address 192.168.66.252 255.255.255.0
      , VRRP , :
       SW1 :

    interface Vlanif10vrrp vrid 10 virtual-ip 192.168.10.250vrrp vrid 10 priority 200interface Vlanif20vrrp vrid 20 virtual-ip 192.168.20.250
        SW2 :

    interface Vlanif10vrrp vrid 10 virtual-ip 192.168.10.250interface Vlanif20vrrp vrid 20 virtual-ip 192.168.20.250vrrp vrid 20 priority 200
      , DHCP, :
    
    DHCP 

    sysname DHCPinterface GigabitEthernet0/0/0ip address 192.168.66.1 255.255.255.0 dhcp select globalip route-static 0.0.0.0 0.0.0.0 192.168.66.252ip pool p1gateway-list 192.168.10.250 network 192.168.10.0 mask 255.255.255.0 dns-list 8.8.8.8 ip pool p2gateway-list 192.168.20.250 network 192.168.20.0 mask 255.255.255.0 dns-list 8.8.8.8
         SW1 :

    dhcp enableinterface Vlanif10dhcp select relaydhcp relay server-ip 192.168.66.1interface Vlanif20dhcp select relaydhcp relay server-ip 192.168.66.1
     SW1 :

    dhcp enableinterface Vlanif10dhcp select relaydhcp relay server-ip 192.168.66.1interface Vlanif20dhcp select relaydhcp relay server-ip 192.168.66.1
     , 。
         vrrp :
    PC :
      , DHCP , !!!
         。
         。
         。

    転載先:https://blog.51cto.com/11806823/2381939