Example Configurations
From AS4
Peering and policy configuration for 32-bit ASNs is usually the same as the configuration for 16-bit ASNs. Here are some examples to get you started.
Contents |
Brocade (Foundry) IronWare
Version: 4.0.00 (with AS4 support)
router bgp local-as 80000 neighbor 192.168.1.1 remote-as 70000
Cisco IOS
Version: 12.4(12) (no AS4 support)
router bgp 64510 neighbor 1.2.3.2 remote-as 64509 neighbor 1.2.3.2 description AS2 peer neighbor 1.2.3.10 remote-as 23456 neighbor 1.2.3.10 description AS4 peer
(with AS4 support using asplain)
router bgp 65537 neighbor 1.2.3.1 remote-as 64510 neighbor 1.2.3.1 description AS2 peer neighbor 1.2.3.5 remote-as 65538 neighbor 1.2.3.5 description AS4 peer
(with AS4 support using asdot)
router bgp 1.1 bgp asnotation dot neighbor 1.2.3.1 remote-as 64510 neighbor 1.2.3.1 description AS2 peer neighbor 1.2.3.5 remote-as 1.2 neighbor 1.2.3.5 description AS4 peer
Cisco IOS XR
(The following example is meant to do exactly what the IOS example does.)
prefix-set global-v4 0.0.0.0/0 le 32 end-set ! route-policy v4-in if destination in global-v4 then pass endif end-policy ! route-policy v4-out if destination in global-v4 then pass endif end-policy ! router bgp 1.1 neighbor 1.2.3.1 remote-as 64510 description AS2 peer address-family ipv4 unicast route-policy v4-in in route-policy v4-out out ! neighbor 1.2.3.5 remote-as 1.2 description AS4 peer address-family ipv4 unicast route-policy v4-in in route-policy v4-out out
Juniper JUNOS
Version: 8.5R4.3 (no AS4 support, AS_TRANS is shown in the AS path in CLI output instead of 23456)
neighbor 72.37.255.13 {
! Only if using EBGP multihop
multihop {
ttl 50;
}
family inet {
unicast {
prefix-limit {
maximum 10;
}
}
}
peer-as 23456;
}
Version: 9.3R1.7 (with AS4 support)
neighbor 72.37.255.13 {
! Only if using EBGP multihop
multihop {
ttl 50;
}
family inet {
unicast {
prefix-limit {
maximum 10;
}
}
}
peer-as 393222;
}
Force10 FTOS
Version: 7.8.1.0
router bgp 100000 bgp router-id 24.30.77.224 ! This command will be added automagically if a 4-byte ASN is used as the router\'s ASN bgp four-octet-as-support neighbor 72.37.255.13 remote-as 393222 ! Only if using EBGP multihop neighbor 72.37.255.13 ebgp-multihop 255 neighbor 72.37.255.13 soft-reconfiguration inbound neighbor 72.37.255.13 no shutdown
Quagga
Version: 0.99.11
router bgp 100000 bgp router-id 192.168.0.12 neighbor 72.37.255.13 remote-as 393222 ! Only if using EBGP multihop neighbor 72.37.255.13 ebgp-multihop 255 neighbor 72.37.255.13 soft-reconfiguration inbound

