2023年12月20日发(作者:枝靖柏)
vlan batch 10 20 30 100#stp mode stp#interface Vlanif1#interface Vlanif10 description to 1 L ip address 10.155.10.254 255.255.255.0 vrrp vrid 1 virtual-ip 10.155.10.252 vrrp vrid 1 priority 120 vrrp vrid 1 preempt-mode timer delay 20#interface Vlanif20 ip address 10.155.20.254 255.255.255.0 vrrp vrid 1 virtual-ip 10.155.20.252 vrrp vrid 1 priority 120 vrrp vrid 1 preempt-mode timer delay 20#interface Vlanif30 description to 5 L ip address 10.156.40.254 255.255.255.0 ip address 10.156.30.254 255.255.255.0 sub vrrp vrid 1 virtual-ip 10.156.30.252 vrrp vrid 2 virtual-ip 10.156.40.252 vrrp vrid 2 priority 120 vrrp vrid 2 preempt-mode timer delay 20#interface Vlanif100 ip address 10.10.10.1 255.255.255.0#interface MEth0/0/1#
interface GigabitEthernet0/0/1 port link-type access port default vlan 100#interface GigabitEthernet0/0/11 port link-type trunk port trunk pvid vlan 100 port trunk allow-pass vlan 2 to 4094#interface GigabitEthernet0/0/21 port link-type trunk port trunk allow-pass vlan 30#ospf 1 area 0.0.0.0 network 10.10.10.0 0.0.0.255 network 10.155.0.0 0.0.255.255 network 10.156.0.0 0.0.255.255#return--------------------------------------
description to 1 L ip address 10.155.10.253 255.255.255.0 vrrp vrid 1 virtual-ip 10.155.10.252#interface Vlanif20 description to 1 L ip address 10.155.20.253 255.255.255.0 vrrp vrid 1 virtual-ip 10.155.20.252#interface Vlanif30 description to 5 L ip address 10.156.30.253 255.255.255.0 ip address 10.156.40.253 255.255.255.0 sub vrrp vrid 1 virtual-ip 10.156.30.252 vrrp vrid 1 priority 120 vrrp vrid 1 preempt-mode timer delay 20 vrrp vrid 2 virtual-ip 10.156.40.252#interface Vlanif200 ip address 10.10.20.1 255.255.255.0#interface MEth0/0/1#interface GigabitEthernet0/0/1#interface GigabitEthernet0/0/2 port link-type trunk port trunk allow-pass vlan 10 20#interface GigabitEthernet0/0/12 port hybrid pvid vlan 200 port hybrid tagged vlan 1 to 4094#
#interface GigabitEthernet0/0/22 port link-type trunk port trunk allow-pass vlan 30#ospf 1 area 0.0.0.0 network 10.155.0.0 0.0.255.255 network 10.156.0.0 0.0.255.255 network 10.10.20.0 0.0.0.255#return
2023年12月20日发(作者:枝靖柏)
vlan batch 10 20 30 100#stp mode stp#interface Vlanif1#interface Vlanif10 description to 1 L ip address 10.155.10.254 255.255.255.0 vrrp vrid 1 virtual-ip 10.155.10.252 vrrp vrid 1 priority 120 vrrp vrid 1 preempt-mode timer delay 20#interface Vlanif20 ip address 10.155.20.254 255.255.255.0 vrrp vrid 1 virtual-ip 10.155.20.252 vrrp vrid 1 priority 120 vrrp vrid 1 preempt-mode timer delay 20#interface Vlanif30 description to 5 L ip address 10.156.40.254 255.255.255.0 ip address 10.156.30.254 255.255.255.0 sub vrrp vrid 1 virtual-ip 10.156.30.252 vrrp vrid 2 virtual-ip 10.156.40.252 vrrp vrid 2 priority 120 vrrp vrid 2 preempt-mode timer delay 20#interface Vlanif100 ip address 10.10.10.1 255.255.255.0#interface MEth0/0/1#
interface GigabitEthernet0/0/1 port link-type access port default vlan 100#interface GigabitEthernet0/0/11 port link-type trunk port trunk pvid vlan 100 port trunk allow-pass vlan 2 to 4094#interface GigabitEthernet0/0/21 port link-type trunk port trunk allow-pass vlan 30#ospf 1 area 0.0.0.0 network 10.10.10.0 0.0.0.255 network 10.155.0.0 0.0.255.255 network 10.156.0.0 0.0.255.255#return--------------------------------------
description to 1 L ip address 10.155.10.253 255.255.255.0 vrrp vrid 1 virtual-ip 10.155.10.252#interface Vlanif20 description to 1 L ip address 10.155.20.253 255.255.255.0 vrrp vrid 1 virtual-ip 10.155.20.252#interface Vlanif30 description to 5 L ip address 10.156.30.253 255.255.255.0 ip address 10.156.40.253 255.255.255.0 sub vrrp vrid 1 virtual-ip 10.156.30.252 vrrp vrid 1 priority 120 vrrp vrid 1 preempt-mode timer delay 20 vrrp vrid 2 virtual-ip 10.156.40.252#interface Vlanif200 ip address 10.10.20.1 255.255.255.0#interface MEth0/0/1#interface GigabitEthernet0/0/1#interface GigabitEthernet0/0/2 port link-type trunk port trunk allow-pass vlan 10 20#interface GigabitEthernet0/0/12 port hybrid pvid vlan 200 port hybrid tagged vlan 1 to 4094#
#interface GigabitEthernet0/0/22 port link-type trunk port trunk allow-pass vlan 30#ospf 1 area 0.0.0.0 network 10.155.0.0 0.0.255.255 network 10.156.0.0 0.0.255.255 network 10.10.20.0 0.0.0.255#return