Expérience complète du réseau: agrégation de liens de rip de vrrp vlan ospf routage statique dhcp redistribution nat et ospf

Expérience complète du réseau: agrégation de liens de rip de vrrp vlan ospf routage statique dhcp redistribution nat et ospf

Insérez la description de l'image ici
Configurez le serveur d'accès IP facile sur l'interface r1 G0 / 0/2. Le serveur est configuré en
tant que serveur NAT sur le réseau privé sur l'interface G0 / 0/0 de r3. Utilisez
sw1 comme routeur principal de vlan20 et principal racine de
sw2vlan10.
R2 configurer le serveur
dhcp et la configuration r3 répéteur dhcp, injection de route, route statique
r4 configurer la route statique

sw1

utm
Info: le moniteur de terminal actuel est désactivé.
sys
Entrez dans la vue système, retournez la vue utilisateur avec Ctrl + Z.
[Huawei] sysname sw1
[sw1] console de l'interface utilisateur 0
[sw1-ui-console0] idle-timeout 0 0
[sw1-ui-console0] q
[sw1] vlan bat 10 20 100
Info: Cette opération peut prendre quelques secondes . Veuillez patienter un moment… terminé.
[sw1] int g0 /
0/01 [sw1-GigabitEthernet0 / 0/1] plt
[sw1-GigabitEthernet0 / 0/1] ptava
[sw1-GigabitEthernet0 / 0/1] int g0 /
0/5 [sw1-GigabitEthernet0 / 0 / 5] pla
[sw1-GigabitEthernet0 / 0/5] pdv 100
[sw1-GigabitEthernet0 / 0/5] q
[sw1] lacp priority 1000
[sw1] int eth-trunk 1
[sw1-Eth-Trunk1] bpdu enable
[sw1-Eth-Trunk1] mode lacp-static
[sw1-Eth-Trunk1] trunkport GigabitEthernet 0/0/2 à 0/0/4
Info: Cette opération peut prendre quelques secondes. Veuillez patienter un instant…
[sw1] int Eth-Trunk 1
[sw1-Eth-Trunk1] plt
[sw1-Eth-Trunk1] ptava
[sw1-Eth-Trunk1] max active-linknumber 2
[sw1-Eth-Trunk1] q
[sw1] mode stp mstp
[sw1] configuration de la région stp
[sw1-mst-region] nom de la région huawei
[sw1-mst-region] rev
[sw1-mst-region] niveau de révision 1
[sw1-mst-region] instance 1 vlan 20
[sw1-mst-region] instance 2 vlan 10
[sw1-mst-region] active region-configuration
Info: Cette opération peut prendre quelques secondes. Veuillez patienter un moment… terminé.
[sw1-mst-region] q
[sw1] instance stp 1 racine primaire
[sw1] instance stp 2 racine secondaire
[sw1] int vlan 10
[sw1-Vlanif10] ip add 192.168.10.10 24
[sw1-Vlanif10] int vlan 20
[ sw1-Vlanif20] ip add 192.168.20.10 24
[sw1-Vlanif20] int vlan 100
[sw1-Vlanif100] ip add 10.0.0.10 24
[sw1-Vlanif100] int vlan 10
[sw1-Vlanif10] vrrp vrid 10 virtual-ip 192.168. 10.1
[sw1-Vlanif10] vrrp vrid 10 priorité 115
[sw1-Vlanif10] int vlan 20
[sw1-Vlanif20] vrrp vrid 20 virtual-ip 192.168.20.1
[sw1-Vlanif20] vrrp vrid 20 priorité 120
[sw1-Vlanif20] vrrp vrid Interface 20 pistes g0 /
0/5 réduite 30 [sw1-Vlanif20] q
[sw1] ospf
[sw1-ospf-1] zone 0
[sw1-ospf-1-area-0.0.0.0] réseau 10.0.0.0 0.0.0.255
[sw1-ospf-1-area-0.0.0.0] réseau 192.168.10.0 0.0.0.255
[sw1-ospf-1-area-0.0 .0.0] réseau 192.168.20.0 0.0.0.255

sw2

[Huawei] sysname sw2
[sw2] console de l'interface utilisateur 0
[sw2-ui-console0] idle-t
[sw2-ui-console0] idle-timeout 0 0
[sw2-ui-console0] q
[sw2] vlan bat 10 20 100
[sw2] int g0 /
0/1 [sw2-GigabitEthernet0 / 0/1] plt
[sw2-GigabitEthernet0 / 0/1] ptava
[sw2-GigabitEthernet0 / 0/1] int g0 /
0/5 [sw2-GigabitEthernet0 / 0/5] pla
[sw2-GigabitEthernet0 / 0/5] pdv 100
[sw2-GigabitEthernet0 / 0/5] q
[sw2] lacp priority 1000
[sw2] int Eth-Trunk 1
[sw2-Eth-Trunk1] bpdu enable
[ sw2-Eth-Trunk1] mode lacp-static
[sw2-Eth-Trunk1] trunkport GigabitEthernet 0/0/2 à 0/0/4
[sw2-Eth-Trunk1] plt
[sw2-Eth-Trunk1] ptava
[sw2-Eth-Trunk1] max active-linknumber 2
[sw2-Eth-Trunk1] q
[sw2] stp region-configuration
[sw2-mst-region] region-name huawei
[sw2-mst-region] révision-niveau 1
[ sw2-mst-region] instance 1 vlan 20
[sw2-mst-region] ins
[sw2-mst-region] instance 2 vlan 10
[sw2-mst-region] configuration de la région active
[sw2-mst-region] q
[sw2 ] instance stp 1 racine secondaire
[sw2] instance stp 2 racine primaire
[sw2] int vlan 10
[sw2-Vlanif10] ip add 192.168.10.20 24
[sw2-Vlanif10] int vlan 20
[sw2-Vlanif20] ip add 192.168.20.20 24
[sw2-Vlanif20] int vlan 100
[sw2-Vlanif100] ip add 11.0.0.20 24
[sw2-Vlanif100] q
[sw2] int vlan 10
[sw2-Vlanif10] vrrp vrid 10 vr
[sw2-Vlanif10] vrrp vrid 10 vir
[sw2-Vlanif10] vrrp vrid 10 virtual-ip 192.168.10.1
[sw2-Vlanif10] vrrp vrid 10 pri
[sw2-Vlanif10] vrrp vrid 10 priorité 120
[sw2-Vlanif10] interface vrrp vrid 10 pistes g0 /
0/5 réduit 30 [sw2-Vlanif10] int vlan 20
[sw2-Vlanif20] vrrp vrid 20 virtual-ip 192.168.20.1
[sw2-Vlanif20] vrrp vrid 20 priorité 115
[sw2-Vlanif20] q
[sw2] dis vrrp

[sw2]
[sw2] ospf
[sw2-ospf-1] zone 0
[sw2-ospf-1-area-0.0.0.0] réseau 11.0.0.0 0.0.0.255
[sw2-ospf-1-area-0.0.0.0] réseau 192.168.10.0 0.0.0.255
[sw2-ospf-1-area-0.0.0.0] réseau 192.168.20.0 0.0.0.255
[sw2-ospf-1-area-0.0.0.0] q
[sw2-ospf-1] q
[sw2 ]

sw3

Veuillez appuyer sur ENTRÉE.
utm
Info: le moniteur de terminal actuel est désactivé.
sys
Entrez dans la vue système, retournez la vue utilisateur avec Ctrl + Z.
[Huawei] sysname sw3
[sw3] vlan bat 10 20 100
Info: Cette opération peut prendre quelques secondes. Veuillez patienter un moment… terminé.
[sw3] int e0 /
0/1 [sw3-Ethernet0 / 0/1] pla
[sw3-Ethernet0 / 0/1] pdv 10
[sw3-Ethernet0 / 0/1] int e0 /
0/2 [sw3-Ethernet0 / 0/2] pla
[sw3-Ethernet0 / 0/2] pdv 20
[sw3-Ethernet0 / 0/2] int e0 /
0/3 [sw3-Ethernet0 /
0/3 ] pla [sw3-Ethernet0 / 0/3] pdv 10
[sw3-Ethernet0 / 0/3] int g0 /
0/1 [sw3-GigabitEthernet0 / 0/1] plt
[sw3-GigabitEthernet0 / 0/1] ptava
[sw3-GigabitEthernet0 / 0/1] int g0 /
0/2 [sw3-GigabitEthernet0 / 0/2] plt
[sw3-GigabitEthernet0 / 0/2] ptava
[sw3] stp mode mstp
[sw3] stp region-configuration
[sw3 -mst-region] nom-région huawei
[sw3-mst-region] niveau de révision 1
[sw3-mst-region] instance 1 vlan 10
[sw3-mst-region] instance 2 vlan 20
[sw3-mst-region] active region-configuration
Info: Cette opération peut prendre quelques secondes. Veuillez patienter un instant… terminé.
[sw3-mst-region]

r1

utm
[Huawei] sysname r1
[r1] console de l'interface utilisateur 0
[r1-ui-console0] idle-timeout 0 0
[r1-ui-console0] q
[r1] int g0 /
0/0 [r1-GigabitEthernet0 / 0 / 0] ip add 10.0.0.1 24
[r1-GigabitEthernet0 / 0/0] int g0 /
0/1 [r1-GigabitEthernet0 / 0/1] ip add 11.0.0.1 24
[r1-GigabitEthernet0 / 0/1] annulation des
infos d' arrêt : L'interface GigabitEthernet0 / 0/1 n'est pas arrêtée.
[r1-GigabitEthernet0 / 0/1] int g0 /
0/0 [r1-GigabitEthernet0 / 0/0] annuler l'arrêt
Info: L'interface GigabitEthernet0 / 0/0 n'est pas arrêtée.
[r1-GigabitEthernet0 / 0/0] int g0 /
0/2 [r1-GigabitEthernet0 / 0/2] ip ajouter 12.0.0.1 24
[r1-GigabitEthernet0 / 0/2] annuler l'arrêt
Info: L'interface GigabitEthernet0 / 0/2 n'est pas arrêtée.
[r1-GigabitEthernet0 / 0/2] q
[r1] ospf
[r1-ospf-1] zone 0
[r1-ospf-1-area-0.0.0.0] réseau 10.0.0.0 0.0.0.255
[r1-ospf-1- area-0.0.0.0] réseau 11.0.0.0 0.0.0.255
[r1-ospf-1-area-0.0.0.0] réseau 12.0.0.0 0.0.0.255
[r1-ospf-1-area-0.0.0.0] q
[r1- ospf-1] q
[r1] int loop0
[r1-LoopBack0] ip add 1.1.1.1 32
[r1-LoopBack0] ospf
[r1-ospf-1] area 0
[r1-ospf-1-area-0.0.0.0] réseau 1.1.1.1 0.0.0.0
[r1-ospf-1-area-0.0.0.0] q
[r1] acl 2000
[r1-acl-basic-2000] règle par
[r1-acl-basic-2000] rule permit s
[r1 -acl-basic-2000] source de permis de règle 192.168.10.101 0.0.0.255
[r1-acl-basic-2000] q
[r1] int g0 /
0/2 [r1-GigabitEthernet0 / 0/2] nat sortant 2000
[r1-GigabitEthernet0 / 0/2] q

r2

[Huawei] sysname r2
[r2] interface utilisateur console 0
[r2-ui-console0] idle-timeout 0 0
[r2-ui-console0] q
[r2] int g0 /
0/0 [r2-GigabitEthernet0 / 0/0 ] ip add 12.0.0.2 24
[r2-GigabitEthernet0 / 0/0] annuler l'arrêt
Info: L'interface GigabitEthernet0 / 0/0 n'est pas arrêtée.
[r2-GigabitEthernet0 / 0/0] int g0 /
0/2 [r2-GigabitEthernet0 / 0/2] ip ajouter 24.0.0.2 24
[r2-GigabitEthernet0 / 0/2] annuler l'arrêt
Info: l'interface GigabitEthernet0 / 0/2 est pas arrêté.
[r2-GigabitEthernet0 / 0/2] int g0 /
0/1 [r2-GigabitEthernet0 / 0/1] ip ajouter 23.0.0.2 24
[r2-GigabitEthernet0 / 0/1] annuler l'arrêt
[r2-GigabitEthernet0 / 0/1] q
[r2] int loop0
[r2-LoopBack0] ip add 2.2.2.2 32
[r2-LoopBack0] ospf
[r2] dhcp enable
[r2] int g0 /
0/1 [r2-GigabitEthernet0 / 0/1] IP pool 1
[r2-ip-pool-1] gateway-list 192.168.100.1
[r2- ip-pool-1] réseau 192.168.100.0 masque 24
[r2-ip-pool-1] dns-list 8.8.8.8
[r2-ip-pool-1] int g0 /
0/1 [r2-GigabitEthernet0 / 0/1 ] dhcp sélectionnez global
[r2-GigabitEthernet0 / 0/1] q
[r2] ospf
[r2-ospf-1] zone 0
[r2-ospf-1-zone-0.0.0.0] réseau 12.0.0.0 0.0.0.255
[r2- ospf-1-area-0.0.0.0] réseau 2.2.2.2 0.0.0.0
[r2-ospf-1-area-0.0.0.0] q
[r2-ospf-1] q
[r2] rip
[r2-rip-1] version 2
[r2-rip-1] annulation résumé
[r2-rip-1] réseau 23.0.0.0
[r2-rip-1] import-route ospf 1 coût 3
[r2-rip-1] q
[r2] ospf
[r2-ospf-1] import-route rip 1 type 1 cost 1
[r2-ospf-1] q
[r2] ip route-static 192.168.30.0 24 24.0.0.4
[r2] ospf
[r2-ospf-1] import-route direct
[r2-ospf-1] import-route statique
[r2] rip
[r2-ospf-1] default-route originate

r3

utm
Info: le moniteur de terminal actuel est désactivé.
sys
Entrez dans la vue système, retournez la vue utilisateur avec Ctrl + Z.
[Huawei] sysname r3
[r3] user-in
[r3] user-interface c
[r3] user-interface console0
[r3-ui-console0] idle-t
[r3-ui-console0] idle-timeout 0 0
[r3- ui-console0] int g0 /
0/0 [r3-GigabitEthernet0 / 0/0] ip add 23.0.0.1 24
[r3-GigabitEthernet0 / 0/0] undo shutdown
Info: L'interface GigabitEthernet0 / 0/0 n'est pas arrêtée.
[r3-GigabitEthernet0 / 0/0] int g0 /
0/1 [r3-GigabitEthernet0 / 0/1] ip ajouter 192.168.100.1 24
[r3-GigabitEthernet0 / 0/1] annuler l'arrêt
Info: L'interface GigabitEthernet0 / 0/1 est pas arrêté.
[r3-GigabitEthernet0 / 0/1] int g0 / 0/2
[r3-GigabitEthernet0 / 0/2] ip ajouter 192.168.50.1 24
[r3-GigabitEthernet0 / 0/2] annuler l'arrêt
Info: l'interface GigabitEthernet0 / 0/2 n'est pas arrêtée.
[r3-GigabitEthernet0 / 0/2] q
[r3] dhcp enable
[r3] int g0 /
0/1 [r3-GigabitEthernet0 / 0/1] dhcp select relay
[r3-GigabitEthernet0 / 0/1] dhcp relay server-ip 23.0.0.2
[r3-GigabitEthernet0 / 0/1] q
[r3] q
[r3] int loop0
[r3-LoopBack0] ip add 3.3.3.3 32
[r3-LoopBack0] q
[r3] ospf
[r3-ospf-1] zone 0
[r3-ospf-1-area-0.0.0.0] réseau 3.3.3.3 0.0.0.0
[r3-ospf-1-area-0.0.0.0] annuler le réseau 3.3.3.3 0.0.0.0
[r3-ospf-1- area-0.0.0.0] q
[r3-ospf-1] q
[r3] rip
[r3-rip-1] version 2
[r3-rip-1] annulation résumé
[r3-rip-1] réseau 23.0.0.0
[r3-rip-1] réseau 192.168.100.0
[r3-rip-1] réseau 192.168.50.0
[r3-rip-1] réseau 3.0.0.0
[r3-rip-1] q
[r3] int g0 /
0/0 [r3-GigabitEthernet0 / 0/0] protocole du serveur nat tcp global 23.0.0.3 8080 à l'intérieur de 192.168.50.100 80
[r3-GigabitEthernet0 / 0 / 0] dis ceci

r4

utm
Info: le moniteur de terminal actuel est désactivé.
sys
[Huawei] sysname r4
[r4] interface utilisateur console 0
[r4-ui-console0] idle-timeout 0 0
[r4-ui-console0] q
[r4] int g0 /
0/2 [r4-GigabitEthernet0 / 0 / 2] ip add 24.0.0.4 24
[r4-GigabitEthernet0 / 0/2] q
[r4] ip route-static 0.0.0.0 0 24.0.0.2
[r4] int g0 /
0/0 [r4-GigabitEthernet0 / 0/0] ip ajouter 192.168.30.1 24
[r4-GigabitEthernet0 / 0/0] annuler l'arrêt

Je suppose que tu aimes

Origine blog.csdn.net/weixin_53567573/article/details/112717849
conseillé
Classement