From Internetworkpro
| This page or section provides device configuration instructions
Please note that the information on this page has not been checked for accuracy and is not intended as a replacement to documentation. Please ensure you understand your desired objectives before attempting to apply any examples listed. See more examples at Category:Configuration
|
interface GigabitEthernet0/1
ip address xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx
no ip redirects
ip route-cache flow
duplex full
speed 100
media-type rj45
no negotiation auto
no cdp enable
!
interface GigabitEthernet0/2
no ip address
shutdown
duplex auto
speed auto
media-type rj45
no negotiation auto
no cdp enable
!
interface GigabitEthernet0/3
no ip address
shutdown
duplex auto
speed auto
media-type rj45
negotiation auto
no cdp enable
!
router bgp 0001 - (Whatever your AS number is.)
no synchronization
bgp log-neighbor-changes
network xxx.xxx.xxx.xxx mask xxx.xxx.xxx.xxx - (The network you are annoucing.)
neighbor xxx.xxx.xxx.xxx remote-as 0000 - (The far end routers ip address and AS number.)
neighbor xxx.xxx.xxx.xxx soft-reconfiguration inbound - (Allows bgp updates to apply with out doing a complete reload of bgp)
neighbor xxx.xxx.xxx.xxx prefix-list AS0001 out - (Prefix list filter shown below)
neighbor xxx.xxx.xxx.xxx filter-list 85 out -(Prefix list filter shown below)
neighbor xxx.xxx.xxx.xxx remote-as 0001 - (The other router that is in your AS and doing iBGP)
neighbor xxx.xxx.xxx.xxx next-hop-self - (IP address of the iBGP neighbor)
no auto-summary
!
ip as-path access-list 85 permit ^$ - (Only allows your network statement to be sent out as an update)
!
ip prefix-list AS0001 seq 5 permit xxx.xxx.xxx.xxx/24 - (Setting what prefix you are annoucing for filtering.)
!
access-list 1 permit xxx.xxx.xxx.xxx
access-list 110 permit ip host xxx.xxx.xxx.xxx any
Back to Sample Configs