单臂路由,不同路由之间的通信,备份链路之间的问题
SW1
undo terminal monitor
Info: Current terminal monitor is off.
sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys
[Huawei]sysname SW1
[SW1]user-interface console 0
[SW1-ui-console0]idle-timeout 0 0
[SW1-ui-console0]quit
[SW1]vlan bat 10 20
Info: This operation may take a few seconds. Please wait for a moment…done.
[SW1]int e0/0/1
[SW1-Ethernet0/0/1]port link-type access
[SW1-Ethernet0/0/1]port default vlan 10
[SW1-Ethernet0/0/1]int e0/0/2
[SW1-Ethernet0/0/2]port link-type access
[SW1-Ethernet0/0/2]port default vlan 20
[SW1-Ethernet0/0/2]quit
[SW1]int g0/0/1
[SW1-GigabitEthernet0/0/1]port link-type trunk
[SW1-GigabitEthernet0/0/1]port trunk allow-pass vlan all
[SW1-GigabitEthernet0/0/1]quit

SW2
undo terminal monitor
Info: Current terminal monitor is off.
system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sys SW2
[SW2]user-interface console 0
[SW2-ui-console0]idle-timeout 0 0
[SW2-ui-console0]quit
[SW2]vlan bat 30 40
Info: This operation may take a few seconds. Please wait for a moment…done.
[SW2]int e0/0/1
[SW2-Ethernet0/0/1]port link-type access
[SW2-Ethernet0/0/1]port default vlan 30
[SW2-Ethernet0/0/1]int e0/0/2
[SW2-Ethernet0/0/2]port link-type access
[SW2-Ethernet0/0/2]port default vlan 40
[SW2-Ethernet0/0/2]int g0/0/1
[SW2-GigabitEthernet0/0/1]port link-type trunk
[SW2-GigabitEthernet0/0/1]port trunk allow-pass vlan all
[SW2-GigabitEthernet0/0/1]quit

R1
undo terminal monitor
Info: Current terminal monitor is off.
sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys R1
[R1]user-interface console 0
[R1-ui-console0]idle-timeout 0 0
[R1-ui-console0]quit
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]undo shutdown
Info: Interface GigabitEthernet0/0/0 is not shutdown.
[R1-GigabitEthernet0/0/0]int g0/0/0.1
[R1-GigabitEthernet0/0/0.1]vlan-type dot1q 10 default
[R1-GigabitEthernet0/0/0.1]ip add 192.168.1.1 24
[R1-GigabitEthernet0/0/0.1]int g0/0/0.2
[R1-GigabitEthernet0/0/0.2]vlan-type dot1q 20 default
[R1-GigabitEthernet0/0/0.2]ip add 192.168.2.1 24
[R1-GigabitEthernet0/0/0.2]quit
[R1]int e0/0/0
[R1-Ethernet0/0/0]ip add 21.1.1.1 24
[R1-Ethernet0/0/0]undo shutdown
Info: Interface Ethernet0/0/0 is not shutdown.
[R1-Ethernet0/0/0]int g0/0/2
[R1-GigabitEthernet0/0/2]ip add 12.1.1.1 24
[R1-GigabitEthernet0/0/2]undo shutdown
Info: Interface GigabitEthernet0/0/2 is not shutdown.
[R1-GigabitEthernet0/0/2]quit
[R1]ip route-static 192.168.3.1 24 12.1.1.2
[R1]ip route-static 192.168.3.1 24 21.1.1.2 preference 61
[R1]ip route-static 192.168.4.1 24 12.1.1.2
[R1]ip route-static 192.168.4.1 24 21.1.1.2 preference 61
[R1]quit

R2
undo terminal monitor
Info: Current terminal monitor is off.
sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys R2
[R2]user-interface console 0
[R2-ui-console0]idle-timeout 0 0
[R2-ui-console0]quit
[R2]int g0/0/0
[R2-GigabitEthernet0/0/0]undo shutdown
Info: Interface GigabitEthernet0/0/0 is not shutdown.
[R2-GigabitEthernet0/0/0]int g0/0/0.1
[R2-GigabitEthernet0/0/0.1]vlan-type dot1q 30 default
[R2-GigabitEthernet0/0/0.1]ip add 192.168.3.1 24
[R2-GigabitEthernet0/0/0.1]int g0/0/0.2
[R2-GigabitEthernet0/0/0.2]vlan-type dot1q 40 default
[R2-GigabitEthernet0/0/0.2]ip add 192.168.4.1 24
[R2-GigabitEthernet0/0/0.2]quit
[R2]int g0/0/2
[R2-GigabitEthernet0/0/2]ip add 12.1.1.2 24
[R2-GigabitEthernet0/0/2]undo shutdown
Info: Interface GigabitEthernet0/0/2 is not shutdown.
[R2-GigabitEthernet0/0/2]int e0/0/0
[R2-Ethernet0/0/0]ip add 21.1.1.2 24
[R2-Ethernet0/0/0]undo shutdown
Info: Interface Ethernet0/0/0 is not shutdown.
[R2-Ethernet0/0/0]quit
[R2]ip route-static 192.168.1.1 24 12.1.1.1
[R2]ip route-static 192.168.1.1 24 21.1.1.1 preference 61
[R2]ip route-static 192.168.2.1 24 12.1.1.1
[R2]ip route-static 192.168.2.1 24 21.1.1.1 preference 61
[R2]quit

相关文章:

  • 2021-11-16
  • 2021-06-13
  • 2021-07-06
  • 2021-05-09
  • 2021-10-29
  • 2021-07-07
  • 2022-01-21
猜你喜欢
  • 2021-12-15
  • 2021-08-15
  • 2021-07-11
  • 2021-07-24
  • 2021-05-17
  • 2021-09-15
  • 2021-12-02
相关资源
相似解决方案