Router Configuration Engineering Workshops Cisco Router Configuration Rule

  • Slides: 30
Download presentation
Router Configuration Engineering Workshops

Router Configuration Engineering Workshops

Cisco Router Configuration • Rule #1: What Would v 4 do? – Enable routing

Cisco Router Configuration • Rule #1: What Would v 4 do? – Enable routing • ipv 6 unicast-routing – Configure Interfaces • ipv 6 address – Configure Routing Protocols Engineering Workshops

Cisco Configs • LAN Interface interface Ethernet 0/0 ip address 192. 168. 1. 254

Cisco Configs • LAN Interface interface Ethernet 0/0 ip address 192. 168. 1. 254 255. 0 ipv 6 address 2001: 468: 123: 1: : 2/64 Engineering Workshops

Cisco Configs • Tunnel Interface interface Tunnel 1 description IPv 6 to Abilene no

Cisco Configs • Tunnel Interface interface Tunnel 1 description IPv 6 to Abilene no ip address no ip redirects no ip proxy-arp ipv 6 address 3 FFE: 3700: FF: 105: : 2/64 tunnel source ATM 2/0. 1 tunnel destination 192. 168. 193. 14 tunnel mode ipv 6 ip Engineering Workshops

Cisco Configs • ATM PVC interface ATM 2/0. 3 point-to-point description My Giga. Po.

Cisco Configs • ATM PVC interface ATM 2/0. 3 point-to-point description My Giga. Po. P no ip redirects no ip proxy-arp pvc My. Giga. Po. P 3/66 ubr 155000 encapsulation aal 5 snap ! ipv 6 address 2001: 468: FF: 555: : 1/64 Engineering Workshops

Cisco Configs • IGP - most sites will use RIPng for now, but IS-IS

Cisco Configs • IGP - most sites will use RIPng for now, but IS-IS is also available. OSPFv 3 is on the way. . . ipv 6 router rip ipsix redistribute connected interface Ethernet 1/0 ipv 6 rip ipsix enable ipv 6 rip ipsix default-information orig • Static ipv 6 route <prefix> <nexthop> Engineering Workshops

Cisco Configs • BGP - added to your existing IPv 4 BGP config router

Cisco Configs • BGP - added to your existing IPv 4 BGP config router bgp 64555 bgp router-id 192. 168. 2. 1 neighbor Abilene-v 6 peer-group neighbor Abilene-v 6 remote-as 11537 Engineering Workshops

Cisco Configs • BGP continued. . . address-family ipv 6 unicast neighbor Abilene-v 6

Cisco Configs • BGP continued. . . address-family ipv 6 unicast neighbor Abilene-v 6 activate neighbor Abilene-v 6 soft-reconfiguration in neighbor Abilene-v 6 prefix-list to-Abilene-v 6 out neighbor 2001: 468: 555: 200: : 6 peer-group Abilene-v 6 network 2001: 468: 4 ff: : /48 aggregate-address 2001: 468: 4 ff: : /48 summary-only exit-address-family Engineering Workshops

Cisco Configs • BGP continued. . . ipv 6 route 2001: 468: 4 ff:

Cisco Configs • BGP continued. . . ipv 6 route 2001: 468: 4 ff: : /48 Null 0 ! ipv 6 prefix-list to-Abilene-v 6 seq 10 permit 2001: 468: 4 ff: : /48 Engineering Workshops

Cisco Configs • Securing Console Access ipv 6 access-list V 6 VTY permit 2001:

Cisco Configs • Securing Console Access ipv 6 access-list V 6 VTY permit 2001: 468: 4 ff: : /48 any. . . ! line vty 0 4 ipv 6 access-class V 6 VTY in Engineering Workshops

Cisco Show Commands • • show bgp summary show ipv 6 bgp neigh <addr>

Cisco Show Commands • • show bgp summary show ipv 6 bgp neigh <addr> routes show ipv 6 bgp neigh <addr> advertised show ipv 6 route show ipv 6 interface show ipv 6 neighbors Engineering Workshops

The Cisco Show show ipv 6 interface ! show all v 6 address etc.

The Cisco Show show ipv 6 interface ! show all v 6 address etc. show bgp sum ! show summary of neighbors’ BGP state show bgp ! show all v 6 BGP-learned routes show bgp neigh [addr] routes ! what he’s sending show bgp neigh [addr] advertised ! what you’re sending show ipv 6 route ! show all v 6 routes Engineering Workshops

Juniper Router Configuration • Rule #1: What Would v 4 do? – Enable routing

Juniper Router Configuration • Rule #1: What Would v 4 do? – Enable routing - already there. . . – Configure Interfaces • family inet 6 address – Configure Routing Protocols and RIBs Engineering Workshops

Juniper Configs • Interface (physical) interfaces { fe-0/1/0 { unit 0 { family inet

Juniper Configs • Interface (physical) interfaces { fe-0/1/0 { unit 0 { family inet 6 { address 2001: 468: 123: : 1/64; } } Engineering Workshops

Juniper Configs • Interface (tunnel) interfaces { ip-0/3/0 { unit 0 { tunnel {

Juniper Configs • Interface (tunnel) interfaces { ip-0/3/0 { unit 0 { tunnel { source 192. 168. 2. 2; destination 192. 168. 45. 2; } family inet 6 { mtu 1514; address 2001: 468: 123: : 1/64; } } Engineering Workshops

Juniper Configs • Router Advertisement - not enabled by default protocols { router-advertisement {

Juniper Configs • Router Advertisement - not enabled by default protocols { router-advertisement { interface fe-0/3/0. 0 { prefix 2001: 468: 123: : /64; } } } Engineering Workshops

Juniper Configs • Routing setup routing-options { interface-routes { rib-group { inet 6 ifrg

Juniper Configs • Routing setup routing-options { interface-routes { rib-group { inet 6 ifrg 6; } rib inet 6. 0 { aggregate { route 2001: 468: 4 ff: : /48; } } Engineering Workshops

Juniper Configs • Routing setup continued. . . rib-groups { ifrg 6 { import-rib

Juniper Configs • Routing setup continued. . . rib-groups { ifrg 6 { import-rib [ inet 6. 0 inet 6. 2 ]; } } router-id 192. 168. 2. 1 } Engineering Workshops

Juniper Configs • IGP - RIPng and IS-IS are both available protocols { ripng

Juniper Configs • IGP - RIPng and IS-IS are both available protocols { ripng { group local { export redist-direct; neighbor fe-0/1/0. 0; } } } policy-options { policy-statement redist-direct { from protocol direct; then accept; } } Engineering Workshops

Juniper Configs • BGP protocols { bgp { group Abilene-v 6 { type external;

Juniper Configs • BGP protocols { bgp { group Abilene-v 6 { type external; family inet 6 { unicast; } export to-Abilene-v 6; peer-as 11537; neighbor 2001: 468: 555: 200: : 6; } } } Engineering Workshops

Juniper Configs • BGP continued. . . policy-options { policy-statement to-Abilene-v 6 { term

Juniper Configs • BGP continued. . . policy-options { policy-statement to-Abilene-v 6 { term accept-aggregate { from { route-filter 2001: 468: 4 ff: : /48 exact; } then accept; } term reject { then reject; } } } Engineering Workshops

Juniper Show Commands • • • show bgp summary show route advert bgp <addr>

Juniper Show Commands • • • show bgp summary show route advert bgp <addr> show route rece bgp <addr> show route table inet 6. 0 (terse) show interfaces show ipv 6 neighbors Engineering Workshops

Free. BSD /etc/rc. conf additions: # 'zebra' route daemon already started … # router_enable="YES"

Free. BSD /etc/rc. conf additions: # 'zebra' route daemon already started … # router_enable="YES" # router="/usr/local/sbin/zebractl" # router_flags="start" ipv 6_enable="YES" ipv 6_network_interfaces="auto" ipv 6_gateway_enable="YES" ipv 6_ifconfig_xl 0="2001: 388: 1 c 10: 2: : 1 prefixlen 64" ipv 6_ifconfig_lo 0="2001: 388: 1 c 10: ff: : 1 prefixlen 64" # Enable the sending of route advertisments. . rtadvd_enable="YES" rtadvd_interfaces="xl 0" Engineering Workshops

Free. BSD BGP /usr/local/etc/zebra/bgpd. conf hostname bgpd. darwin password XXXX enable password XXXX log

Free. BSD BGP /usr/local/etc/zebra/bgpd. conf hostname bgpd. darwin password XXXX enable password XXXX log file bgpd. log stdout router bgp 65200 no bgp default ipv 4 -unicast neighbor 2001: 388: 1 c 00: 1: : 1 remote-as 65100 neighbor 2001: 388: 1 c 00: 1: : 1 description to Cairns address-family ipv 6 network 2001: 388: 1 c 10: : /44 network 2001: 388: 1 c 10: 1: : /64 aggregate-address 2001: 0388: 1 c 10: : /44 redistribute connected neighbor 2001: 388: 1 c 00: 1: : 1 activate ! Cairns Engineering Workshops

Free. BSD Router Advert /usr/local/etc/radvd. conf interface xl 0 { Adv. Send. Advert on;

Free. BSD Router Advert /usr/local/etc/radvd. conf interface xl 0 { Adv. Send. Advert on; Min. Rtr. Adv. Interval 3; Max. Rtr. Adv. Interval 10; Adv. Home. Agent. Flag off; prefix 2001: 388: 1 c 10: 2: : /64 { Adv. On. Link on; Adv. Autonomous on; Adv. Router. Addr off; Adv. Preferred. Lifetime 120; Adv. Valid. Lifetime 300; }; }; Engineering Workshops

Red. Hat 7. 3 For a host: /etc/sysconfig/network, add: NETWORKING_IPV 6=yes Run the command:

Red. Hat 7. 3 For a host: /etc/sysconfig/network, add: NETWORKING_IPV 6=yes Run the command: service network restart Engineering Workshops

Red. Hat 7. 3 /etc/sysconfig/network, add: NETWORKING_IPV 6=yes IPV 6 FORWARDING=yes /etc/sysconfig/network-scripts/ifcfg-eth 0 IPV

Red. Hat 7. 3 /etc/sysconfig/network, add: NETWORKING_IPV 6=yes IPV 6 FORWARDING=yes /etc/sysconfig/network-scripts/ifcfg-eth 0 IPV 6 INIT=yes IPV 6 ADDR=2001: 388: 1 c 01: 3: : 1/64 IPV 6 ADDR_SECONDARIES=… … Engineering Workshops

Red. Hat BGP /etc/zebra/bgpd. conf hostname bgpd. bourke password XXXXX enable password XXXXX log

Red. Hat BGP /etc/zebra/bgpd. conf hostname bgpd. bourke password XXXXX enable password XXXXX log stdout log file /var/log/zebra/bgpd. log ! router bgp 65400 no bgp default ipv 4 -unicast neighbor 2001: 388: 1 c 00: 5: : 1 remote-as 65500 neighbor 2001: 388: 1 c 00: 5: : 1 description to Cairns address-family ipv 6 network 2001: 388: 1 c 01: : /48 aggregate-address 2001: 388: 1 c 01: : /48 redistribute connected neighbor 2001: 388: 1 c 00: 5: : 1 activate Engineering Workshops

Red. Hat Router Advert /etc/radvd. conf interface eth 0 { Adv. Send. Advert on;

Red. Hat Router Advert /etc/radvd. conf interface eth 0 { Adv. Send. Advert on; Min. Rtr. Adv. Interval 3; Max. Rtr. Adv. Interval 10; Adv. Home. Agent. Flag off; prefix 2001: 388: 1 c 01: 3: : /64 { Adv. On. Link on; Adv. Autonomous on; Adv. Router. Addr on; }; }; Engineering Workshops

Red. Hat, reboot chkconfig radvd on chkconfig zebra on chkconfig bgpd on /etc/init. d/radvd

Red. Hat, reboot chkconfig radvd on chkconfig zebra on chkconfig bgpd on /etc/init. d/radvd start /etc/init. d/zebra start /etc/init. d/bgpd start Engineering Workshops