Netflix Open Connect

Example Router Configurations

Use the following examples to help you understand typical router configurations.

Brocade LAG BGP example configuration

	
lag "NETFLIX" dynamic
ports ethernet 1/7 to 1/8
primary-port 1/7
deploy
port-name "NETFLIX-OCA" ethernet 1/7
port-name "NETFLIX-OCA" ethernet 1/8
interface ethernet 1/7
enable
ip address 180.131.208.9/29
no ip redirect
ipv6 address 2404:2d00:fe02::1/64
sflow forwarding
link-aggregate active
interface ethernet 1/8
enable
link-aggregate active

router bgp
 neighbor Netflix peer-group
 neighbor Netflix remote-as 40027
 neighbor NetflixIPv6 peer-group
 neighbor NetflixIPv6 remote-as 40027
 neighbor 180.131.208.10 peer-group Netflix
 neighbor 180.131.208.10 description "Netflix Open Cache Appliance 2015-01-14 Install"
 neighbor 2404:2d00:fe02::2 peer-group NetflixIPv6
 neighbor 2404:2d00:fe02::2 description "Netflix Open Cache Appliance 2015-01-14 Install"

address-family ipv4 unicast
 neighbor Netflix prefix-list no-advertise in
 neighbor Netflix prefix-list USBASE out
 no neighbor NetflixIPv6 activate
 exit-address-family

address-family ipv6 unicast
 neighbor NetflixIPv6 activate
 neighbor NetflixIPv6 prefix-list no-advertise-ipv6 in
 neighbor NetflixIPv6 prefix-list GLBB-IPv6 out
 exit-address-family
	
	

Cisco BGP example configuration


!
router BGP <ASN>
neighbor <IP address of Appliance> remote-as 40027
neighbor <IP address of Appliance> route-map NETFLIX-OUT out
!
route-map NETFLIX-OUT permit 10
match ip address prefix-list NETFLIX-LOCAL
set metric 0
!
route-map NETFLIX-OUT permit 20
match ip address prefix-list NETFLIX-BACKUP
set metric 100
!
route-map NETFLIX-OUT deny 30
!
	

Cisco IOS-XR BGP example configuration


!
router bgp <ASN>
 neighbor <IP address of Appliance>
 remote-as 40027
 address-family ipv4 unicast
  route-policy NETFLIX-OUT out
!
route-policy NETFLIX-OUT
 if destination in NETFLIX-LOCAL then
  set med 0
 elseif destination in NETFLIX-BACKUP then
  set med 100
 else
  drop
 endif
end-policy
!
prefix-set NETFLIX-LOCAL
 10.100.0.0/16,
 192.168.100.0/24
end-set
!
prefix-set NETFLIX-BACKUP
 10.200.0.0/16,
 192.168.200.0/24
end-set
!
	

Cisco IOS-XR LACP example interface configuration


!
interface Bundle-Ether1
 bundle minimum-active bandwidth 1
 ipv4 address <address/mask>
 ipv6 address <really-long-address/mask>
!
interface TenGigE0/0/2/0
 bundle id 1 mode active
 lacp period short
!
interface TenGigE0/0/2/2
 bundle id 1 mode active
 lacp period short
!
	

Cisco IOS Interface LACP example configuration


!
interface Port-channel1
 ip address <address> <mask>
!
interface GigabitEthernet1/1
 channel-group 1 mode active
 channel-protocol lacp
!
interface GigabitEthernet1/2
 channel-group 1 mode active
 channel-protocol lacp
!
	

Junos BGP example configuration


neighbor <IP address of Appliance> {
	export NETFLIX-EXPORT;
	peer-as 40027;
}
policy-statement NETFLIX-EXPORT {
  term NETFLIX-LOCAL {
	from {
	  prefix-list NETFLIX-LOCAL;
	}
	then {
	  metric 0;
	  accept;
	}
  }
  term NETFLIX-BACKUP {
	from {
	  prefix-list NETFLIX-BACKUP;
	}
	then {
	  metric 100;
	  accept;
	}
  }
  then reject;
}
	

Junos Interface LACP example configuration


ae1 {
  description NETFLIX-OCA;
  aggregated-ether-options {
	lacp {
	  active;
	  periodic fast;
	}
  }
  unit 0 {
	family inet {
	  address <address/mask>;
	}
	family inet6 {
	  address <really-long-address/mask>;
	}
  }
}
xe-0/0/0 {
  description NETFLIX-OCA-cxgbe0;
  ether-options {
	802.3ad ae1;
  }
}
xe-0/0/1 {
  description NETFLIX-OCA-cxgbe1;
  ether-options {
	802.3ad ae1;
  }
}
	

Back to top

© 2016, 2017 Netflix, Inc. All rights reserved.