回覆列表
  • 1 # 亓官以銥

    關於如何配置路由器BGP問題很大,在這裡只是舉個小例子加以說明了,王海軍老師為你解答!

    1、問題:

    R1 R2 R3 建立rip 協議,同時屬於BGP 1 。R4 是預設路由,為BGP22、拓撲圖: 3、配置: R1 配置:

    interface FastEthernet0/0 ip address 192.168.1.1 255.255.255.0

    router rip network 192.168.1.0

    router bgp 1 no synchronization bgp log-neighbor-changes neighbor 192.168.1.2 remote-as 1 neighbor 192.168.2.2 remote-as 1 no auto-summary

    R2 配置:

    interface FastEthernet0/0 ip address 192.168.1.2 255.255.255.0

    interface FastEthernet1/0 ip address 192.168.2.1 255.255.255.0router rip network 192.168.1.0 network 192.168.2.0router bgp 1 no synchronization bgp log-neighbor-changes neighbor 192.168.1.1 remote-as 1 neighbor 192.168.2.2 remote-as 1 no auto-summary

    R3配置:

    interface FastEthernet0/0 ip address 192.168.3.1 255.255.255.0interface FastEthernet1/0 ip address 192.168.2.2 255.255.255.0

    router rip network 192.168.2.0

    router bgp 1 no synchronization bgp log-neighbor-changes network 192.168.3.0 neighbor 192.168.1.1 remote-as 1 neighbor 192.168.2.1 remote-as 1 neighbor 192.168.3.2 remote-as 2 no auto-summary

    R4配置:

    interface FastEthernet0/0 ip address 192.168.3.2 255.255.255.0

    router bgp 2 no synchronization bgp log-neighbor-changes neighbor 192.168.3.1 remote-as 1 no auto-summary

    ip route 0.0.0.0 0.0.0.0 192.168.3.1

    =============================================

    R1檢視路由表:

    路由表學到,實驗成功!

  • 中秋節和大豐收的關聯?
  • 田徑百米比賽的半決賽和決賽時間為什麼離得這麼近?