设为首页 收藏本站
查看: 2468|回复: 0

[经验分享] 华为USG双出口冗余

[复制链接]

尚未签到

发表于 2018-7-23 12:21:48 | 显示全部楼层 |阅读模式
  如图:实现 要求:
  1、当流量正常时PC1---LSW1----FW1----LSP_CNCC(lo0);PC2---LSW1----FW1----LSP_CMCC(lo0)
  2、当LSP_CNCC(lo0)挂掉时;PC1与CP2流量全部切换至LSP_CMCC(lo0)反之当LSP_CMCC(lo0)挂掉时;PC1与CP2流量全部切换至LSP_CNCC(lo0)
  3、注意配置ACL中deny意思为当实行内部网段通信时不匹配策略,如匹配策略的话,就会进行NAT导致内部通信中断!
  4、实际案例中根据实际情况去绑定检测机制如NQA,BFD等实现更快去检测链路故障实现流量的切换保证流量可达性!
DSC0000.jpg

  FW1配置:
  <SRG>dis current-configuration
  23:04:18  2017/07/12
  #
  stp region-configuration
  region-name e81582044529
  active region-configuration
  #
  acl number 3000
  rule 2 deny ip destination 192.168.20.0 0.0.0.255    //实现内部通信,不让其匹配策略!
  rule 5 permit ip source 192.168.10.0 0.0.0.255
  rule 10 deny ip
  #
  acl number 3001
  rule 2 deny ip destination 192.168.10.0 0.0.0.255
  rule 5 permit ip source 192.168.20.0 0.0.0.255
  rule 10 deny ip
  #
  interface GigabitEthernet0/0/0
  alias GE0/MGMT
  ip address 192.168.0.1 255.255.255.0
  dhcp select interface
  dhcp server gateway-list 192.168.0.1
  #
  interface GigabitEthernet0/0/1
  ip address 210.1.1.1 255.255.255.0
  #
  interface GigabitEthernet0/0/2
  ip address 220.1.1.1 255.255.255.0
  #
  interface GigabitEthernet0/0/3
  #
  interface GigabitEthernet0/0/4
  #
  interface GigabitEthernet0/0/5
  #
  interface GigabitEthernet0/0/6
  #
  interface GigabitEthernet0/0/7
  #
  interface GigabitEthernet0/0/8
  #
  interface GigabitEthernet0/0/8.10
  vlan-type dot1q 10
  alias GigabitEthernet0/0/8.10
  ip address 192.168.10.254 255.255.255.0
  ip policy-based-route 10
  #
  interface GigabitEthernet0/0/8.20
  vlan-type dot1q 20
  alias GigabitEthernet0/0/8.20
  ip address 192.168.20.254 255.255.255.0
  ip policy-based-route 10
  #
  interface NULL0
  alias NULL0
  #
  firewall zone local
  set priority 100
  #
  firewall zone trust
  set priority 85
  add interface GigabitEthernet0/0/0
  add interface GigabitEthernet0/0/8
  add interface GigabitEthernet0/0/8.10
  add interface GigabitEthernet0/0/8.20
  #
  firewall zone untrust
  set priority 5
  #
  firewall zone dmz
  set priority 50
  #
  firewall zone name cncc
  set priority 10
  add interface GigabitEthernet0/0/1
  #
  firewall zone name cmcc
  set priority 15
  add interface GigabitEthernet0/0/2
  #
  aaa
  local-user admin password cipher %$%$q4o'Iu\Qr<9uB!;*(9\WYvmd%$%$
  local-user admin service-type web terminal telnet
  local-user admin level 15
  authentication-scheme default
  #
  authorization-scheme default
  #
  accounting-scheme default
  #
  domain default
  #
  #
  nqa-jitter tag-version 1
  #
  ip route-static 0.0.0.0 0.0.0.0 210.1.1.2
  ip route-static 0.0.0.0 0.0.0.0 220.1.1.2
  #
  banner enable
  #
  user-interface con 0
  authentication-mode none
  user-interface vty 0 4
  authentication-mode none
  protocol inbound all
  #
  policy-based-route 10 permit node 10            //配置两个网段的流量走向!
  if-match acl 3000
  apply ip-address next-hop 210.1.1.2
  policy-based-route 10 permit node 20
  if-match acl 3001
  apply ip-address next-hop 220.1.1.2
  #
  slb
  #
  right-manager server-group
  #
  sysname SRG
  #
  l2tp domain suffix-separator @
  #
  firewall packet-filter default permit interzone local trust direction inbound
  firewall packet-filter default permit interzone local trust direction outbound
  firewall packet-filter default permit interzone local untrust direction outbound
  firewall packet-filter default permit interzone local dmz direction outbound
  firewall packet-filter default permit interzone local cncc direction outbound
  firewall packet-filter default permit interzone local cmcc direction outbound
  #
  ip df-unreachables enable
  #
  firewall ipv6 session link-state check
  firewall ipv6 statistic system enable
  #
  dns resolve
  #
  firewall statistic system enable
  #
  pki ocsp response cache refresh interval 0
  pki ocsp response cache number 0
  #
  undo dns proxy
  #
  license-server domain lic.huawei.com
  #
  web-manager enable
  #
  policy interzone trust cncc outbound             //放行流量从CNCC出去!
  policy 0
  action permit
  policy source 192.168.10.0 mask 24
  policy source 192.168.20.0 mask 24
  #
  policy interzone trust cmcc outbound         //放行流量从CMCC出去!
  policy 0
  action permit
  policy source 192.168.10.0 mask 24
  policy source 192.168.20.0 mask 24
  #
  nat-policy interzone trust cncc outbound   //做cncc端的地址转换
  policy 0
  action source-nat
  policy source 192.168.10.0 mask 24
  policy source 192.168.20.0 mask 24
  easy-ip GigabitEthernet0/0/1
  #
  nat-policy interzone trust cmcc outbound    //做cmcc端的地址转换
  policy 0
  description isthis
  action source-nat
  policy source 192.168.10.0 mask 24
  policy source 192.168.20.0 mask 24
  easy-ip GigabitEthernet0/0/2
  #
  return
  <SRG>
  SW1配置:
  <SW1>dis current-configuration
  #
  sysname SW1
  #
  vlan batch 10 20
  #
  interface Ethernet0/0/1
  port link-type access
  port default vlan 10
  #
  interface Ethernet0/0/2
  port link-type access
  port default vlan 20
  #
  interface Ethernet0/0/3
  description sithos
  port link-type trunk
  port trunk allow-pass vlan 2 to 4094
  <SW1>
  LSP_CNCC配置:
  <CNCC>dis current-configuration
  [V200R003C00]
  #
  sysname CNCC
  #
  interface GigabitEthernet0/0/0
  #
  interface GigabitEthernet0/0/1
  ip address 210.1.1.2 255.255.255.0
  #
  interface NULL0
  #
  interface LoopBack0
  ip address 100.100.100.100 255.255.255.255
  #
  user-interface con 0
  authentication-mode password
  user-interface vty 0 4
  user-interface vty 16 20
  #
  wlan ac
  #
  return
  <CNCC>
  LSP_CMCC配置:
  <cmcc>dis current-configuration
  [V200R003C00]
  #
  sysname cmcc
  #
  interface GigabitEthernet0/0/1
  ip address 220.1.1.2 255.255.255.0
  #
  interface NULL0
  #
  interface LoopBack0
  ip address 100.100.100.100 255.255.255.255
  #
  user-interface con 0
  authentication-mode password
  user-interface vty 0 4
  user-interface vty 16 20
  #
  wlan ac
  #
  return
  <cmcc>
  验证流量走向是否正确?
  PC1流量走向   (正确)
DSC0001.jpg

  PC2流量走向(正确)
DSC0002.jpg

  当LSP_CNCC挂时;关掉USG   g0/0/1(流量实现切换;地址已由210--220)
DSC0003.jpg

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-540145-1-1.html 上篇帖子: 用华为模拟器的hybrid做三层交换 下篇帖子: 联想和华为的1994年
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表