R1:
router bgp 100
default-information originate
exit
show ip bgp
R1:
no ip route 0.0.0.0 0.0.0.0 null 0
router bgp 100
no redistribute static
no default-information originate
exit
ip route 0.0.0.0 0.0.0.0 12.1.1.2
router bgp 100
network 0.0.0.0
exit
show ip bgp
R1:
no ip route 0.0.0.0 0.0.0.0 12.1.1.2
router bgp 100
no network 0.0.0.0
exit
router bgp 100
neighbor 22.1.1.1 default-originate
exit
R2:
show ip bgp
用此命令时R1上并不会看到任何默认路由。