/* $XORP: xorp/rtrmgr/config.boot.sample,v 1.16 2004/06/21 18:06:05 hodson Exp $ */ interfaces { interface dc0 { description: "data interface" enabled: true /* default-system-config */ vif dc0 { enabled: true address 10.10.10.10 { prefix-length: 24 broadcast: 10.10.10.255 enabled: true } /* address 10:10:10:10:10:10:10:10 { prefix-length: 64 enabled: true } */ } } interface tun0 { description: "tunnel interface" enabled: true /* default-system-config */ vif tun0 { enabled: true address 10.10.10.11 { prefix-length: 32 destination: 10.20.20.20 enabled: true } } } } fea { enable-unicast-forwarding4: true /* enable-unicast-forwarding6: true */ } protocols { static { route4 10.20.0.0/16 { nexthop: 10.10.10.20 metric: 1 } mrib-route4 10.20.0.0/16 { nexthop: 10.10.10.30 metric: 1 } /* route6 20:20:20:20::/64 { nexthop: 10:10:10:10:10:10:10:20 metric: 1 } mrib-route6 20:20:20:20::/64 { nexthop: 10:10:10:10:10:10:10:30 metric: 1 } */ } } protocols { rip { /* Redistribute routes for connected interfaces */ /* export connected { metric: 0 tag: 0 } */ /* Redistribute static routes */ /* export static { metric: 1 tag: 0 } */ /* Run on specified network interface addresses */ /* interface dc0 { vif dc0 { address 10.10.10.10 { enabled: true } } } */ } } /* protocols { ospf { router-id: 10.10.10.10 area 0.0.0.0 { stub: false interface dc0 { hello-interval: 5 } } } } */ protocols { bgp { bgp-id: 10.10.10.10 local-as: 65002 peer 10.30.30.30 { local-ip: 10.10.10.10 as: 65000 next-hop: 10.10.10.20 /* local-port: 179 peer-port: 179 */ /* holdtime: 120 */ /* enabled: true */ /* Optionally enable other AFI/SAFI combinations */ /* enable-ipv4-multicast */ /* enable-ipv6-unicast */ /* enable-ipv6-multicast */ } /* Originate IPv4 Routes */ /* network4 10.10.10.0/24 { next-hop: 10.10.10.10 unicast: true multicast: true } */ /* Originate IPv6 Routes */ /* network6 10:10:10:10::/64 { next-hop: 10:10:10:10:10:10:10:10 unicast: true multicast: true } */ } } plumbing { mfea4 { enabled: true interface dc0 { vif dc0 { enabled: true } } interface register_vif { vif register_vif { /* Note: this vif should be always enabled */ enabled: true } } traceoptions { flag all { enabled: true } } } /* mfea6 { enabled: true interface dc0 { vif dc0 { enabled: true } } interface register_vif { vif register_vif { enabled: true } } traceoptions { flag all { enabled: true } } } */ } protocols { igmp { enabled: true interface dc0 { vif dc0 { enabled: true } } traceoptions { flag all { enabled: true } } } /* mld { enabled: true interface dc0 { vif dc0 { enabled: true } } traceoptions { flag all { enabled: true } } } */ } protocols { pimsm4 { enabled: true interface dc0 { vif dc0 { enabled: true /* dr-priority: 1 */ /* alternative-subnet 10.40.0.0/16 */ } } interface register_vif { vif register_vif { /* Note: this vif should be always enabled */ enabled: true } } static-rps { rp 10.60.0.1 { group-prefix 224.0.0.0/4 { /* rp-priority: 192 */ /* hash-mask-len: 30 */ } } } bootstrap { enabled: true cand-bsr { scope-zone 224.0.0.0/4 { /* is-scope-zone: false */ cand-bsr-by-vif-name: "dc0" /* bsr-priority: 1 */ /* hash-mask-len: 30 */ } } cand-rp { group-prefix 224.0.0.0/4 { /* is-scope-zone: false */ cand-rp-by-vif-name: "dc0" /* rp-priority: 192 */ /* rp-holdtime: 150 */ } } } switch-to-spt-threshold { /* approx. 1K bytes/s (10Kbps) threshold */ enabled: true interval-sec: 100 bytes: 102400 } traceoptions { flag all { enabled: true } } } /* pimsm6 { enabled: true interface dc0 { vif dc0 { enabled: true dr-priority: 1 alternative-subnet 40:40:40:40::/64 } } interface register_vif { vif register_vif { enabled: true } } static-rps { rp 50:50:50:50:50:50:50:50 { group-prefix ff00::/8 { rp-priority: 192 hash-mask-len: 126 } } } bootstrap { enabled: true cand-bsr { scope-zone ff00::/8 { is-scope-zone: false cand-bsr-by-vif-name: "dc0" bsr-priority: 1 hash-mask-len: 30 } } cand-rp { group-prefix ff00::/8 { is-scope-zone: false cand-rp-by-vif-name: "dc0" rp-priority: 192 rp-holdtime: 150 } } } switch-to-spt-threshold { enabled: true interval-sec: 100 bytes: 102400 } traceoptions { flag all { enabled: true } } } */ } /* * Note: fib2mrib is needed for multicast only if the unicast protocols * don't populate the MRIB with multicast-specific routes. */ protocols { fib2mrib { enabled: true } } /* * See xorp/mibs/snmpdscripts/README on how to configure Net-SNMP in your host * before uncommenting the snmp section below. * Also check that the "bgp4_mib_1657.so" exists in the correct location. */ /* protocols { snmp { mib-module bgp4_mib_1657 { abs-path: "/usr/local/xorp/mibs/bgp4_mib_1657.so" } } } */