1_ Sơ đồ:
HCM (eth0)-------------------------------(eth0)HNI
(lo) (lo)
Mục tiêu: quảng bá lớp mạng lo giữa các router với nhau bằng giao thức BGP
2_Thông số
R_HCM:
eth0: 192.168.199.89/30
lo: 10.1.1.1/24
AS: 1
R_HNI:
eth0: 192.168.199.90/30
lo: 10.0.0.1/24
AS: 2
3_ Config:
R_HCM:
configure
set interfaces loopback lo address 10.1.1.1/24
set protocols bgp 1 neighbor 192.168.199.90 remote-as 2
set protocols bgp 1 network 10.1.1.0/24
set protocols bgp 1 neighbor 192.168.199.90 password abcdef
commit
save
R_HNI:
configure
set interfaces loopback lo address 10.0.0.1/24
set protocols bgp 2 neighbor 192.168.199.89 remote-as 1
set protocols bgp 2 network 10.0.0.0/24
set protocols bgp 2 neighbor 192.168.199.89 password abcdef
commit
save
4_ Check:
vyatta@hni:~$ show ip bgp
BGP table version is 0, local router ID is 10.0.0.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, R Removed
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 10.0.0.0/24 0.0.0.0 1 32768 i
*> 10.1.1.0/24 192.168.199.89 1 0 1 i
Total number of prefixes 2
vyatta@hni:~$ ping 10.1.1.1
PING 10.1.1.1 (10.1.1.1) 56(84) bytes of data.
64 bytes from 10.1.1.1: icmp_req=1 ttl=64 time=0.332 ms
64 bytes from 10.1.1.1: icmp_req=2 ttl=64 time=0.041 ms
64 bytes from 10.1.1.1: icmp_req=3 ttl=64 time=0.370 ms
Không có nhận xét nào:
Đăng nhận xét