## Last commit: 2010-05-15 08:49:15 UTC by lab version 8.4R3.3; interfaces { fe-0/0/1 { vlan-tagging; unit 10 { description PTTMetro_Campinas_IPv4; vlan-id 10; family inet { address 200.192.108.100/24; } } unit 201 { description TH1; vlan-id 201; family inet { address 189.76.127.10/30; } family inet6 { address 2001:12fe:a:201:8::10/112; } } unit 202 { description TH2; vlan-id 202; family inet { address 189.76.127.6/30; } family inet6 { address 2001:12fe:a:202:4::6/112; } } unit 1250 { description PTTMetro_Sao_Paulo_ATM_IPv4; vlan-id 1250; family inet { address 200.219.130.100/24; } } unit 1251 { description PTTMetro_Sao_Paulo_ATM_IPv6; vlan-id 1251; family inet6 { address 2001:12F8::100/64; } } } lo0 { unit 0 { family inet { address 189.76.127.253/32; } family inet6 { address 2001:12fe:ffff::253/128; } } } } routing-options { router-id 189.76.127.253; autonomous-system 11752; } protocols { bgp { group eBGP_PTTMetro_SaoPaulo { type external; neighbor 200.219.130.253 { import BGPin-IPv4-PTTMetro; export BGPout-IPv4-PTTMetro-SPO; peer-as 26162; } neighbor 2001:12F8::253 { import BGPin-IPv6-PTTMetro; export BGPout-IPv6-PTTMetro-SPO; peer-as 26162; } } group eBGP_PTTMetro_Campinas { type external; neighbor 200.192.108.253 { export BGPout-IPv4-PTTMetro-CAS; peer-as 26162; } } group iBGP { type internal; neighbor 189.76.127.9 { export next-hop-self; } neighbor 189.76.127.5 { export next-hop-self; } neighbor 2001:12fe:a:202:4::5 { export next-hop-self; } } } } policy-options { policy-statement BGPin-IPv4-PTTMetro { term term-1 { from policy IPv4-AS11752-all; then reject; } term term-2 { from policy IPv4-block-deny; then reject; } term term-3 { from as-path ALL; then { local-preference 300; next term; } } term accept { then accept; } } policy-statement BGPin-IPv6-PTTMetro { term term-1 { from policy IPv6-AS11752-all; then reject; } term term-2 { from policy IPv6-block-deny; then reject; } term term-3 { from as-path ALL; then { local-preference 300; next term; } } term accept { then accept; } } policy-statement BGPout-IPv4-PTTMetro-CAS { term term-1 { from { route-filter 189.76.96.0/22 exact; route-filter 189.76.100.0/22 exact; route-filter 189.76.104.0/22 exact; route-filter 189.76.108.0/22 exact; route-filter 189.76.112.0/22 exact; route-filter 189.76.116.0/22 exact; route-filter 189.76.120.0/22 exact; route-filter 189.76.124.0/22 exact; } then accept; } term implicit-deny { then reject; } } policy-statement BGPout-IPv4-PTTMetro-SPO { term term-1 { from { route-filter 189.76.96.0/21 exact; route-filter 189.76.104.0/21 exact; route-filter 189.76.112.0/21 exact; route-filter 189.76.120.0/21 exact; } then accept; } term implicit-deny { then reject; } } policy-statement BGPout-IPv6-PTTMetro-SPO { term term-1 { from { route-filter 2001:12fe::/33 exact; route-filter 2001:12fe:8000::/33 exact; } then accept; } term implicit-deny { then reject; } } policy-statement Discard-All { term implicit-deny { then reject; } } policy-statement IPv4-AS11752-all { term term-1 { from { route-filter 189.76.96.0/19 orlonger; } then accept; } term implicit-deny { then reject; } } policy-statement IPv4-block-deny { term term-1 { from { route-filter 0.0.0.0/0 exact; route-filter 0.0.0.0/8 orlonger; route-filter 127.0.0.0/8 orlonger; route-filter 169.254.0.0/16 orlonger; route-filter 192.0.2.0/24 orlonger; route-filter 192.168.0.0/16 orlonger; route-filter 10.0.0.0/8 orlonger; route-filter 172.16.0.0/12 orlonger; } then accept; } term implicit-deny { then reject; } } policy-statement IPv6-AS11752-all { term term-1 { from { route-filter 2001:12fe::/32 orlonger; } then accept; } term implicit-deny { then reject; } } policy-statement IPv6-block-deny { term term-1 { from { route-filter ::/0 exact; route-filter 2001:db8::/32 orlonger; } then accept; } term implicit-deny { then reject; } } policy-statement Prefixos-IPv4-Locais { term term-1 { from { route-filter 189.76.96.0/19 exact; } then accept; } term implicit-deny { then reject; } } policy-statement Prefixos-IPv6-Locais { term term-1 { from { route-filter 2001:12fe::/32 exact; } then accept; } term implicit-deny { then reject; } } policy-statement next-hop-self { term all { from { external; } then { next-hop self; } } } as-path ALL .*; } lab> exit