關於如何配置路由器BGP問題很大,在這裡只是舉個小例子加以說明了,王海軍老師為你解答!
1、問題:
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檢視路由表:
路由表學到,實驗成功!
關於如何配置路由器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檢視路由表:
路由表學到,實驗成功!